Developer Documentations

 

Self Help
Table of Contents
Print
HTTP Method POST
Operation Used by merchant to charge/subscribe the user

 

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “chargeRequestId”:”8635081281569934573″, “subscriptionId”:”8635081281569934573″, “userId”:”964123456789″,
“type”:”Subscription”, “firstCharge”:true, “freeOfCharge”: “true”, “freeTrialPeriod”: “1d”, “amount”:0, “currency”:”IQD”, “totalCharge_p30d”:0,
“aggregatorId”:”[aggregatorName]”, “merchantId”:”[merchantName]”, “product”:”[Product]”, “subProduct”:”[subProduct]”, “channel”:”WEB”, “promoter”:”[Merchant or Telco]”
}’

curl –location –request POST ‘https://[Dizlee API Endpoint]’ \
–header ‘Content-Type: application/json’ \
–header ‘apikey: {APIKey}’ \
–header ‘HTTP_MSISDN: 9641234567890’ \
–data-raw ‘{ “chargeRequestId”:”8635081281569934573″, “subscriptionId”:”8635081281569934573″, “userId”:”964123456789″,
“type”:”Renewal”, “firstCharge”:false, “freeOfCharge”: “false”, “amount”:0.001,
“currency”:”IQD”, “totalCharge_p30d”:0, “aggregatorId”:”[aggregatorName]”, “merchantId”:”[merchantName]”, “product”:”[Product]”, “subProduct”:”[subProduct]”, “channel”:”WEB”, “promoter”:”[Merchant or Telco]”
}’