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: [V1] Order Api always reject orders (RC 400)

Part Number: TI-API

Hello,
I'm facing an issue with placing orders via order API [V1].

The endpoint always returns 400RC with this response:


{
   "Order":{
      "OrderMessages":[
         {
            "Code":"TI-TXT-034040",
            "Type":"ERROR",
            "Message":"Cannot place ecommerce order via Apruve at this time. Error: 400  ,  Please contact TI Support"
         }
      ],
      "CustomerPurchaseOrderIdentifier":"Advantech Ordering Script.",
      "SupplierOrderStatus":"Rejected",
      "CustomerSoldToIdentifier":"182XXX",
      "CustomerShipToIdentifier":"182XXX",
      "ShippingCost":13,
      "LineItems":[
         {
            "SupplierOrderLineItemNumber":10,
            "CustomerOrderLineItemNumber":1,
            "SupplierOrderItemStatus":"Rejected",
            "SupplierProductIdentifier":"SN74HCS126QPWRQ1",
            "CustomerProductIdentifier":"SN74HCS126QPWRQ1",
            "SupplierTotalOrderItemQuantity":20,
            "CustomerRequestedQuantity":20,
            "CustomReelIndicator":false
         }
      ]
   }
}

The request was sent as follows:

{
   "Order": {
      "CustomerPurchaseOrderIdentifier": "Advantech Ordering Script.",
      "CustomerPurchaseOrderDate": null,
      "ApruveAccountId": "MASKED",
      "CustomerSoldToIdentifier": "182XXX",
      "CustomerShipToIdentifier": "182XXX",
      "CustomerEndCustomerIdentifier": null,
      "CustomerBillToIdentifier": null,
      "CustomerPayerIdentifier": null,
      "CustomerOrderAttributes": [],
      "CustomerDesiredShipping": [],
      "LineItems": [
         {
            "CustomerOrderLineItemNumber": 1,
            "SupplierProductIdentifier": "SN74HCS126QPWRQ1",
            "CustomerProductIdentifier": "SN74HCS126QPWRQ1",
            "CustomReelIndicator": false,
            "CustomerRequestedQuantity": 20,
            "CustomerItemAttributes": null
         }
      ]
   }
}

 

Looks like it's related to the Apruvee account, but I'm not sure, anyway, we checked Apruvee ID and it looks fine.

  • Hi Martina,

    We have reached out to Apruve on your behalf to get further information why this is happening on this account. We hope to get provide additional details to you by tomorrow.

    Other reason for this error would be the following. If these are not applicable for your case. Please let us know.

    1. You have insufficient funds in your Apruve account.

    2. You have unpaid invoices due which needs to be cleared before placing other orders.

  • Hi Martina,

    Apruve is still assessing your account at the moment and has yet to get back to us.

    We see that your Apruve Account being used  is setup as USD currency. We would like to verify if USD is your choice of currency. 

    The error could potentially occur as well if there is a mismatch with the Currency being used on apruve and what is setup on our side. Can you let us know what currency you are expecting?

    Thank you!

  • Hello , 
    Thank you for your help 
    yes we are using USD and expecting our account to be in USD.

    Thanks!

  • Hi Martina,

    Thank you for the confirmation. We've done some minor adjustments on our side

    Can you please retry submitting your API orders again and let us know if this issue still appears. Thanks!

**Attention** This is a public forum