Skip to main content
POST
cURL
This can be used to alter the description or expiration date of a credit. If the credit expiry is in the past, this will throw an error. If the targeted credit is no longer active, this will throw an error.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

credit_id
string
required

The ID of the credit to retrieve or update.

Body

description
string | null
expires_at
string<date-time> | null

Response

200 - application/json
credit_id
string
required
customer
object
required
amount
number<double>
required
Required range: 0 <= x < 10000000000
amount_remaining
number<double>
required
read-only
Required range: 0 <= x < 10000000000
currency
object
required
description
string | null
required
read-only
effective_at
string<date-time>
required
read-only
expires_at
string<date-time> | null
required
read-only
status
enum<string>
required
read-only
  • active - Active
  • inactive - Inactive
Available options:
active,
inactive
amount_paid
number<double>
required
read-only
Required range: -10000000000 < x < 10000000000
amount_paid_currency
object | null
required
drawdowns
object[]
required
read-only