Create a new Order

Creates an order in checkout state

SecurityBearer
Request
header Parameters
x-merchant
required
string non-empty

Merchant identifier.

Example: norce
x-channel
required
string non-empty

Channel identifier

Example: 1
Request Body schema: application/json

Order

reference
string

External order reference

object

Order state

culture
string^[A-Za-z]{2,3}(?:-[A-Za-z]{2,2})*$

Order Culture, RFC-1766

currency
string^[A-Za-z]{3,3}$

Order Currency, ISO 4217 alpha-3.

country
string^[A-Za-z]{2,2}$

Order Country. ISO 3166 alpha-2.

object

Order cart

object

Customer information

Array of objects (Consent)

Order consents

Array of objects (Callback)

Order actions are called in order to complete an action, such as 'Validate'. If provided the action is not completed if the response is not successful (e.g. http status code 400), note however that in case of a time constraint the action might be completed without a successful response.

Array of objects (Hook)

Hooks, added by a separate endpoint.

Array of objects (Notification)

Order notifications are called after an event has occurred, such as order reaching 'Completed' state.

object

Order total including shipping fees

object

Allows you to store any custom attributes for the order.

Responses
201

Created

400

Bad Request

401

Unauthorized

404

Not Found

409

Conflict

500

Internal Server Error

post/api/v0/checkout/orders
Request samples
application/json
{
  • "reference": "string",
  • "state": {
    },
  • "culture": "string",
  • "currency": "string",
  • "country": "string",
  • "cart": {
    },
  • "customer": {
    },
  • "consents": [
    ],
  • "hooks": [],
  • "notifications": [
    ],
  • "total": {
    },
  • "attributes": {
    }
}
Response samples
application/json
"string"
Copyright © Norce 2024. All right reserved.