Submit Order
Variables - Details
Name | Description | Required |
---|---|---|
customerRelationshipId | CMT based variable to uniquely identify | Required |
serviceAccountNumber | XBO Service Account Number | Required |
affiliate | Unique identifier of the sales affiliate | Required |
channel | Unique identifier of the sales channel | Required |
appId | Application Id within the sales channel | Required |
API Specs
GraphQL API
Ready
This API is available in both integration and production.
HTTP Item | HTTP Value |
---|---|
Url | https://{host}/graphql |
Method | POST |
mutation Mutation($salesContext: SalesContextInput) {
createSalesContext(salesContext: $salesContext) {
salesJourneyId
order {
orderId // Order node is available to query
}
}
}
{
"salesContext": {
"account": {
"customerRelationshipId": "82aae449-7f55-46c6-800f-89f319e38230002",
"serviceAccountNumber" : "234234876987987239"
},
"source": {
"affiliate": "XUMO",
"channel": "WEB",
"appId": "WEB_PORTAL"
},
"items" : [
{
"catalogId" : "EPO-200000",
"itemType" : "ADDON",
"actionType" : "ADD"
"quantity" : 1
}
],
"consent" : {
"submit" : true,
"acceptanceChannel": "WEB",
"clientIpAddress" : "10.0.0.0"
}
}
}
None
None
{
"salesJourneyId" : "32423423",
"order" : {
"orderId" : "" // if order queried
}
}
{
"errors" : []
}