Order update
Notify Raylo for an update to the order
GraphQL query
After the merchant receives a checkout decision report with a success outcome, the merchant can notify Raylo for updates to the order.
The
<ESCAPED_QUERY>must contain the following GraphQL query:
mutation($merchantId: ID!, $payload: String!) {
updateMerchantOrder(merchantId: $merchantId, payload: $payload) {
success
errors {
code
field
message
}
}
}Please refer to the JWT structure section for more details about how to the generate the
<JWT>The order update:
is successful if the response has
trueon the value of the success field.is not successful if the response response has
falseon the value of the success field and contains a list of errors.
JWT structure
The <JWT> must contain the encoded and signed content required to create the checkout. Read more information about encoding and signing in Authenticated requests.
The content (before being encoded and signed) should have the following JSON format:
Field details
iss
String
Required. This should contain the merchant ID, which will be provided to the merchant ahead of time
iat
Integer
Required. This should be the timestamp when the payload is generated following the UNIX epoc time format
Data type
merchantReference
String
Required. Merchant reference for the checkout
state
String
Required. Possible values: fulfilled or cancelled
stateChangedAt
String
Required. This contains the timestamp when the state changed following the ISO8601 format.
When the state is
fulfilled, this timestamp should contain when the order was dispatchedWhen the state is
cancelled, this timestamp should contain the cancellation time
fulfillment
Omit when the state is
cancelledRequired only when the state is
fulfilledRefer to the Fulfillment type for more details on its structure
Fulfillment type
courierName
String
Required. Name of courier delivering the order
courierReference
String
Required. Tracking reference for the courier delivering the order
courierTrackingUrl
String
Required. URL to track the progress of the delivery
Item type
assetDetails
Optional. Details of the physical asset. Refer to the Asset details type for more info on its structure.
Variant type
reference
String
Required. Merchant reference, sometimes called an SKU, that identifies uniquely the variant.
Asset details type
serial
String
Optional. The manufacturer's serial for the dispatched asset.
Last updated
Was this helpful?