Generate sales invoice from sub-order
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Path parameters
-
subOrderId
POST /api-v1/sub-orders/{subOrderId}/generate-sales-invoice
curl \
-X POST http://10.10.10.132/api-v1/sub-orders/{subOrderId}/generate-sales-invoice \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string"
Response examples (200)
[
{
"bvrGenerationAvailability": true,
"client": "string",
"clientAdvancedInvoicingNote": "string",
"clientBillingEmail": "string",
"clientECorrespondence": true,
"clientEmail": "string",
"clientId": 42,
"comments": "string",
"creatorContactId": 42,
"currency": "string",
"date": "2024-05-04T09:42:00+00:00",
"description": "string",
"flagsAmount": 42,
"hasComments": true,
"hasWarnings": true,
"id": 42,
"inWorkflow": true,
"isInWorkflow": true,
"netAmount": 42.0,
"number": "string",
"organizationId": 42,
"ourContactName": "string",
"qrGenerationAvailability": true,
"realValidated": true,
"receivable": 42.0,
"reference": "string",
"referenceAndDescriptionJoined": "string",
"status": "OPEN",
"systemValidated": true,
"totalAmount": 42.0,
"validated": true,
"validatorUserIds": [
42
],
"validatorUserIdsSize": 42,
"warnings": "string",
"workflowPermissions": "string"
}
]