我们准备通过tipai 2.0接口下单购买产品,在尝试调用下单接口时遇上了问题,请求接口是:post transact.ti.com/.../orders
请求参数:
{
"order": {
"checkoutProfileId": "E794CC993C1952B3E0538xxxxxxxxxxx",
"customerPurchaseOrderNumber": "202209091048001",
"endCustomerCompanyName": "深圳市xxx电子有限公司",
"expediteShipping": true,
"customerOrderComments": [
{
"message": "my first order"
}
],
"lineItems": [
{
"customerLineItemNumber": 1,
"tiPartNumber": "OPA4251UA",
"customerPartNumber": "20220909001",
"customReelIndicator": true,
"quantity": 10,
"customerItemComments": [
{
"message": "my first order"
}
]
}
]
}
}
接口给我们返回的响应结果:
422Unprocessable Entity
{
"orderInfo": {
"orderNumber": "",
"cartID": "C326666647",
"checkoutProfileId": "E794CC993C1952B3E0538xxxxxxxxxxx",
"currencyCode": "CNY",
"orderDate": "2022-09-12T20:55:42Z",
"orderEntry": "API",
"customerPurchaseOrderNumber": "202209091048001",
"orderStatus": "",
"orderedBy": "Ashley Yang",
"endCustomerCompanyName": "深圳市xxx电子有限公司",
"application": "Broadband fixed line access",
"endEquipment": "Modem (cable/DSL/GFAST)",
"intendedForMilitary": "No",
"isProductionOrder": true,
"totalOrderSummary": {
"subTotal": 797.22,
"estimatedDiscountAmount": 0.0,
"estimatedShippingCost": 80.0,
"estimatedTaxes": 114.04,
"orderTotal": 991.26
},
"discounts": null,
"lineItems": [
{
"tiLineItemNumber": "0",
"customerLineItemNumber": "1",
"tiPartNumber": "OPA4251UA",
"customerPartNumber": "20220909001",
"tiPartDescription": "Quad, 15V single-supply, micro power operational amplifiers",
"partType": "IC",
"htsCode": "",
"coCode": "",
"quantity": 10,
"shippedQuantity": 0,
"unitPrice": 79.722,
"netPrice": 797.22,
"dateCode": null,
"batchCode": null,
"status": "",
"fees": null,
"discounts": null,
"packageInformation": {
"carrier": "TUBE",
"delivery": [
{
"type": "Box or tube",
"quantity": 10
}
]
},
"waiverAvailable": "false",
"trackingAndShipping": [
{
"shippingFreightAccount": "TI",
"trackingNumbers": [
{
"shippingFromCountryCode": "Shenzhen",
"serviceLevel": "International economy",
"shipDate": null,
"masterTracking": null,
"leg1Carrier": null,
"leg1Tracking": null,
"leg1TrackingURL": null,
"leg2Carrier": null,
"leg2Tracking": null,
"leg2TrackingURL": null
}
],
"invoices": [],
"creditMemo": null
}
],
"customerItemComments": null,
"notifications": [
{
"topic": "Custom Reel",
"detail": "Sorry, custom reel option is not available. Your request is being fulfilled with cut tape package carrier"
}
]
}
],
"shippingAddress": {
"firstName": "xxx",
"lastName": "Yang",
"company": "SHEN ZHEN xxx ",
"addressLine1": "Clean Sunshine Garden, 15 Keji Bei ",
"addressLine2": null,
"city": "shenzhen",
"stateRegion": "Guangdong",
"postalCode": "518100",
"regionCode": "CN",
"region": "China",
"email": "yangxxx@xxx.com",
"phoneNumber": "139 xxx xxx",
"companyUrl": "www.xxx.com"
},
"billingAddress": {
"firstName": "xxx,
"lastName": "Yang",
"company": "SHEN ZHEN xxx ",
"addressLine1": "Clean Sunshine Garden, 15 Keji Bei ",
"addressLine2": null,
"city": "shenzhen",
"stateRegion": "Guangdong",
"postalCode": "518100",
"regionCode": "CN",
"region": "China",
"email": "yangfxxx@xxx.com",
"phoneNumber": "139 xxxx xxxx",
"companyUrl": "www.xxx.com"
},
"payment": {
"type": null,
"method": null,
"bankTranferApproverEmail": null
},
"taxInfo": {
"taxExemption": false
},
"vatDetails": [
{
"type": "SPECIALPAPERINVOICE",
"details": [
{
"customerTaxId": "9144xxxxxxxxxxxxL",
"customerName": "杨x",
"registrationAddress": "深圳市福田区xxxxxxx",
"contactPhone": null,
"contactMobilePhone": "0755-xxxxxxxx",
"contactEmail": "",
"bankName": "兴业银行深圳天安支行",
"bankAccountNumber": "3xxxxxxxxxxxxxx9"
}
]
}
],
"orderComments": [
{
"message": "my first order"
}
],
"notifications": []
},
"errors": [
{
"errorCode": "ERR-TICOM-ORDER-API-0009",
"type": "Validation",
"section": "Generic",
"field": null,
"reason": "Your bank transfer order does not meet minimum order value requirements for your country",
"message": "Resubmit the request with different payment options",
"data": null
}
]
}
如上所述,接口返回"errorCode": "ERR-TICOM-ORDER-API-0009", 看起来是银行卡问题,但实际上,我们使用的是中国工商银行,在tipai接口银联支付银行列表里面,请问:我们该怎么办呢?急急急,在线等您的答复,谢谢!