LettrLabs API
API ReferenceOrders

Generate an order using a specified template ID

Generate an order using a specified template ID

POST
/v1/order

Generate an order using a specified template ID

X-API-KEY<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

templateId*integer

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/order" \  -H "Content-Type: application/json" \  -d '{    "templateId": 0  }'
{  "payload": {    "orderId": 0,    "status": "string"  },  "errors": [    "string"  ],  "errorDetails": [    null  ],  "warnings": [    "string"  ],  "hasErrors": true,  "hasWarnings": true}
{  "payload": {    "orderId": 0,    "status": "string"  },  "errors": [    "string"  ],  "errorDetails": [    null  ],  "warnings": [    "string"  ],  "hasErrors": true,  "hasWarnings": true}
"string"
{  "authenticationSchemes": [    "string"  ],  "properties": {    "items": {      "property1": "string",      "property2": "string"    }  }}