Hi
I am trying to place order with multiple discounts using Shopify Admin API, however even though order is created, it only has one discount attached. Order API request looks as follows
{
"order": {
"id": 0,
"billing_address": {
"address1": "350 5th Avenue",
"city": "New York",
"company": null,
"country": "US",
"first_name": "XX",
"last_name": "YY",
"phone": "XXXXXXX",
"zip": "10118"
},
"shipping_address": {
"address1": "350 5th Avenue",
"city": "New York",
"company": null,
"country": "US",
"first_name": "XX",
"last_name": "YY",
"phone": "XXXXXXX",
"zip": "10118"
},
"customer": {
"email": "XXXXXXX",
"first_name": "X",
"last_name": "Y",
"phone": "XXXXXXX"
},
"financial_status": "paid",
"fulfillment_status": null,
"processing_method": "Bolt",
"line_items": [
{
"id": 0,
"product_id": 47484595601682,
"variant_id": 47484595601682,
"fulfillment_status": null,
"quantity": 2,
"title": "The Collection Snowboard: Liquid",
"price": "749.95",
"tax_lines": [
{
"price": "118.9",
"rate": 0.0888,
"title": "Tax"
}
]
}
],
"total_tax": "118.9",
"tags": "",
"currency": "USD",
"inventory_behaviour": "decrement_ignoring_policy",
"shipping_lines": [
{
"id": 0,
"title": "Standard Shipping",
"code": "Standard Shipping",
"price": "0",
"tax_lines": [
{
"price": "0",
"rate": 0.0888,
"title": "Shipping Tax"
}
]
}
],
"taxes_included": false,
"discount_codes": [
{
"code": "1DOLLAROFF",
"amount": "1",
"type": "fixed_amount"
},
{
"code": "2DOLLARSOFF",
"amount": "2",
"type": "fixed_amount"
}
],
"send_receipt": true,
"send_fulfillment_receipt": true
}
}
yet only one discount added on created order
How can I create order with multiple discounts using Admin API? I tried both REST API and GraphQL API and none of them seems to be working - even though they take array of discounts as input
