订单更新
POST
/api/v2/merch/contract/update
合同订单
请求参数
Header 参数
X-Merch-Id
string
可选
默认值:
M24061911365700670
Body 参数application/json
request_id
string
必需
>= 1 字符<= 32 字符
buyer_name
string
必需
>= 1 字符<= 128 字符
buyer_country
string
必需
amount
integer <int64>
必需
currency
enum<string>
必需
枚举值:
EURUSDCNYGBPJPYAUDCADSGDHKDPHPCNH
contract_file_ids
array[integer <int32>]
必需
>= 1 items<= 10 items
contract_no
string
必需
>= 1 字符<= 32 字符
goods_info
object
商品信息
category
integer <int32>
必需
name
string
必需
>= 1 字符<= 128 字符
quantity
integer <int64>
商品数量
url
string
商品网址
>= 1 字符<= 256 字符
custom_dec_info
object
报关信息
invoice_file_ids
array[integer <int32>]
必需
>= 1 items<= 10 items
is_exchange_settle
boolean
是否需要结汇
logistics_info
object
物流信息
buyer_type
enum<string>
可选
枚举值:
NEWOLD
destination
string
可选
>= 1 字符<= 256 字符
expected_ship_date
string <date>
可选
freight_arrange_file_ids
array[integer <int32>]
可选
>= 1 items<= 10 items
latest_order_file_ids
array[integer <int32>]
可选
>= 1 items<= 10 items
logistics_company_name
string
可选
>= 1 字符<= 256 字符
outbound_no
string
可选
>= 1 字符<= 32 字符
inquiry_records_file_ids
array[integer <int32>]
可选
>= 1 items<= 10 items
ship_date
string <date>
可选
ship_status
enum<string>
必需
枚举值:
SHIPPEDUNSHIPPED
shipped_file_ids
array[integer <int32>]
可选
>= 1 items<= 10 items
transaction_type
enum<string>
必需
枚举值:
EXWFCAFASFOBCFRCIFCPTDDPDAFDDUDEQDES
transport_type
enum<string>
可选
枚举值:
AIRSHIPPINGEXPRESSLANDPOSTOTHER
order_date
string <date>
必需
remark
string
可选
>= 0 字符<= 128 字符
other_file_ids
array[integer <int32>]
可选
示例
{
"request_id": "string",
"buyer_name": "string",
"buyer_country": "string",
"amount": 0,
"currency": "EUR",
"contract_file_ids": [
0
],
"contract_no": "string",
"goods_info": {
"category": 0,
"name": "string",
"quantity": 0,
"url": "string",
"custom_dec_info": {
"dec_method": "string",
"dec_no": "string"
}
},
"invoice_file_ids": [
0
],
"is_exchange_settle": true,
"logistics_info": {
"buyer_type": "NEW",
"destination": "string",
"expected_ship_date": "2019-08-24",
"freight_arrange_file_ids": [
0
],
"latest_order_file_ids": [
0
],
"logistics_company_name": "string",
"outbound_no": "string",
"inquiry_records_file_ids": [
0
],
"ship_date": "2019-08-24",
"ship_status": "SHIPPED",
"shipped_file_ids": [
0
],
"transaction_type": "EXW",
"transport_type": "AIR"
},
"order_date": "2019-08-24",
"remark": "string",
"other_file_ids": [
0
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-fat.cb.paykka.com/api/v2/merch/contract/update' \
--header 'X-Merch-Id: M24061911365700670' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_id": "string",
"buyer_name": "string",
"buyer_country": "string",
"amount": 0,
"currency": "EUR",
"contract_file_ids": [
0
],
"contract_no": "string",
"goods_info": {
"category": 0,
"name": "string",
"quantity": 0,
"url": "string",
"custom_dec_info": {
"dec_method": "string",
"dec_no": "string"
}
},
"invoice_file_ids": [
0
],
"is_exchange_settle": true,
"logistics_info": {
"buyer_type": "NEW",
"destination": "string",
"expected_ship_date": "2019-08-24",
"freight_arrange_file_ids": [
0
],
"latest_order_file_ids": [
0
],
"logistics_company_name": "string",
"outbound_no": "string",
"inquiry_records_file_ids": [
0
],
"ship_date": "2019-08-24",
"ship_status": "SHIPPED",
"shipped_file_ids": [
0
],
"transaction_type": "EXW",
"transport_type": "AIR"
},
"order_date": "2019-08-24",
"remark": "string",
"other_file_ids": [
0
]
}'
返回响应
🟢200成功
*/*
Body
status
enum<string>
必需
枚举值:
RELATABLEALL_RELATED
示例
{
"status": "RELATABLE"
}
🟠400请求有误
🟠401没有权限
🟠404记录不存在
🟠429429
🔴500服务器错误
修改于 2024-12-03 07:24:33