This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI-API: Why does the API split the order into two separate orders instead of keeping it as one?

Part Number: TI-API

Tool/software:

Hello,

During our implementation of the Backlog Order API, we discovered that if an order contains two items with the same part number, one with a Quote Number and the other without, the result after successfully creating the order using the Order API is two TI Orders. One contains only the item with the Quote Number, and the other contains only the item without the Quote Number.

This is the first time we are using Quote Numbers when creating an order, and this result will cause significant changes to the data structure of our designed system!

Why does the API split the order into two separate orders instead of keeping it as one?

Best Regards,

Juilien


Below is the JSON content we sent and received:


JSON Sent to Create Orders:

{
"order": {
"customerPurchaseOrderNumber": "XXXXXXXXXX",
"checkoutProfileId": " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ",
"endCustomerCompanyName": " XXXXXXXXXX ",
"lineItems": [
{
"customerLineItemNumber": 1,
"tiPartNumber": "TPD1E10B06DPYR",
"customerPartNumber": "P12345",
"customerAnticipatedUnitPrice": 0.025,
"quoteNumber": "",
"customerCurrencyCode": "USD",
"schedules": [
{
"requestedQuantity": 10000,
"requestedDeliveryDate": "2024-10-31"
}
]
}, {
"customerLineItemNumber": 2,
"tiPartNumber": "TPD1E10B06DPYR",
"customerPartNumber": "P12345",
"customerAnticipatedUnitPrice": 0.025,
"quoteNumber": "26929865",
"customerCurrencyCode": "USD",
"schedules": [
{
"requestedQuantity": 10000,
"requestedDeliveryDate": "2024-11-30"
}
]
}
]
}
}


JSON Returned 200:


{
"orders" : [
{
"orderNumber" : "1072521236",
"orderDate" : "2024-07-31",
"customerPurchaseOrderNumber" : " XXXXXXXXXX ",
"orderStatus" : "BEING PROCESSED",
"endCustomerCompanyName" : " XXXXXXXXXX,
"customerPurchaseOrderDate" : "2024-08-01",
"lineItems" : [
{
"tiLineItemNumber" : "000010",
"tiPartNumber" : "TPD1E10B06DPYR",
"customerLineItemNumber" : "1",
"customerPartNumber" : "P12345",
"itemCheckoutProfileId" : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"status" : "Not Delivered",
"tiTotalOrderItemQuantity" : 10000,
"customerAnticipatedUnitPrice" : 0.025,
"customerCurrencyCode" : "USD",
"tiUnitPrice" : 0.00,
"tiCurrencyCode" : "USD",
"messages" : [
{
"code" : "TI-TXT-005",
"type" : "INFO",
"reason" : "Pricing could not be determined",
"message" : "Sales order created, but price is not set up. For further support, contact TI customer support https://support.ti.com/csm"
},
{
"code" : "TI-TXT-006",
"type" : "INFO",
"reason" : "Item is not scheduled and may require manual schedule",
"message" : "Item is pending manual schedule which may take up to 48 hours. If your item is not scheduled after 48 hours, please contact TI customer support https://support.ti.com/csm"
}
],
"schedules" : [
{
"requestedQuantity" : 10000,
"requestedDeliveryDate" : "2024-10-31"
}
]
}
]
},
{
"orderNumber" : "1072521237",
"orderDate" : "2024-07-31",
"customerPurchaseOrderNumber" : " XXXXXXXXXX ",
"orderStatus" : "BEING PROCESSED",
"endCustomerCompanyName" : " XXXXXXXXXX ",
"customerPurchaseOrderDate" : "2024-08-01",
"lineItems" : [
{
"tiLineItemNumber" : "000010",
"tiPartNumber" : "TPD1E10B06DPYR",
"customerLineItemNumber" : "2",
"customerPartNumber" : "P12345",
"itemCheckoutProfileId" : " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ",
"status" : "Not Delivered",
"tiTotalOrderItemQuantity" : 10000,
"customerAnticipatedUnitPrice" : 0.025,
"customerCurrencyCode" : "USD",
"quoteNumber" : "26929865",
"tiUnitPrice" : 0.025,
"tiCurrencyCode" : "USD",
"messages" : [
{
"code" : "TI-TXT-006",
"type" : "INFO",
"reason" : "Item is not scheduled and may require manual schedule",
"message" : "Item is pending manual schedule which may take up to 48 hours. If your item is not scheduled after 48 hours, please contact TI customer support https://support.ti.com/csm"
}
],
"schedules" : [
{
"requestedQuantity" : 10000,
"requestedDeliveryDate" : "2024-11-30"
}
]
}
]
}
],
"termsOfSale" : "Sale of TI products by TI are subject to TI's Terms of sale ">www.ti.com/.../terms-of-sale.html"
}

  • Hi Juilien,

    With regards to your question, the first part of the JSON (no quote), will receive TI standard pricing, so, no need for it to be reviewed, so, it proceeds to be processed.  The second part of your JSON (with quote)  goes through a review process to validate pricing before it can be scheduled to process. Hence two orders.

    If you have any additional questions, please let me know.

  • Hi Julien, I can venture a guess that you'll have to send for Quote the whole quantity, as the price is based on quantities. If you ask for an official quote for 1000pcs, but then place an order for 5000pcs, then the system will pass the first 1000pcs through verification of the price. The other 4000pcs will probably have a different "non-negociated" price (maybe a web price)... Maybe Faye can confirm this, as I'm not a TI API professional.

  • Can it be summarized as follows:

    As long as some of the sent line items have a quote number and some do not, TI will split these line items into two orders: one for those with a quote number and another for those without a quote number? This splitting occurs regardless of whether the part numbers are the same or not?

  • yes, as Faye explained abouve, this is what happens. Is it not what you are expecting?

**Attention** This is a public forum