Skip to main content

Cancel Pre Auth Checkout Payment

  POST https://api-sandbox.letpay.io/checkout/MY_PAYMENT_TOKEN/cancel

Cancels a pre-authorized payment that were already sent using the Process Checkout Payment method.

Authorization

HeaderValue
X-Auth-TokenMY_ACCESS_TOKEN

Request Body

None

Response Body

  • payment_token (string): Token to identify this payment.
  • refresh_token (string): Updated access token for next calls.
  • transaction_status (string): Status of this payment.

Example Request

Example Request

200 - Success
    curl --location --request POST 'https://api-sandbox.letpay.io/checkout/MY_PAYMENT_TOKEN/cancel' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN'

Example Response

Header
  Content-Type: application/json
Body
    {
"transaction_status": "PROCESSING",
"payment_token": "8f048623-16c6-47da-aca1-546a16e8fb99",
"refresh_token": "MY_ACCESS_TOKEN"
}