POST /2022-01/orders.json ERROR 500

ben_baback
Shopify Partner
3 0 0

Hi team 👋

 

We are trying to create a new order from API. We call the route POST admin/api/2022-01/orders.json with this body : 

 

{
    "order": {
        "line_items": [
            {
                "quantity": 1,
                "variant_id": 39973113921615
            }
        ],
        "note": "Free",
        "customer": {
            "id": 5631813124175
        },
        "financial_status": "paid",
        "discount_codes": [
            {
                "code": "EXCHANGE",
                "amount": "100.00",
                "type": "percentage"
            }
        ]
    }
}

 

 

We always receive an error 500 (X-Request-ID : 4e39c8be-c223-449e-9806-9e3117c2528c).

BUT if we remove the "customer" field, everything is going well.

I checked that I do have read_customer and writte_order scope.

Do you have any idea how I can fix this ? 🙂

Replies 0 (0)