Get Order (Alternative)
TestingPOST
/partner/orderLast modified: 6 months ago
Maintainer: Not configured
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
guid
string
optional
order_code
string
optional
external_id
string
optional
Your unique order id
push_hook
boolean
optional
Push webhook to your defined endpoint
Example
{
"guid": "2B555C6D-E551-4BD0-8912-B72A77E53723",
"push_hook": true
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object (Order Schema)
required
guid
string
required
order_code
string
required
external_id
string | null
required
type
enum<string>
required
Allowed values:
BuySellDelivery
price
number
optional
tax
number
optional
total
number
optional
payment_cost
number | null
optional
currency_code
string
required
status_name
enum<string>
optional
Allowed values:
CreatedPendingProcessingCancelledCompletedPreparingPackedShippedTransferringRefundingRefundedPayment Confirmed
items
array[object (Order Item Schema) {9}]
required
customer
optional
payment_type
enum<string>
optional
Allowed values:
cashcredit-card
payment
optional
delivery
object (Order Item Delivery)
optional
address
object (Order Address)
optional
description
string | null
optional
only on digital orders
Examples:
1gr - #GAU1000gr - #GAG
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"guid": "896AE1AC-E26F-4291-80B2-BF80DE0A920A",
"order_code": "ALS8HEVP",
"external_id": "1699255128879-05ee3052-47fe-4747-adff-2cde45d8d9ec",
"type": "Buy",
"price": 188.97,
"tax": 0,
"total": 188.97,
"status_name": "Completed",
"payment_type": "cash",
"order_at": "06-11-2023 07:18",
"payment_cost": 0,
"currency_code": "TRY",
"customer": {
"external_id": "92440753",
"firstname": "Soner",
"middlename": null,
"lastname": "Kaya",
"fullname": "Soner Kaya",
"email": "[email protected]",
"phone": "+905321111111",
"gender": "M",
"identity_number": "46714948610",
"birthdate": "1990-05-01"
},
"payment": null,
"items": [
{
"product_id": 3000001,
"sku": "GAU",
"product_name": "Gold - Digital storage",
"spot_price": 1813.02,
"price": 1889.73,
"tax_rate": 0,
"tax": 0,
"amount": 0.1,
"total": 188.97
}
]
},
"success": true,
"code": 0,
"message": ""
}
Last modified: 6 months ago