Skip to content

Initialization With Pre-Selected Offers

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
        consent {
            ... // Consent model 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
            }
        ]
    }
}

None

None

 
{
    "salesJourneyId" : "32423423",
    "consent" :[
        // if consent queried
    ]
}

 
{
    "errors" : [

]

}

Coming soon