curl --request POST \ --url https://prod.oneloop.ai/api/v1/customer-billing \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "totalCredits": "0", "allowOverages": false, "spendCap": "<string>", "externalMeterId": "<string>", "workspaceId": "<string>" }'
{ "billing": { "id": "<string>", "totalCredits": "<string>", "usedCredits": "<string>", "allowOverages": true, "spendCap": "<string>", "createdAt": "<string>", "updatedAt": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The created billing
The response is of type object.
object