创建备货订单报错,报价返回信息状态已经是Bid状态



报错信息:

422 Unprocessable Entity: "{<EOL><EOL> "orders" : [<EOL><EOL> {<EOL><EOL> "customerPurchaseOrderNumber" : "PO20240828004",<EOL><EOL> "orderStatus" : "REJECT",<EOL><EOL> "customerPurchaseOrderDate" : "2024-08-28",<EOL><EOL> "lineItems" : [<EOL><EOL> {<EOL><EOL> "tiPartNumber" : "LMV331IDBVR",<EOL><EOL> "customerLineItemNumber" : "1",<EOL><EOL> "itemCheckoutProfileId" : "***********",<EOL><EOL> "status" : "Rejected",<EOL><EOL> "tiTotalOrderItemQuantity" : 6000,<EOL><EOL> "customerAnticipatedUnitPrice" : 0.21,<EOL><EOL> "customerCurrencyCode" : "USD",<EOL><EOL> "quoteNumber" : "26930694",<EOL><EOL> "messages" : [<EOL><EOL> {<EOL><EOL> "code" : "TI-TXT-100",<EOL><EOL> "type" : "ERROR",<EOL><EOL> "reason" : "End Customer is required",<EOL><EOL> "message" : "End Customer or endCustomerCompanyName on the order request does not match the value on the quote"<EOL><EOL> }<EOL><EOL> ],<EOL><EOL> "schedules" : [<EOL><EOL> {<EOL><EOL> "requestedQuantity" : 6000,<EOL><EOL> "requestedDeliveryDate" : "2025-05-01"<EOL><EOL> }<EOL><EOL> ]<EOL><EOL> }<EOL><EOL> ]<EOL><EOL> }<EOL><EOL> ]<EOL><EOL>}"
这个错误是checkoutProfileId,endCustomerCompanyName对不上吗?
  • 你好,因为您在Quote Create的时候填了endCustomerCompanyName这一栏,所以你创建订单的时候也需要把这个字段传进去并且值和之前保持一致。

  • 已在orderCreateRequest中加入相同的endCustomerCompanyName,还出现以下报错:

    422 Unprocessable Entity: "{<EOL><EOL> "orders" : [<EOL><EOL> {<EOL><EOL> "customerPurchaseOrderNumber" : "PO20240828004",<EOL><EOL> "orderStatus" : "REJECT",<EOL><EOL> "endCustomerCompanyName" : "Union Optech CO.,LTD",<EOL><EOL> "customerPurchaseOrderDate" : "2024-08-28",<EOL><EOL> "lineItems" : [<EOL><EOL> {<EOL><EOL> "tiPartNumber" : "LMV331IDBVR",<EOL><EOL> "customerLineItemNumber" : "1",<EOL><EOL> "itemCheckoutProfileId" : "1FA52204ED98*******21BB8B77C3",<EOL><EOL> "status" : "Rejected",<EOL><EOL> "tiTotalOrderItemQuantity" : 6000,<EOL><EOL> "customerAnticipatedUnitPrice" : 0.21,<EOL><EOL> "customerCurrencyCode" : "USD",<EOL><EOL> "quoteNumber" : "26930694",<EOL><EOL> "messages" : [<EOL><EOL> {<EOL><EOL> "code" : "TI-TXT-076",<EOL><EOL> "type" : "ERROR",<EOL><EOL> "reason" : "Duplicate customerLineItemNumber on existing order.",<EOL><EOL> "message" : "customerPurchaseOrderNumber with this same customerLineItemNumber currently exists on an orderNumber. Enter a unique customerLineItemNumber. For help, contact TI API Support https://api-portal.ti.com/support"<EOL><EOL> }<EOL><EOL> ],<EOL><EOL> "schedules" : [<EOL><EOL> {<EOL><EOL> "requestedQuantity" : 6000,<EOL><EOL> "requestedDeliveryDate" : "2025-05-01"<EOL><EOL> }<EOL><EOL> ]<EOL><EOL> }<EOL><EOL> ]<EOL><EOL> }<EOL><EOL> ]<EOL><EOL>}"

  • 这样是备货订单创建成功了吗?

  • 这个报错原因是customerLineItemNumber重复了,是我昨天用你的账户测试了一下已经下了这一条,你可以换一个行号重新下测试订单,谢谢。

  • 好的,不同的采购订单号肯定是不同的,那么每个采购订单号的行号可以默认是1吗,我的行号只有一级的情况下

  • 可以,只要保证订单号和行号的组合是唯一的就可以。