Submit Order
POST/submit
Finalize an order by submitting a quoted cart
Request
- application/json
Body
required
Array [
]
Array [
]
A unique identifier to track this request
order
object
required
Simpler's internal ID. Should be used for idempotency and for referencing to this order
Possible values: >= 3 characters
and <= 3 characters
The ISO 4217 code of a currency
Possible values: [CARD
, APPLE_PAY
, GOOGLE_PAY
, KLARNA
, PAYPAL
, REVOLUT_PAY
]
The payment method used for completing the order.
simpler_discount
object
A discount applied by Simpler. It can be combined with a It will contain a positive value and it must be substracted from the cart.
metadata
object[]
Custom key-value pairs defined during cart creation
One of the IDs returned during quotation
ship_to
object
Shipping address
Possible values: >= 10 characters
and <= 14 characters
Possible values: >= 2 characters
and <= 2 characters
The ISO 3166-1 alpha-2 code of a country
items
object[]
required
Product ID
attributes
object
User selected attributes (e.g. color, size)
payment
object
Possible values: [COD
]
box_now
object
Selected locker's id
locker name
Selected locker's id address
Selected locker's id postcode
locker latitude
locker longitude
user
object
required
invoice
object
The Tax Identification Number
The official company name
The company's activity
The tax authority which issued the tax id
The company address
Responses
- 200
- 4XX
- 5XX
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
Id of the newly created order
metadata
object
{
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"order_id": "string",
"metadata": {}
}
{
"request_id": "fdde53a4-4d6d-4de5-b3e1-e3d5fe2a9c03",
"order_id": "175",
"metadata": {
"foo": "bar"
}
}
Request error. Simpler will not resubmit and you will be notified by our support team.
Unexpected error. Simpler will resubmit asynchronously.