v1
latestOpenAPI 3.1.02026-07-228956435.8 KBCharges
Update a charge
Updates a charge. Only the amount and the currency can be updated, and only while the charge status is pending. Once the collection starts, the charge can no longer be updated.
patch/charges/{id}
Path parameters
idstring required
The id of the charge to update.
Request body
Example request
{
"amount": 9000,
"currency": "CLP"
}Response
The updated charge.
Example response
{
"id": "ch_o9YDuRzUez2GqV4x",
"amount": 5000,
"created_at": "2021-05-17T17:04:10.284Z",
"currency": "CLP",
"failure_code": "insufficient_funds",
"metadata": {
"order_id": "9182"
},
"mode": "live",
"recipient_account": {
"holder_id": "111111111",
"institution_id": "cl_banco_estado",
"number": "987654321",
"type": "checking_account"
},
"status": "succeeded",
"subscription_id": "sub_nMNejK7BT8oGbvO4"
}