Skip to content

Finalize a pending payment

POST
/payments/{id}

Finalize a pending payment being made by a Bolt logged-in shopper. Upon receipt of a finalized payment result, payment success should be communicated to the shopper.

Authorization

oauth bolt.account.manageapi-key
AuthorizationBearer <token>

In: header

Scope: bolt.account.manage

X-API-Key<token>

In: header

Path Parameters

id*string

The ID of the payment to operate on

Header Parameters

X-Publishable-Key*string

The publicly shareable identifier used to identify your Bolt merchant division.

X-Merchant-Client-Id?string

A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with Bolt.state.merchantClientId in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/payments/iKv7t5bgt1gg" \  -H "X-Publishable-Key: string" \  -H "Content-Type: application/json" \  -d '{    ".tag": "finalize"  }'
{  ".tag": "finalized",  "id": "iKv7t5bgt1gg",  "status": "success",  "transaction": {    "reference": "OBYG-X1PX-FN55",    "authorizations": [      {        "processor_reference": "123456789XYZ"      }    ]  }}