Cancel a payment request

Cancel a payment request.

📘

Info

You can only cancel a payment request when the status is in the initial state.

Path Params
string
required

The unique identifier created by Belvo used to reference the payment request.

Responses

Response body
object
string

The unique identifier created by Belvo used to reference the payment request.

date-time | null

The ISO-8601 timestamp when the payment request was created in Belvo's database.

date-time | null

The ISO-8601 timestamp when information regarding the payment request was last updated.

string

The status of the payment request. Can be either:

  • initial

    The payment request has been created.
  • processing

    The charge files have been generated for the payment request. Awaiting response from the financial institution.
  • successful

    The financial institution has confirmed the payment request and the funds have been transferred.
  • failed

    The financial institution has reported an error for the payment request and no funds have been transferred.
  • canceled

    The request was canceled. This is only possible if the payment request has not transitioned to the processing status.

initial processing successful failed canceled

string | null

The financial institution's failure code.

string | null

The financial institution's failure message, describing the reason for the failure.

string

The amount to debit from the customer.

string

The three-letter ISO 4217 currency code of the transaction. At the moment, we only support mxn.

mxn

string

The unique identifier created by Belvo used to reference the customer.

string

The name of the customer.

string
length between 1 and 160

A reference for the payment request.

paymentMethod
object
string

The type of account. For Mexico, this value is set to bank_account.

bank_account

details
object

Details regarding the bank account associated with the payment method.

Language
Credentials