Capture Authorization

Execute a credit card authorization

Capture Authorization

PATCH https://api.stage.localpayment.com/api/payin/capture/:externalid

Execute a credit card authorization

Path Parameters

NameTypeDescription

externalId*

string

Mandatory. The ID which was given in the Capture Authorization. Each ID must be unique and meaningful to you and your system.

Headers

NameTypeDescription

Authotization*

string

Mandatory. JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication

{
    "externalId": "1649170424",
    "internalId": "40ae5d95-e859-4fc9-b37b-67442392b785",
    "status": {
        "code": "103",
        "description": "APPROVED",
        "detail": "The payin was confirmed but not credited yet"
    }
}

Example: Capture a Credit Card Authorization

In order to capture a credit card authorization order LP's api, the request body example is detailed below.

A credit card authorization order should be executed between 1-7 days, since the creation date.

The capture authorization should be equal to the amount detailed in the "amount" field of the Credit card authorization payment order previously posted.

The capture cannot be partial.

curl --location --request PATCH 'https://api.stage.localpayment.com/api/payin/capture/1649170424' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjQ5MTgyNjU1LCJqdGkiOiIyYTBmOTI0ZTRlYTA0YWQ2YjNmOTkxMTRhNTYyZmZmZiIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.uW7xZjTZ2_uK28QDFzdqY5eDgoULdXpv7zkG5s8nd5s'

Last updated