capture
POST/v1/orders/:id/capture
capture
Request
Path Parameters
id stringrequired
Example: 0191f5a7-4260-7d12-8466-30ab11c8d51a
- application/json
Body
amount integerrequired
Possible values: >= 100
final booleanrequired
transaction_id string
Responses
- 200
- 400
- 401
- 403
- 422
returns success
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
id string
merchantobject
id string
acquirer_id string
name string
arabic_name string
merchant_id string
rule_precedence string
currency string
amount integer
captured_amount integer
refunded_amount integer
voided_amount integer
description string
created_at string
updated_at string
sourceobject
type string
issuer nullable
card_type nullable
category nullable
country_alpha2 nullable
scheme string
first_digits string
last_digits string
month integer
year integer
reauthorized_order_id nullable
airlineobject
reference string
sub_merchantobject
id string
registered_name string
trading_name string
email string
agreement nullable
transactionsobject[]
id string
status string
type string
source_type string
reverse_reason nullable
justification nullable
reversed_transaction_id nullable
message string
response_code nullable
retrieval_reference string
stan string
auth_code string
created_at string
amount integer
refunded_amount integer
{
"id": "string",
"merchant": {
"id": "string",
"acquirer_id": "string",
"name": "string",
"arabic_name": "string",
"merchant_id": "string",
"rule_precedence": "string"
},
"currency": "string",
"amount": 0,
"captured_amount": 0,
"refunded_amount": 0,
"voided_amount": 0,
"description": "string",
"created_at": "string",
"updated_at": "string",
"source": {
"type": "string",
"scheme": "string",
"first_digits": "string",
"last_digits": "string",
"month": 0,
"year": 0
},
"airline": {
"reference": "string"
},
"sub_merchant": {
"id": "string",
"registered_name": "string",
"trading_name": "string",
"email": "string"
},
"transactions": [
{
"id": "string",
"status": "string",
"type": "string",
"source_type": "string",
"message": "string",
"retrieval_reference": "string",
"stan": "string",
"auth_code": "string",
"created_at": "string",
"amount": 0,
"refunded_amount": 0
}
]
}
{
"id": "0191f5a7-423b-7de1-9c51-26936153af53",
"merchant": {
"id": "0191f5a7-4237-7f48-898d-34a0b4f76e67",
"acquirer_id": "0191f5a7-4235-7362-89dc-704f92f65a48",
"name": "Merchant 34",
"arabic_name": "الإسم العربي",
"merchant_id": "60034",
"rule_precedence": "merchant"
},
"currency": "SAR",
"amount": 139762,
"captured_amount": 139762,
"refunded_amount": 0,
"voided_amount": 0,
"description": "Eos asperiores qui excepturi.",
"created_at": "2024-09-15T12:27:45Z",
"updated_at": "2024-09-15T12:27:45Z",
"source": {
"type": "apple_pay",
"issuer": null,
"card_type": null,
"category": null,
"country_alpha2": null,
"scheme": "visa",
"first_digits": "42424242",
"last_digits": "4242",
"month": 9,
"year": 2026
},
"reauthorized_order_id": null,
"airline": {
"reference": "287956206991"
},
"sub_merchant": {
"id": "29022e47e8db785d3281e9f333938b",
"registered_name": "Gutmann-Watsica",
"trading_name": "Lind and Sons",
"email": "louie_fahey@bernhard.example"
},
"agreement": null,
"transactions": [
{
"id": "0191f5a7-423c-7380-a0c1-883ba984e84b",
"status": "initiated",
"type": "authorize",
"source_type": "merchant",
"reverse_reason": null,
"justification": null,
"reversed_transaction_id": null,
"message": "INITIATED",
"response_code": null,
"retrieval_reference": "770292292864",
"stan": "440131",
"auth_code": "409860",
"amount": 139762,
"refunded_amount": 0,
"created_at": "2024-09-15T12:27:45Z"
},
{
"id": "96a419bc-88ad-4d18-a946-55b8eab4ddb1",
"status": "approved",
"type": "capture",
"source_type": "merchant",
"reverse_reason": null,
"justification": null,
"reversed_transaction_id": null,
"message": "APPROVED",
"response_code": "00",
"retrieval_reference": "242590000001",
"stan": "000001",
"auth_code": null,
"amount": 139762,
"refunded_amount": 0,
"created_at": "2024-09-15T12:27:45Z"
}
]
}
fails when retries are exhausted
- application/json
- Schema
- Example (from schema)
- Example
Schema
message string
{
"message": "string"
}
{
"message": "Initial request is still processing."
}
returns unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
message string
{
"message": "string"
}
{
"message": "Missing authentication information"
}
returns forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
message string
{
"message": "string"
}
{
"message": "Unauthorized"
}
returns unprocessable_entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
message string
errorsobject
amount string[]
{
"message": "string",
"errors": {
"amount": [
"string"
]
}
}
{
"message": "Data validation failed",
"errors": {
"amount": [
"The value must be greater than or equal to 100."
]
}
}
Loading...