I get an "Internal Server Error" when I call create order API with order.customer field

{
“order”: {
“requires_shipping”: true,
“financial_status”: “paid”,
“tags”: “influencer”,
“line_items”: [
{
“quantity”: 1,
“variant_id”: “41920275316899”
}
],
“billing_address”: {
“city”: “00”,
“country”: “00”,
“first_name”: “omar”,
“last_name”: “elsahragty”,
“zip”: “00”,
“province”: “00”,
“address1”: “00”
},
“shipping_address”: {
“city”: “00”,
“country”: “00”,
“first_name”: “omar”,
“last_name”: “elsahragty”,
“zip”: “00”,
“province”: “00”,
“address1”: “00”
},
“discount_codes”: [
{
“code”: “OMAR_1480”,
“amount”: “100.0”,
“type”: “percentage”
}
],
“customer”: {
“first_name”: “omar”,
“last_name”: “elsahragty”
},
“email”: [email removed]
}
}

This error appeared since yesterday

{
“order”: {
“requires_shipping”: true,
“financial_status”: “paid”,
“tags”: “affable, influencer”,
“line_items”: [
{
“quantity”: 1,
“variant_id”: “41920275316899”
}
],
“billing_address”: {
“city”: “00”,
“country”: “00”,
“first_name”: “omar”,
“last_name”: “elsahragty”,
“zip”: “00”,
“province”: “00”,
“address1”: “00”
},
“shipping_address”: {
“city”: “00”,
“country”: “00”,
“first_name”: “omar”,
“last_name”: “elsahragty”,
“zip”: “00”,
“province”: “00”,
“address1”: “00”
},
“discount_codes”: [
{
“code”: “OMAR_1480”,
“amount”: “100.0”,
“type”: “percentage”
}
],
"customer"****: {
“first_name”: “omar”,
“last_name”: “elsahragty”
},
“email”: [email removed]
}
}

Hi @sahragty

Would you be able to provide an x-request-id value from the headers in the response? We can have a look through the logs to see if we’re able to find additional information.

X-Request-ID: d1d6b396-8049-4449-83bb-2237bdd4a9f9

Hi @sahragty

Thanks for that - I was able to check our logs and found that your app does not have the correct permissions. You’ll want to enable the write_customers scope in order to include customer information with orders. Hope this helps!