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

Name
Type
Description

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

Name
Type
Description

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.

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

Last updated

Was this helpful?