TI-API gave me the following response to a production order:
[errorCode] => ERR-TICOM-ORDER-API-0004
[type] => Validation
[section] => Generic
[field] =>
[reason] => Your company recently purchased XIO2001ZWS and must wait 29 days before purchasing again.
[message] => Remove the item from your request and resubmit later when the inventory is available to order.
[data] =>
While the message is easy to handle by a human user, I have to automatically process this, i.e. mark XIO2001ZWS for a delay of at least 29 days while continuing to order other material; manual intervention is not an option.
Unfortunately I cannot find anything suitable in the JSON-response, neither at head nor at item level. I'd need machine-readable information of a) which customerLineItemNumber (or tiLineItemNumber) has a problem and b) the minimum time interval after which a resubmission could be successful. Is there any way to get this?
(This cannot be simulated in the test environment as all orders are accepted there as long as the quantity does not exceed the given limit).