PPylon Developers
ApiOrders

Create Order

POST
/api/v1/orders
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://loading/api/v1/orders" \  -H "Content-Type: application/json" \  -d '{    "cartId": null  }'
{
  "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
  "expiresAt": null,
  "totalAmount": 0.1,
  "currency": "string"
}
{
  "status": 0,
  "title": "string",
  "code": "string",
  "args": {},
  "errors": null
}