Sell (Gold)
TestingPOST
/partner/order/digital/sellLast modified: 9 months ago
Maintainer: Not configured
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
price_token
string
required
Optional value
currency_code
enum<string>
optional
Allowed values:
GBPTRYUSDEUR
external_id
string
required
customer
object
required
external_id
string
required
firstname
string
optional
middlename
string
optional
lastname
string
optional
fullname
string
optional
email
string
optional
phone
string
optional
gender
string
optional
identity_number
string
optional
birthdate
string
optional
items
array [object {2}]
required
product_id
string
optional
amount
integer
optional
Example
{
"price_token": "{{price_token}}",
"external_id": "{% faker datatype.uuid %}",
"customer": {
"external_id": "{{external_customer_id}}"
},
"items": [
{
"sku": "GAU",
"amount": 1
}
]
}
Request samples
Responses
OK(200)
Parameter Error(422)
Forbidden(403)
Parameter Error(New Customer)(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
order_code
array[string]
required
guid
array[string]
required
price
number
required
tax
integer
required
total
number
required
order_at
string
required
orders
$ref(#/definitions/549775)[]
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"order_code": [
"9YMEK5RB"
],
"guid": [
"71E174B7-C7AD-47FB-836E-3895FF41D4F5"
],
"price": 559.4,
"tax": 0,
"total": 559.4,
"order_at": "2023-05-31 03:16:45",
"orders": [
{
"guid": "71E174B7-C7AD-47FB-836E-3895FF41D4F5",
"order_code": "9YMEK5RB",
"external_id": "HYAQA0171v96o",
"type": "Buy",
"price": 559.4,
"tax": 0,
"total": 559.4,
"currency_rate": 1,
"currency_total": 559.4,
"status_name": "Pending",
"order_at": "31-05-2023 03:16",
"currency_code": "GBP",
"items": [
{
"product_id": 3000001,
"product_name": "Gold - Digital storage",
"spot_price": 50.85,
"price": 55.94,
"tax_rate": 0,
"tax": 0,
"amount": 10,
"total": 559.4,
"sku": "GAU"
}
],
"customer": null
}
]
},
"success": true,
"code": 0,
"message": ""
}
Last modified: 9 months ago