This API is used to create a subscription for the notification of an event by selecting an event type, event version, resource name, and providing the event URL. One, or more than one, event can be subscribed for notifications in one subscription request.
Use the Get Event Types API to get the list of the event type, event version, and resource name available for subscribing.
Configure an event URL to receive the notifications.
URL Authentication Options:
If authMethod is BASIC_AUTH, while making notification request to endpointUrl, Walmart system will pass authentication header with key as authHeaderName and value as BASE64 encoding of userName and password.
If authMethod is HMAC, while making notification request to endpointUrl, Walmart system will pass authentication header with key as authHeaderName and value as HMACSHA256 of complete response, using clientSecret as key.
If authMethod is OAUTH, Walmart system will make POST call to authUrl to generate token with request body as "grant_type=client_credentials" and headers as:
Authorization header with key as authHeaderName and value as BASE64 encoding of clientId and clientSecret
"Accept" :"application/json; charset=UTF-8"
"Content-type":"application/x-www-form-urlencoded; charset=ISO-8859-1"
Custom headers provided in the headers field, if provided, authURL should return HTTPS status 200 and response should have access_token and expires_in field. While making notification request to endpointUrl, the Walmart system will pass access_token in headers with authHeaderName as key and value as Bearer <access_token> along with any other custom headers provided in headers field.