# Generate pro-forma sales invoice from sub-order **POST /api-v1/sub-orders/{subOrderId}/generate-pro-forma** ## Servers - Generated server url: https://wyzio.app (Generated server url) ## Parameters ### Headers - **WEAL-TOKEN** (string) API token (can be retrieved from account settings) - **TARGET-ORGANIZATION-ID** (integer) ID of organization, for which the operation must be performed ### Path parameters - **subOrderId** (integer) ### Query parameters - **invoicingDate** (string) ## Responses ### 200 OK #### Body: application/json (array[object]) - **id** (integer) - **organizationId** (integer) - **number** (string) - **date** (string(date-time)) - **client** (string) - **clientId** (integer) - **reference** (string) - **description** (string) - **referenceAndDescriptionJoined** (string) - **currency** (string) - **netAmount** (number) - **totalAmount** (number) - **receivable** (number) - **status** (string) - **comments** (string) - **warnings** (string) - **ourContactName** (string) - **clientEmail** (string) - **clientAdvancedInvoicingNote** (string) - **clientECorrespondence** (boolean) - **hasWarnings** (boolean) - **bvrGenerationAvailability** (boolean) - **qrGenerationAvailability** (boolean) - **creatorContactId** (integer) - **validated** (boolean) - **workflowPermissions** (string) - **hasComments** (boolean) - **isInWorkflow** (boolean) - **systemValidated** (boolean) - **clientBillingEmail** (string) - **hasShipments** (boolean) - **isDocSent** (boolean) - **flagsAmount** (integer(int32)) - **inWorkflow** (boolean) ### 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)