Developer Documentations

 

Self Help
Table of Contents
Print
HTTP Method POST
Operation Used by merchant to notify Dizlee by the user action (subscription, unsubscription…)

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “notifyRequestId”:”8635081281569934573″, “subscriptionId”:”8635081281569934573″, “userId”:”964123456789″,
“aggregatorId”:”[aggregatorName]”, “merchantId”:”[merchantName]”, “product”:”[Product]”, “subProduct”:”[subProduct]”, “type”:”subscribe”,
“channel”:”WEB”
}’

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “notifyRequestId”:”8635081281569934573″, “subscriptionId”:”8635081281569934573″, “correlationId”:”31564865456″, “userId”:”964123456789″,
“aggregatorId”:”[aggregatorName]”, “merchantId”:”[merchantName]”, “product”:”[Product]”, “subProduct”:”[subProduct]”, “type”:”FlaggedToUnsub “, “status”:”success”,
“channel”:”WEB”,
“productId”: “9619”,
“revokingServiceDate”:”05-03-2021 10:00:00″
}’

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “notifyRequestId”:”8635081281569934573″, “subscriptionId”:”8635081281569934573″, “correlationId”:”31564865456″, “userId”:”964123456789″,
“aggregatorId”:”[aggregatorName]”, “merchantId”:”[merchantName]”, “product”:”[Product]”, “subProduct”:”[subProduct]”, “type”:”Subscribe “,
“status”:”failure”,
“channel”:”WEB”,
“productId”: “9619”, “failReason”:”insufficient balance”, “failErrorCode”:”-304″
}’