Create order
gecko [master]
https://shopapi.geckodistribution.com
gecko [master]
https://shopapi.geckodistribution.com
POST
/api/open/order/create
Request
Header Params
version
string
required
Default:
{{shop_openapi_version}}
token
string
required
Default:
{{shop_openapi_token}}
Body Params application/json
List of items added to the shopping cart.
array of:
platform
integer <int32>
required
Example:
0
productid
string
required
Example:
590853024394
skudatalist
array[object (OpenSkudataAo) {2}]
required
>= 1 items
skuid
string
required
Example:
4740865740043
qty
integer <int32>
required
>= 1
Example:
2
Example
[
{
"platform": 0,
"productid": "590853024394",
"skudatalist": [
{
"skuid": "4740865740043",
"qty": 2
}
]
}
]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://shopapi.geckodistribution.com/api/open/order/create' \
--header 'version;' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"platform": 0,
"productid": "590853024394",
"skudatalist": [
{
"skuid": "4740865740043",
"qty": 2
}
]
}
]'
Responses
🟢200Success
application/json
Body
status
enum<string>
required
Allowed values:
0500
Example:
0
message
string
required
Example:
Operation successful.
data
object | null
optional
success
array[object (OpenOrderCreateSuccessVo) {5}] | null
optional
failure
array[object (OpenOrderCreateFailureVo) {4}] | null
optional
Example
{
"status": "0",
"message": "Operation successful.",
"data": {
"success": [
{
"position": 1,
"platform": 0,
"productid": "590853024394",
"message": "Order created successfully.",
"ordernos": "170736519167627,170736529315528"
}
],
"failure": [
{
"position": 2,
"platform": 0,
"productid": "590853024394",
"message": "Order creation failed."
}
]
}
}
🟢200Failure