Usage Charges
GET https://api.ecartapi.com/api/v2/billing/{{id}}/usage
To make usage charges you must create a recurrent billing and activate it so you can charge the store
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"usageCharges":[{"balance":{"spent":"2","remaining":"98"},"dates":{"createdAt":"2020-11-20T14:10:56-05:00","billingOn":"2020-11-25"},"id":"49715133","description":"Super Mega Plan 1000 emails","price":"1.00"},{"balance":{"spent":"2","remaining":"98"},"dates":{"createdAt":"2020-11-20T14:13:15-05:00","billingOn":"2020-11-25"},"id":"49715399","description":"Super Mega Plan 1000 emails","price":"1.00"}]}