Handle state changed

Callback added to the Norce Checkout Order as a notification. Depending on the provided order state the checkout is updated, validated, purchased or completed. In effect exported to Norce Commerce.

SecurityBearer
Request
path Parameters
orderId
required
string

Order id in Norce Checkout

header Parameters
x-merchant
required
string

Merchant identifier.

Example: norce
x-channel
required
string

Channel identifier

Example: 1
Request Body schema: application/json

Notification body

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 (Callback)
Array of objects (Hook)
Array of objects (Notification)
object
object
Responses
200

OK

400

Bad Request

404

Not Found

post/api/v1/orders/{orderId}/export-order
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": [
    ],
  • "validations": [
    ],
  • "hooks": [
    ],
  • "notifications": [
    ],
  • "total": {
    },
  • "attributes": {
    }
}
Response samples
application/json
{
  • "code": "cart-not-found",
  • "message": "Cart with id:{id} not found.",
  • "innerErrorCode": "psp-session-expired"
}
Copyright © Norce 2024. All right reserved.