v1
latestOpenAPI 3.1.02026-07-247328324.6 KBReceivables
Update a receivable
patch/creditors/{creditor_id}/receivables/{id}
Path parameters
creditor_idstring required
An object id with prefix
Example:user_0123456789ABCDEFGHIJKLMNOPq
An object id with prefix
idstring required
An object id with prefix
Example:user_0123456789ABCDEFGHIJKLMNOPq
An object id with prefix
Headers
if-matchstring date-time required
ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.
Example:2024-01-15T10:30:00Z
ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.
Request body
Example request
{
"debtor_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"program_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"origination_date": "2024-01-15",
"currency": "USD",
"delinquent_days": 42,
"delinquent_amount": 10000,
"delinquent_times": 42,
"origination_fee": 10000,
"periodic_fee": {
"cycle_type": "30 days",
"amount": 10000
},
"term": "30 days",
"interest_rate": 0.05,
"credit_limit": 10000,
"payment_frequency": "30 days",
"metadata": {
"key": "value"
}
}Response
Successful operation
Example response
{
"debtor_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"program_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"origination_date": "2024-01-15",
"currency": "USD",
"delinquent_days": 42,
"delinquent_amount": 10000,
"delinquent_times": 42,
"origination_fee": 10000,
"periodic_fee": {
"cycle_type": "30 days",
"amount": 10000
},
"term": "30 days",
"interest_rate": 0.05,
"credit_limit": 10000,
"payment_frequency": "30 days",
"metadata": {
"key": "value"
},
"id": "user_0123456789ABCDEFGHIJKLMNOPq",
"created_at": "2024-01-15T10:30:00Z",
"created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
"updated_at": "2024-01-15T10:30:00Z",
"updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}