您好,测试transact.ti.com/.../test,已经填写了正确的checkoutProfileId及Authorization,请求的json里面只有checkoutProfileId的值,其他都是用的官网给的demo内容,但是执行之后会报错“ERR-TICOM-ORDER-API-00400”,json请求格式有问题吗还是别的什么原因?
我的请求json:
{
"order": {
"checkoutProfileId": "已设置",
"customerPurchaseOrderNumber": "INSERT PO NUMBER HERE",
"endCustomerCompanyName": "INSERT END CUSTOMER NAME HERE",
"expediteShipping": false,
"customerOrderComments": [
{
"message": "MY TEST ORDER"
}
],
"lineItems": [
{
"customerLineItemNumber": 1,
"tiPartNumber": "NE555DR",
"customerPartNumber": "MY CUSTOMER PARTNUMBER",
"customReelIndicator": false,
"quantity": 1,
"customerItemComments": [
{
"message": "SOME COMMENT GOES HERE"
}
]
},
{
"customerLineItemNumber": 2,
"tiPartNumber": "LM358PWR",
"quantity": 1
}
]
}
}
返回结果:
{
"errors": [
{
"errorCode": "ERR-TICOM-ORDER-API-00400",
"section": "Generic",
"type": "BadRequest",
"reason": "Invalid Syntax in request JSON",
"message": "There is an error in the syntax. Please correct the syntax (i.e extra comma, missing comma, missing bracket, etc.) and try again."
}
]
}