PUT
/
orders
curl --request PUT \
  --url https://take.app/api/platform/orders \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "ORDER_STATUS_PENDING",
  "paymentStatus": "PAYMENT_STATUS_PENDING",
  "fulfillmentStatus": "UNFULFILLED"
}'
{
  "id": "<string>",
  "status": "ORDER_STATUS_PENDING",
  "paymentStatus": "PAYMENT_STATUS_PENDING",
  "fulfillmentStatus": "UNFULFILLED",
  "customer": {
    "name": "<string>",
    "phone": "<string>",
    "email": "jsmith@example.com"
  },
  "items": [
    {
      "productId": "<string>",
      "quantity": 123
    }
  ],
  "totalAmount": 123,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

api_key
string
query
required

Query Parameters

orderId
string
required

Order ID

Body

application/json

Input for updating order status

Response

200 - application/json

Order updated successfully

The response is of type object.