<- Orders API

Orders API

All versions ->

Create order

POST

 /v2/orders

Creates a new Order which can include information on products for purchase and settings to apply to the purchase.

Permissions:ORDERS_WRITE
Try in API Explorer
Link to section

Request body

Example code

Link to section

order

The order to create. If this field is set, then the only other top-level field that can be set is the idempotency_key.

Link to section

location_id

string

The ID of the business location to associate the order with.

Link to section

idempotency_key

string

A value you specify that uniquely identifies this order among orders you've created.

If you're unsure whether a particular order was created successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate orders.

See Idempotency for more information.

Link to section

Response fields

Link to section

order

The newly created order.

Link to section

errors

Any errors that occurred during the request.