POST
/
public
/
stores
/
{storeAlias}
curl --request POST \
  --url https://take.app/api/platform/public/stores/{storeAlias} \
  --header 'Content-Type: application/json' \
  --data '{
  "order_id": "<string>",
  "items": [
    {
      "name": "<string>",
      "price": 123,
      "quantity": 123,
      "options": [
        {
          "question": "<string>",
          "answer": "<string>"
        }
      ]
    }
  ],
  "customer_name": "<string>",
  "customer_phone": "<string>",
  "customer_email": "jsmith@example.com"
}'
{
  "checkout_url": "<string>",
  "order_id": "<string>"
}

Use this endpoint to create a new draft order or update an existing draft order. When an order_id is provided, the items in the request will be appended to the draft order.

Path Parameters

storeAlias
string
required

Alias of the store

Body

application/json

Response

200 - application/json

Draft order created

The response is of type object.