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.

[FAQ] TI-API: Order API Error Code : ERR-TICOM-ORDER-API-0004

What steps can I take to resolve error codes for different scenarios?

  • Scenario Error details Remediation steps
    Customer Requested Quantity not available  
    {
    	"orderInfo": {
    	},
    	"errors": [
    		{
    			"errorCode": "ERR-TICOM-ORDER-API-0004",
    			"type": "lineItems",
    			"section": "Orders",
    			"field": null,
    			"reason": "Part number requested quantity is out of stock",
    			"message": "Resubmit the request with different quantity. Check the inventory levels for availability",
    			"data": [
    				{
    					"customerLineItemNumber": "1",
    					"tiPartNumber": "ISO7710FDWR",
    					"quantity": "4000",
    					"availableQuantity": "0"
    				}
    			]
    		}
    	]
    }
    1. Recheck inventory levels of requested part number via TI store inventory and pricing API.
    2. Resubmit your order request for a quantity less than or equal to available quantity.

    Segmented Restriction

    "errors": [
    	{
    		"errorCode": "ERR-TICOM-ORDER-API-0004",
    		"type": "Validation",
    		"section": "Generic",
    		"field": null,
    		"reason": "Your company recently purchased SM73307MME/NOPB and must wait 22 days before purchasing again.",
    		"message": "Remove the item from your request and resubmit later when the inventory is available to order.",
    		"data": null
    	}
    ]

    Remove this line item from your order and resubmit the request for this item at a later date.

    Note: To confirm last purchase date, a finance, buyer, or administrator can login to the company account and locate the Order history link found on the Orders tile. Search functionality in order history will work for any field found on the order.

    if isMilitary flag is true,  Inventory unfulfilled

    {
    	"orderInfo": {
    	},
    	"errors": [
    		{
    			"errorCode": "ERR-TICOM-ORDER-API-0004",
    			"type": "Application",
    			"section": "lineItems",
    			"field": null,
    			"reason": "We do not have inventory for the part number classified for military use.",
    			"message": "Resubmit your request with a lower quantity.",
    			"data": [
    				{
    					"customerLineItemNumber": "1",
    					"tiPartNumber": "UC2842AQD8R",
    					"quantity": "4000",
    					"availableQuantity": "10377"
    				}
    			]
    		}
    	]
    }
    1. Recheck inventory levels of requested part number via TI store inventory and pricing API.
    2. Resubmit your order request for a quantity less than or equal to available quantity.
    3. In the event that there is no available quantity, remove this line item from your order and resubmit the request for this item separately when inventory is available. 

**Attention** This is a public forum