What causes the Shopify refund API to return a 400 error?

oneill_aloha
Visitor
2 0 0

Hi,

While we requesting the create refund api we are getting the 'The remote server returned an error: (400) Bad Request'.

Here is the my url:
https://flip-critts.myshopify.com/admin/orders/3770046414953/refunds.json

Here is the my JSON:-

{
"refund": {
"restock": "true",
"notify": "true",
"currency": "USD",
"shipping": {
"full_refund": false
},
"refund_line_items": [

],
"transactions": {
"amount": "0",
"kind": "refund"
}
}
}

Here is the my Request ID:
X-Request-ID: 6f2673ef-aa5b-46fa-b910-4eb4afc3d983

Could you please tell us where we are missing.

Thanks,

Reply 1 (1)

Raihan007
Visitor
1 0 0

Anyone around to help us with this query !! need help urgently.