POST
/
api
/
v1
/
customer-billing
/
refill
curl --request POST \
  --url https://prod.oneloop.ai/api/v1/customer-billing/refill \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "externalMeterId": "<string>",
  "refill": 1
}'
{
  "billing": {
    "id": "<string>",
    "totalCredits": "<string>",
    "usedCredits": "<string>",
    "allowOverages": true,
    "spendCap": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string
required
externalMeterId
string
required
refill
integer
Required range: x > 0

Response

200
application/json
The updated billing
billing
object | null
required