Skip to content
Guides
API reference
stabledraft:create

Create order draft

POST/v1/order-drafts

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/order-drafts" \  -H "Content-Type: application/json" \  -d '{    "currencyCode": "string",    "customerId": null,    "cartId": null,    "email": null,    "phone": null,    "firstName": null,    "lastName": null,    "identificationType": null,    "identificationNumber": null,    "entityTaxId": null,    "entityName": null,    "source": null,    "notes": null  }'
{  "id": "string"}