Skip to content
Guides
Payments & FinancePayments
payment:create

Capture payment

POST/v1/payments/{paymentTransactionId}/capture

Capture payment. A successful request returns HTTP 200 with the documented response body.

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth2 access token issued by Ecomiq Auth.

In: header

Path Parameters

paymentTransactionId*string

Header Parameters

x-Store-Id?string

Store the request acts on. Not needed when the token is bound to a store.

Authorization*string

OAuth 2.0 bearer token.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/payments/7204558912004325301/capture" \  -H "x-Store-Id: <store-id>" \  -H "Authorization: Bearer <token>"
{  "transactionId": "7204558912004325301",  "status": "pending",  "isCaptured": false,  "paymentMethodCode": "example_code",  "code": "example_code",  "cardType": "example",  "amount": 1,  "reference": "example",  "providerId": "7204558912004325301",  "publicConfiguration": {    "key": "example"  },  "clientSecret": "replace_with_a_random_secret",  "checkoutUrl": "https://example.com/resource",  "checkoutHtml": "example",  "qrCode": "example_code",  "receiptUrl": "https://example.com/resource",  "expiresAt": "2026-08-01T15:30:00Z",  "actionKind": "none"}