Developer Documentations

 

Self Help
Table of Contents
Print
HTTP Method POST
Operation Used by Telco Operator that manage the user life cycle to synchronize the user status with the merchant.

curl –location –request POST ‘https://[Merchant Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{
“userId”:”96412345678″,
“action”:”subscribe”, “opcoServiceId”:”123310169″, “opcoProduct”:”101633239″, “opcosubProduct”:” [subProductName]” “opcoTransactionId “:”035288953320233”, “freeOfCharge”:”true”,
“channelId “:”2”
}’

curl –location –request POST ‘https://[Merchant Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “userId”:”96412345678″,
“action”:”unsubscribe”, “opcoServiceId”:”123310169″, “opcoProduct”:”101633239″, “opcosubProduct”:” [subProductName]”, “opcoTransactionId “:”035288953320233”,
“channelId “:”2”
}’

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “userId”:”96412345678″,
“action”:”update”, “opcoServiceId”:”123310169″, “opcoProduct”:”101633239″, “opcosubProduct”:” [subProductName]”,
“opcoTransactionId “:”035288953320233”, “statusChange”:” activate”,
“channelId “:”99”
}’