When order state is Processing. Will validate order. When order state is Accepted. Will reduce stock and remove the cart.

Order state changed.

SecurityBearer
Request
path Parameters
order_id
required
string

Checkout order identifier.

header Parameters
x-merchant
required
string

Merchant identifier.

x-channel
required
string

Channel identifier.

Request Body schema: application/json

Updated order

id
string
merchant
string
channel
string
reference
string
created
string <date-time>
lastModified
string <date-time>
object
culture
string
currency
string
country
string
object
Array of objects (Shipping)
Array of objects (Payment)
object
Array of objects (Consent)
Array of objects (Hook)
Array of objects (Callback)
object
object
Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

post/api/v1/orders/{order_id}/order-state-changed
Request samples
application/json
{
  • "id": "string",
  • "merchant": "string",
  • "channel": "string",
  • "reference": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "lastModified": "2019-08-24T14:15:22Z",
  • "state": {
    },
  • "culture": "string",
  • "currency": "string",
  • "country": "string",
  • "cart": {
    },
  • "shippings": [
    ],
  • "payments": [
    ],
  • "customer": {
    },
  • "consents": [
    ],
  • "hooks": [
    ],
  • "validations": [
    ],
  • "total": {
    },
  • "attributes": {
    }
}
Response samples
application/json
{
  • "code": "order-not-found",
  • "message": "Order {id} could not be found"
}
Copyright © Norce 2024. All right reserved.