curl --request POST \
--url https://api.maplebilling.com/api/v1/companies/company_id/credits/consume \
--header 'authorization: Bearer my_token' \
--header 'content-type: application/json' \
--data '
{
"customer_id": "customer_id",
"type": "UNITS",
"item_id": "billable_item_id",
"units": 5
}
'