get https://partner.gupshup.io/partner/app//usage
Use this API to get the daily usage breakdown for a particular Gupshup app ranging between two dates
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
appId | {{APP_ID}} | Unique Identifier for Gupshup App |
from | {{FROM_DATE}} | date in YYYY-MM-DD format. |
to | {{TO_DATE}} | date in YYYY-MM-DD format. |
Sample Request
curl --location --request GET 'https://partner.gupshup.io
/partner/app/{{APP_ID}}/usage?from={{FROM_DATE}}&to={{TO_DATE}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'
Sample Response
{
"partnerAppUsageList": [
{
"appId": "e*****e3-02**-****-8*69-a5e*****2dde",
"appName": "te*****rsday",
"authentication": 0, # applicable from 1st June 2023
"bic": 230, # deprecated from 1st June 2023
"date": "2023-05-29",
"fep": 279,
"ftc": 16,
"gsFees": 143,
"incomingMsg": 72,
"marketing": 0, # applicable from 1st June 2023
"outgoingMediaMsgSKU": 332,
"outgoingMsg": 27,
"service": 0, # applicable from 1st June 2023
"templateMediaMsgSKU": 26,
"templateMsg": 343,
"totalFees": 287,
"totalMsg": 15,
"uic": 21, # deprecated from 1st June 2023
"utility": 0, # applicable from 1st June 2023
"waFees": 144
},
{
"appId": "e*****e3-02**-****-8*69-a5e*****2dde",
"appName": "te*****rsday",
"authentication": 2, # applicable from 1st June 2023
"date": "2023-06-01",
"fep": 270,
"ftc": 16,
"gsFees": 43,
"incomingMsg": 172,
"marketing": 34, # applicable from 1st June 2023
"outgoingMediaMsgSKU": 32,
"outgoingMsg": 277,
"service": 23, # applicable from 1st June 2023
"templateMediaMsgSKU": 265,
"templateMsg": 143,
"totalFees": 87,
"totalMsg": 150,
"utility": 100, # applicable from 1st June 2023
"waFees": 44
}
]
}