Update recurring payment
Updates an automatic payment leg — typically to cancel or supply
cancellation metadata. Requires subTenantId.
PATCH
/api/v1/automatic-payments/recurring-payments/{recurringPaymentId}Update recurring payment
Updates a recurring payment, typically to cancel or modify payment status.
Auth: Bearer Token
Parâmetros de path
1 camporecurringPaymentId●pathstring
Automatic payment id returned by create payment or list endpoints.
Cabeçalhos
1 camposubTenantId●headerstring
Subtenant that owns the payment.
Corpo da requisição
3 camposcpfCancelledBybodystring
CPF (digits only) of the user who cancelled — listed as required in strict OpenAPI; omit if your backend follows the `base` example instead.
statusbodystring
Example field from OpenAPI `base` sample (for example `CANC`).
cancellationbodyobject
Structured cancellation data from the `base` example.
cancelledBybodyobject
documentbodyobject
identification●bodystring
rel●bodystring
curl --request PATCH \
--url 'https://embedded-payment-manager.hml.linaob.com.br/api/v1/automatic-payments/recurring-payments/payment-123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <SEU_TOKEN>' \
--header 'subTenantId: subtenant_abc123' \
--data '{
"cpfCancelledBy": "11111111111",
"status": "CANC",
"cancellation": {
"cancelledBy": {
"document": {
"identification": "11111111111",
"rel": "CPF"
}
}
}
}'Response
200Payment updated successfully.
Response body
object
- dataobjectrequired
Updated AutomaticPayment — see OpenAPI.
- idstringrequired
Payment id.
- messagestring
Response message.
- typestring
Envelope type.
200 · Payment updated successfully.
{
"data": {
"id": "payment-123",
"status": "CANCELADO"
},
"message": "",
"type": "success"
}Next steps
- Retry recurring payment — attempt settlement again after a failure.
- List payments by sub-tenant — confirm the updated status.