get https://partner.gupshup.io/partner/app//discount
Use this API to get the daily discount, daily bill, and the cumulative bill for a Gupshup app for a specific month
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
appId | {{APP_ID}} | Unique Identifier for Gupshup App |
year | {{YEAR}} | Year in YYYY format. |
month | {{MONTH}} | Month in MM format. |
Sample Request
curl --location --request GET 'https://partner.gupshup.io/partner/app/{{APP_ID}}/discount?year={{YEAR}}&month={{MONTH}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'
Sample Response
{
"dailyAppDiscountList":[
{
"appId":"8*****j7-a**3-4**d-8***-c2******7bf**3",
"cumulativeBill":0,
"dailyBill":0,
"day":2,
"discount":0,
"gsCap":75,
"gsFees":0,
"month":4,
"partnerId":15,
"year":2022
},
{
"appId":"8*****j7-a**3-4**d-8***-c2******7bf**3",
"cumulativeBill":0.014,
"dailyBill":0.014,
"day":4,
"discount":0,
"gsCap":75,
"gsFees":0.014,
"month":4,
"partnerId":15,
"year":2022
}
]
}