perform_extend
POST/v1/orders/:id/extend
perform_extend
Request
Path Parameters
id stringrequired
Example: 01904432-1edc-7c9d-934f-db1bee41c779
- application/json
Body
amount integer
integer | min:0 | default:0
Responses
- 200
- 401
- 403
- 422
extends an order
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
id string
merchant
object
id string
name string
arabic_name string
merchant_id string
currency string
amount integer
captured_amount integer
refunded_amount integer
voided_amount integer
description string
created_at string
updated_at string
source
object
type string
scheme string
first_digits string
last_digits string
month integer
year integer
reauthorized_order_id nullable
airline
object
reference string
sub_merchant
object
id string
registered_name string
trading_name string
email string
agreement nullable
transactions
object[]
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
{
"id": "string",
"merchant": {
"id": "string",
"name": "string",
"arabic_name": "string",
"merchant_id": "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"
}
]
}
{
"reauthorized_order_id": null,
"agreement": null,
"id": "01904432-1e81-7c4f-a2dc-81706b7aa1fc",
"merchant": {
"id": "01904432-1e7b-79b4-85ba-dfd36d85782d",
"name": "Merchant 18",
"arabic_name": "الإسم العربي",
"merchant_id": "60018"
},
"currency": "SAR",
"amount": 322564,
"captured_amount": 0,
"refunded_amount": 0,
"voided_amount": 0,
"description": "Repellat repellendus dolorum enim.",
"created_at": "2024-06-23T08:24:13Z",
"updated_at": "2024-06-23T08:24:13Z",
"source": {
"type": "card",
"scheme": "visa",
"first_digits": "42424242",
"last_digits": "4242",
"month": 11,
"year": 2026
},
"airline": {
"reference": "183723663884"
},
"sub_merchant": {
"id": "02279ccdf51b14eaedb4ce03829460",
"registered_name": "West-Hermiston",
"trading_name": "O'Reilly-Bahringer",
"email": "brenda@strosin.test"
},
"transactions": [
{
"id": "01904432-1e83-78c7-88fc-1a58e1395507",
"status": "initiated",
"type": "authorize",
"source_type": "merchant",
"reverse_reason": null,
"justification": null,
"reversed_transaction_id": null,
"message": "INITIATED",
"response_code": null,
"retrieval_reference": "239361614242",
"stan": "202490",
"auth_code": "115450",
"created_at": "2024-06-23T08:24:13Z"
},
{
"id": "01904432-1e94-774d-ba5f-76b51196c8d7",
"status": "failed",
"type": "extension",
"source_type": "merchant",
"reverse_reason": null,
"justification": null,
"reversed_transaction_id": null,
"message": "The city has invalid length. Length is 1-10.",
"response_code": "101",
"retrieval_reference": "241750000001",
"stan": "000001",
"auth_code": null,
"created_at": "2024-06-23T08:24:13Z"
}
]
}
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
errors
object
amount string[]
{
"message": "string",
"errors": {
"amount": [
"string"
]
}
}
{
"message": "Data validation failed",
"errors": {
"amount": [
"The value must be greater than or equal to 0."
]
}
}
Loading...