VUZDevelopers

Get upcoming-charge preview

GET
/billing/upcoming-charge

Read-only preview of the next monthly invoice for the current business

X-Api-Key<token>

Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.

In: header

Response Body

application/json

curl -X GET "https://example.com/billing/upcoming-charge"
{  "currentPeriod": {    "start": "2019-08-24T14:15:22Z",    "end": "2019-08-24T14:15:22Z"  },  "totalDue": 0,  "prepaidAmount": 0,  "postpaidAmount": 0,  "smsUsage": {    "messageCount": 0,    "segmentCount": 0,    "estimatedCost": 0  },  "lastPayment": {    "date": "2019-08-24T14:15:22Z",    "amount": 0  },  "nextBillingDate": "2019-08-24T14:15:22Z"}