# Generate pro-forma sales invoice from sub-order **POST /api-v1/sub-orders/{subOrderId}/generate-pro-forma** ## Servers - https://wyzio.app: https://wyzio.app () ## Parameters #### Headers - **TARGET-ORGANIZATION-ID** (integer(int32)) ID of organization, for which the operation must be performed - **WEAL-TOKEN** (string) API token (can be retrieved from account settings) #### Path parameters - **subOrderId** (integer) subOrderId #### Query parameters - **invoicingDate** (string) invoicingDate ## Responses ### 200: OK #### Body Parameters: */* (array[object]) - **bvrGenerationAvailability** (boolean) - **client** (string) - **clientAdvancedInvoicingNote** (string) - **clientBillingEmail** (string) - **clientECorrespondence** (boolean) - **clientEmail** (string) - **clientId** (integer) - **comments** (string) - **creatorContactId** (integer) - **currency** (string) - **date** (string(date-time)) - **description** (string) - **flagsAmount** (integer(int32)) - **hasComments** (boolean) - **hasShipments** (boolean) - **hasWarnings** (boolean) - **id** (integer) - **inWorkflow** (boolean) - **isInWorkflow** (boolean) - **netAmount** (number) - **number** (string) - **organizationId** (integer) - **ourContactName** (string) - **qrGenerationAvailability** (boolean) - **receivable** (number) - **reference** (string) - **referenceAndDescriptionJoined** (string) - **status** (string) - **systemValidated** (boolean) - **totalAmount** (number) - **validated** (boolean) - **warnings** (string) - **workflowPermissions** (string) ### 400: 400 Bad Request ### 401: 401 Unauthorized ### 403: 403 Access Denied ### 404: 404 Not Found ### 500: 500 Internal Server Error [Powered by Bump.sh](https://bump.sh)