Skip to content

Mutation CreateSalesContext

Mutation.createSalesContext

Ready

This Mutation 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
        offers {
            ... // Offers node is available to query
        }
    }
}

 
{
    "salesContext": {
        "account": {
            "customerRelationshipId": "82aae449-7f55-46c6-800f-89f319e38230002",
            "serviceAccountNumber" : "234234876987987239"
        },
        "source": {
            "affiliate": "XUMO",
            "channel": "WEB",
            "appId": "WEB_PORTAL"
        }
    }
}

None

None

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

 
{
    "errors" : []
}

Coming soon