Skip to main content

Capture Pre-Auth Token Payment

  https://api-sandbox.letpay.io/token/MY_PAYMENT_TOKEN/capture

Captures a pre-authorized payment that were already sent using the Process Token Payment method.

Request Fields

  • amount (required/float): Amount of the payment to be captured. Must be less or equal to pre-authorized amount.

Response Fields

  • payment_token (string): Token to identify this payment.
  • refresh_token (string): Updated access token for next calls.
  • transaction_status (string): Status of this payment.
AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Body Raw(json)

json
{
"amount": 123.45
}

Example Request

Example Request

200 - Success
    curl --location 'https://api-sandbox.letpay.io/token/MY_PAYMENT_TOKEN/capture' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN' \
--data '{
"amount": 123.45
}'

Example Response

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