I’m having an issue where I’m passing in discount information when creating an order through the API. I get back an error message that says: “There is no discount on this order with uid 6883b540475b4”
However, in my request the uid is clearly present. Here is the request I’m sending:
{
“idempotency_key”: “6883b540475b3”,
“order”: {
“line_items”: [
{
“quantity”: “1”,
“catalog_object_id”: “2CMEDTXIGBXO3JJJFPET4IPB”,
“item_type”: “ITEM”,
“name”: “Cryotherapy”,
“base_price_money”: {
“amount”: 5000,
“currency”: “USD”
},
“applied_discounts”: [
{
“discount_uid”: “6883b540475b4”
}
]
}
],
“location_id”: “L4BNBNQ0ZEPC0”
},
“customer_id”: “MMR1RSMY2E4GYCQW69MJ9G5Y9R”,
“discounts”: [
{
“uid”: “6883b540475b4”,
“catalog_object_id”: “64MHW76UHXXO7QL57XCRGRZR”,
“scope”: “LINE_ITEM”
}
]
}
Any ideas as to what I’m doing wrong? I also tested these same values on the calculate order endpoint and it worked as expected. So I feel like this is either a bug, or something very specific to my discount uid.