Skip to main content
https://.thoughtindustries.com

Update Credit Batch

Updates an existing credit batch by ID, allowing you to modify its name, expiration date, or current balance

Updates an existing credit batch by ID, allowing you to modify its name, expiration date, or current balance.

PUThttps://example.thoughtindustries.com/incoming/v2/clients/creditBatches/:id

Example request

curl -X PUT "https://example.thoughtindustries.com/incoming/v2/clients/creditBatches/:id" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "expiresOn": "string",
  "currentBalance": 0
}'

Parameters

NameTypeRequiredLocationDescription
iduuidYespathThe id identifier.
namestringNobodyDisplay name for the credit batch.
expiresOnISO 8601 timestampNobodyDate and time when the credit batch expires, in ISO 8601 format.
currentBalanceintegerNobodyNumber of credits currently available in the batch.

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "expiresOn": "2024-01-01T00:00:00.000Z",
  "currentBalance": 0
}

Response fields

FieldTypeDescription
iduuidIdentifier of the credit batch.
namestringName of the credit batch.
expiresOnISO 8601 timestampDate when the batch expires.
currentBalancenumberCredits remaining in the batch.