Update payment
PATCH /payments/{id}
Updates an existing payment by ID
Parameters
Payment ID previously sent or generated at creation.
Request body
payment object
Final payment status. See the documentation for more details on possible statuses.
succeeded declined failed blockedPayment method. Use this parameter only when it is necessary to supplement data that could not be transmitted at creation.
method object
Payment method type.
credit_card debit_cardcard object
Card network
visa mastercard american_express diners_club elo hipercard jcb discover otherIndicates whether the transaction was made with card present (CP) or card not present (CNP). See the card presence documentation for more information.
card_present card_not_presentFirst 8 digits of the PAN that identify the card issuer (also known as IIN)
Last 4 digits of the PAN
List of transaction attempts for this payment. Required if payment `status` is `succeeded` or `declined`. Recommended for `failed` and `blocked` if there are transaction attempts.
transactions[] item
Unique transaction identifier code. See the documentation for more details on the transaction code.
Transaction attempt return status. See the documentation for more details on possible statuses.
succeeded declined failedTransaction execution time in milliseconds (1 second = 1000 milliseconds).
Date and time when the transaction was initiated in ISO 8601 format. If not sent, the current time will be used. The maximum period for retroactive submission (backfill) is 24 hours. Future timestamps are not allowed.
Information about the payment connector used in the transaction. The connector can be an acquirer, a sub-acquirer, or a gateway.
connector object
Integration code with the connector. Provide a code that represents an affiliation contract or a specific integration connection. We recommend prefixing the code with the connector type to facilitate report queries.
Connector type. See the documentation for the complete list.
Alphanumeric response code of the attempt. For credit cards in Brazil, preferably use the standard determined by ABECS normative 21. Required if `transaction.status` is `succeeded` or `declined`. Recommended for `failed` when present.
Responses
200Payment updated successfully
401Invalid access credentials
errors[] item
Request field where the error occurred
Error type code
Error message
422Invalid parameters
errors[] item
Request field where the error occurred
Error type code
Error message
404Object not found
errors[] item
Request field where the error occurred
Error type code
Error message
{
"payment": {
"status": "succeeded",
"method": {
"type": "credit_card",
"card": {
"network": null,
"presence": null,
"bin": null,
"last_four": null
}
},
"transactions": [
{
"id": null,
"status": null,
"duration": null,
"timestamp": null,
"connector": null
}
]
}
}