Credits
Update credit
POST
/
api
/
credits
/
{credit_id}
/
update
/
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
headerrequiredToken-based authentication with required prefix "Token"
Path Parameters
credit_id
string
requiredThe ID of the credit to retrieve or update.
Body
description
string | null
expires_at
string | null
Response
200 - application/json
credit_id
string
requiredcustomer
object
requiredamount
number
requiredamount_remaining
number
requiredcurrency
object
requireddescription
string | null
requiredeffective_at
string
requiredexpires_at
string | null
requiredstatus
enum<string>
requiredactive
- Activeinactive
- Inactive
Available options:
active
, inactive
amount_paid
number
requiredamount_paid_currency
object
requireddrawdowns
object[]
required