I am using the Create Order API in Sandbox with the optional flags for pricing options, auto_apply_taxes = true.
This endpoint is returning intermittent API errors with the same requests. Here are the sample Request / Response. I have a lot of examples of this behavior.
REQUEST BODY
{
“order”: {
“discounts”: ,
“location_id”: “L0611V96XE3TS”,
“line_items”: [
{
“quantity”: “3”,
“name”: “Hourly rate”,
“metadata”: {
“sku”: “P001”
},
“base_price_money”: {
“amount”: 500,
“currency”: “USD”
},
“quantity_unit”: {
“measurement_unit”: {
“time_unit”: “GENERIC_HOUR”
},
“precision”: 3
}
}
],
“pricing_options”: {
“auto_apply_taxes”: true
}
},
“idempotency_key”: “$9e588710-f5d6-4fe6-acad-174382ccf7ca”
}
RESPONSE: 504 GATEWAY TIMEOUT
RESPONSE BODY
{
"errors": [
{
"code": "GATEWAY_TIMEOUT",
"detail": "Gateway timeout.",
"category": "API_ERROR"
}
]
}