- taobao
- สินค้าโภคภัณฑ์
- การสั่งซื้อ
- ตะกร้าสินค้า
- หลังการขาย
- โทรกลับข้อความ
- 1688
- สินค้าโภคภัณฑ์
- ตะกร้าสินค้า
- การสั่งซื้อ
- การส่งจำนวนมากของนักพัฒนา การชำระเงินสำหรับการสั่งซื้อ 1688POST
- แสดงตัวอย่างอินเทอร์เฟซข้อมูลก่อนสร้างคำสั่งซื้อ (ร้านค้าที่แตกต่างกัน)POST
- การสร้างจำนวนมากการสร้างอินเตอร์เฟซการสั่งซื้อ (ร้านค้าที่แตกต่างกัน)POST
- รับข้อมูลการติดตามโลจิสติกส์GET
- รายการสั่งซื้อPOST
- แสดงตัวอย่างอินเทอร์เฟซข้อมูลก่อนสร้างคำสั่งPOST
- สร้างอินเทอร์เฟซสั่งซื้อPOST
- ยกเลิกการสั่งซื้อก่อนชำระเงินPOST
- การชำระเงินสำหรับการสั่งซื้อGET
- ผู้ซื้อยืนยันการรับสินค้าPOST
- 1688 แปลง ถอดรหัสลับ Wangwang ชื่อเล่น อินเตอร์เฟซPOST
- หลังการขาย
- โทรกลับข้อความ
- มูลนิ ธิ
- โลจิสติกส์คลังสินค้า
สร้างอินเทอร์เฟซสั่งซื้อ
POST
/v2/alibaba/order/create
请求参数
Header 参数
access-key
string
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string
可选
默认值:
nonce-str
timestamp
string
必需
默认值:
1715669977082
user-id
string
必需
默认值:
2100007341207
signature
string
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
flow
string
必需
message
string
订单备注
shopPromotionId
string
可选
tradeType
string
可选
addressParam
object (FastAdress)
收货地址信息
fullName
string | null
可选
mobile
string | null
可选
phone
string | null
可选
postCode
string | null
可选
cityText
string | null
可选
provinceText
string | null
可选
areaText
string | null
可选
townText
string | null
可选
address
string | null
可选
districtCode
string | null
可选
cargoParamList
array[object (FastCargo) {3}]
商品信息不能为空
offerId
integer | null
可选
specId
string | null
可选
quantity
number | null
可选
userId
string
可选
staffName
string
雇员名称
platformOrder
integer
下单途径
transferAccountImgs
string
可选
转账凭证
transferAccountRemark
string
可选
银行转账备注
示例
{
"flow": "string",
"message": "string",
"shopPromotionId": "string",
"tradeType": "string",
"addressParam": {
"fullName": "string",
"mobile": "string",
"phone": "string",
"postCode": "string",
"cityText": "string",
"provinceText": "string",
"areaText": "string",
"townText": "string",
"address": "string",
"districtCode": "string"
},
"cargoParamList": [
{
"offerId": 0,
"specId": "string",
"quantity": 0
}
],
"userId": "string",
"staffName": "string",
"platformOrder": 0,
"transferAccountImgs": "string",
"transferAccountRemark": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/alibaba/order/create' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"flow": "string",
"message": "string",
"shopPromotionId": "string",
"tradeType": "string",
"addressParam": {
"fullName": "string",
"mobile": "string",
"phone": "string",
"postCode": "string",
"cityText": "string",
"provinceText": "string",
"areaText": "string",
"townText": "string",
"address": "string",
"districtCode": "string"
},
"cargoParamList": [
{
"offerId": 0,
"specId": "string",
"quantity": 0
}
],
"userId": "string",
"staffName": "string",
"platformOrder": 0,
"transferAccountImgs": "string",
"transferAccountRemark": "string"
}'
返回响应
🟢200成功
application/json
Body
requestId
string
请求ID
code
integer
返回码
developId
integer
开发者ID
msg
string
返回码对应信息
data
object (AlibabaTradeModelTradeInfoVO)
返回内容
guaranteesTerms
object (AlibabaOpenplatformTradeModelGuaranteeTermsInfo)
可选
internationalLogistics
object (AlibabaOpenplatformTradeModelInternationalLogisticsInfo)
可选
nativeLogistics
object (AlibabaOpenplatformTradeModelNativeLogisticsInfo)
可选
productItems
array[object (ProductItem) {46}]
可选
tradeTerms
array[object (AlibabaOpenplatformTradeModelTradeTermsInfo[]) {10}]
可选
extAttributes
array[object (AlibabaOpenplatformTradeKeyValuePair[]) {3}]
可选
orderRateInfo
object (AlibabaTradeOrderRateInfo)
可选
orderInvoiceInfo
object (AlibabaInvoiceOrderInvoiceModel)
可选
customs
object (AlibabaTradeCustoms)
可选
overseasExtraAddress
object (AlibabaTradeOverseasExtraAddress)
可选
baseInfo
object (AlibabaOpenplatformTradeModelOrderBaseInfo)
可选
orderBizInfo
object (AlibabaOrderBizInfo)
可选
quoteList
array[object (AlibabaOrderDetailCaigouQuoteInfo[]) {3}]
可选
fromEncryptOrder
boolean
可选
encryptOutOrderInfo
object (AlibabaTradeGetSellerViewTradeinfoEncryptOutOrderInfo)
可选
outChannel
string
可选
sendGoodsOverdueRisk
string
可选
officialLogisticOrder
boolean
可选
示例
{
"requestId": "",
"code": 0,
"developId": 0,
"msg": "",
"data": {
"guaranteesTerms": {
"assuranceInfo": "",
"assuranceType": "",
"qualityAssuranceType": ""
},
"internationalLogistics": {
"address": "",
"allDeliveredTime": "",
"alternateAddress": "",
"carrier": "",
"city": "",
"cityCode": "",
"contactPerson": "",
"country": "",
"countryCode": "",
"fax": "",
"faxArea": "",
"faxCountry": "",
"insuranceFee": 0,
"logisticsCode": "",
"logisticsFee": 0,
"mobile": "",
"mobileArea": "",
"mobileCountry": "",
"port": "",
"portCode": "",
"province": "",
"provinceCode": "",
"shipmentAbsoluteDate": "",
"shipmentAbsoluteZone": "",
"shipmentDateType": "",
"shipmentMethod": "",
"shipmentRelativeDuration": "",
"shipmentRelativeField": "",
"shipmentRelativeStart": "",
"telephone": "",
"telephoneArea": "",
"telephoneCountryv": "",
"tradeTerm": ""
},
"nativeLogistics": {
"address": "",
"area": "",
"areaCode": "",
"city": "",
"contactPerson": "",
"fax": "",
"mobile": "",
"province": "",
"telephone": "",
"zip": "",
"logisticsItems": [
{
"deliveredTime": "",
"logisticsCode": "",
"type": "",
"id": 0,
"status": "",
"gmtModified": "",
"gmtCreate": "",
"carriage": 0,
"fromProvince": "",
"fromCity": "",
"fromArea": "",
"fromAddress": "",
"fromPhone": "",
"fromMobile": "",
"fromPost": "",
"logisticsCompanyId": 0,
"logisticsCompanyNo": "",
"logisticsCompanyName": "",
"logisticsBillNo": "",
"subItemIds": "",
"toProvince": "",
"toCity": "",
"toArea": "",
"toAddress": "",
"toPhone": "",
"toMobile": "",
"toPost": "",
"noLogisticsCondition": "",
"noLogisticsName": "",
"noLogisticsTel": "",
"noLogisticsBillNo": "",
"isTimePromise": false,
"arriveTime": ""
}
],
"townCode": "",
"town": "",
"caid": "",
"realLogisticsCompanyNo": ""
},
"productItems": [
{
"cargoNumber": "",
"description": "",
"itemAmount": 0,
"name": "",
"price": 0,
"productID": "",
"productImgUrl": [
""
],
"productSnapshotUrl": "",
"quantity": 0,
"refund": 0,
"skuID": 0,
"sort": 0,
"status": "",
"subItemID": 0,
"type": "",
"unit": "",
"weight": "",
"weightUnit": "",
"guaranteesTerms": [
{
"assuranceInfo": "",
"assuranceType": "",
"qualityAssuranceType": ""
}
],
"productCargoNumber": "",
"skuInfos": [
{
"name": "",
"value": ""
}
],
"entryDiscount": 0,
"specId": "",
"quantityFactor": 0,
"statusStr": "",
"refundStatus": "",
"closeReason": "",
"logisticsStatus": 0,
"gmtCreate": "",
"gmtModified": "",
"gmtCompleted": "",
"gmtPayExpireTime": "",
"refundId": "",
"subItemIDString": "",
"refundIdForAs": "",
"erpMaterialCode": "",
"itemDiscountFee": "",
"cantSendReason": "",
"canSendGoods": false,
"barCode": "",
"permitLogisticsCpCode": "",
"deliverGoodsOverdueRisk": "",
"relatedCode": "",
"freeEntryServiceInfo": "",
"payEntryServiceInfo": [
{
"serviceAttriribute": "",
"serviceName": "",
"servicePrice": 0
}
],
"extAttributes": [
{
"key": "",
"value": "",
"description": ""
}
]
}
],
"tradeTerms": [
{
"payStatus": "",
"payTime": "",
"payWay": "",
"phasAmount": 0,
"phase": 0,
"phaseCondition": "",
"phaseDate": "",
"cardPay": false,
"expressPay": false,
"payWayDesc": ""
}
],
"extAttributes": [
{
"key": "",
"value": "",
"description": ""
}
],
"orderRateInfo": {
"buyerRateStatus": 0,
"sellerRateStatus": 0,
"buyerRateList": [
{
"starLevel": 0,
"content": "",
"receiverNick": "",
"posterNick": "",
"publishTime": ""
}
],
"sellerRateList": [
{
"starLevel": 0,
"content": "",
"receiverNick": "",
"posterNick": "",
"publishTime": ""
}
]
},
"orderInvoiceInfo": {
"invoiceCompanyName": "",
"invoiceType": 0,
"localInvoiceId": 0,
"orderId": 0,
"receiveCode": "",
"receiveCodeText": "",
"receiveMobile": "",
"receiveName": "",
"receivePhone": "",
"receivePost": "",
"receiveStreet": "",
"registerAccountId": "",
"registerBank": "",
"registerCode": "",
"registerCodeText": "",
"registerPhone": "",
"registerStreet": "",
"taxpayerIdentify": ""
},
"customs": {
"id": 0,
"gmtCreate": "",
"gmtModified": "",
"buyerId": 0,
"orderId": "",
"type": 0,
"attributes": [
{
"sku": "",
"cName": "",
"enName": "",
"amount": 0,
"quantity": 0,
"weight": 0,
"currency": ""
}
]
},
"overseasExtraAddress": {
"channelName": "",
"channelId": "",
"shippingCompanyId": "",
"shippingCompanyName": "",
"countryCode": "",
"country": "",
"email": ""
},
"baseInfo": {
"allDeliveredTime": "",
"businessType": "",
"buyerID": "",
"buyerMemo": "",
"completeTime": "",
"createTime": "",
"currency": "",
"id": 0,
"modifyTime": "",
"payTime": "",
"receivingTime": "",
"refund": 0,
"remark": "",
"sellerID": "",
"sellerMemo": "",
"shippingFee": 0,
"status": "",
"totalAmount": 0,
"buyerRemarkIcon": "",
"sellerRemarkIcon": "",
"discount": 0,
"buyerContact": {
"phone": "",
"fax": "",
"email": "",
"imInPlatform": "",
"name": "",
"mobile": "",
"companyName": ""
},
"tradeType": "",
"refundStatus": "",
"refundStatusForAs": "",
"refundPayment": 0,
"idOfStr": "",
"alipayTradeId": "",
"receiverInfo": {
"toFullName": "",
"toDivisionCode": "",
"toMobile": "",
"toPhone": "",
"toPost": "",
"toTownCode": "",
"toArea": ""
},
"buyerLoginId": "",
"sellerLoginId": "",
"buyerUserId": 0,
"sellerUserId": 0,
"buyerAlipayId": "",
"sellerAlipayId": "",
"confirmedTime": "",
"closeReason": "",
"sumProductPayment": 0,
"stepOrderList": [
{
"stepOrderId": 0,
"stepOrderStatus": "",
"stepPayStatus": 0,
"stepNo": 0,
"lastStep": false,
"hasDisbursed": false,
"payFee": 0,
"actualPayFee": 0,
"discountFee": 0,
"itemDiscountFee": 0,
"price": 0,
"amount": 0,
"postFee": 0,
"adjustFee": 0,
"gmtCreate": "",
"gmtModified": "",
"enterTime": "",
"payTime": "",
"sellerActionTime": "",
"endTime": "",
"messagePath": "",
"picturePath": "",
"message": "",
"templateId": 0,
"stepName": "",
"sellerActionName": "",
"buyerPayTimeout": 0,
"buyerConfirmTimeout": 0,
"needLogistics": false,
"needSellerAction": false,
"transferAfterConfirm": false,
"needSellerCallNext": false,
"instantPay": false
}
],
"stepAgreementPath": "",
"stepPayAll": false,
"buyerFeedback": "",
"overSeaOrder": false,
"subBuyerLoginId": "",
"sellerOrder": false,
"preOrderId": 0,
"refundId": "",
"flowTemplateCode": "",
"buyerLevel": "",
"sellerCreditLevel": "",
"sellerContact": {
"phone": "",
"fax": "",
"email": "",
"imInPlatform": "",
"name": "",
"mobile": "",
"companyName": "",
"wgSenderName": "",
"wgSenderPhone": ""
},
"newStepOrderList": [
{
"gmtStart": "",
"gmtPay": "",
"gmtEnd": "",
"stepNo": 0,
"lastStep": false,
"stepName": "",
"activeStatus": 0,
"payStatus": 0,
"logisticsStatus": 0,
"payFee": 0,
"paidFee": 0,
"goodsFee": 0,
"adjustFee": 0,
"discountFee": 0,
"postFee": 0,
"paidPostFee": 0
}
],
"closeRemark": "",
"closeOperateType": "",
"couponFee": 0,
"tradeTypeDesc": "",
"payChannelList": [
""
],
"tradeTypeCode": "",
"payTimeout": 0,
"payTimeoutType": 0,
"payChannelCodeList": [
""
],
"ccid": "",
"relatedCode": "",
"buyerOpenUid": "",
"buyerSubOpenUid": "",
"inventoryMode": "",
"outOrderId": ""
},
"orderBizInfo": {
"odsCyd": false,
"accountPeriodTime": "",
"creditOrder": false,
"creditOrderDetail": {
"payAmount": 0,
"createTime": "",
"status": "",
"gracePeriodEndTime": "",
"statusStr": "",
"restRepayAmount": 0
},
"preOrderInfo": {
"appkey": "",
"marketName": "",
"createPreOrderApp": false
},
"lstOrderInfo": {
"lstWarehouseType": ""
},
"erpBuyerUserId": "",
"erpOrderId": "",
"erpBuyerOrgId": "",
"isCz": false,
"isDz": false,
"dz": false,
"dropshipping": false,
"shippingInsurance": "",
"hyperLinkCangFaOrder": false,
"hyperLinkOrder": false,
"hyperLinkSecondStepOrder": false,
"hyperLinkShipType": "",
"lightningWarehouse": false
},
"quoteList": [
{
"productQuoteName": "",
"price": 0,
"count": 0
}
],
"fromEncryptOrder": false,
"encryptOutOrderInfo": {
"outPlatformOrderNo": "",
"outPlatformCode": "",
"outPlatformAppkey": "",
"oaid": "",
"encryptReceiverName": "",
"encryptReceiverMobile": "",
"encryptReceiverAddress": "",
"outPatformExtraInfo": "",
"outShopId": "",
"outOriginAddress": {
"province": {
"code": "",
"name": ""
},
"city": {
"code": "",
"name": ""
},
"area": {
"code": "",
"name": ""
},
"town": {
"code": "",
"name": ""
},
"address": "",
"postCode": ""
},
"outShopName": "",
"outPlatformSubCode": "",
"outPlatformSupplyOrderNo": "",
"outSupplierId": ""
},
"outChannel": "",
"sendGoodsOverdueRisk": "",
"officialLogisticOrder": false
}
}
修改于 2025-04-25 06:42:27