This API creates a proforma document for the relevant consignment.
| Property | Value |
|---|---|
| URL | {{BASE_URL}}/api/v1/consignments/{consignmentId}/proforma |
| HTTP Method | POST |
| Content Type | application/json |
| Authentication | APIKEY header |
| Parameter Name | Parameter Type | Required | Description |
|---|---|---|---|
consignmentId |
Integer | Required | Consignment ID |
Below is an example HTTP raw request for the API request.
POST {{BASE_URL}}/api/v1/consignments/632236/proforma
Content-Type: application/json
APIKEY: {{APIKEY}}
On a successful request, the API will return a response like this:
{
"status": true,
"message": "Proforma invoice created successfully",
"data": {
"consignment_id": 632280,
"uuid": "3c1563eb-9afd-4eda-8c26-51174d805b08",
"document_id": 149495,
"base64pdf": "....base64data"
}
}
If the API request fails, the API will return an error response like this:
{
"status": false,
"errors": [
{
"message": "Consignment not found"
}
]
}