Following the documentation in the api below, I am attempting to request a refund via API but keep getting a response of “Reference cannot be blank” and the refund is not processing. I first calculate a refund, and generate the response needed to actually create a refund but it fails. Any ideas on what this error means and how I can go about addressing this issue?
https://shopify.dev/api/admin-rest/2021-10/resources/refund#[post]/admin/api/2021-10/orders/{order_id}/refunds.json
x-request-id: 8a89e4e8-55ae-4477-925b-3c12c9516484
{
"errors": {
"base": [
"Reference can't be blank"
]
}
}
Also having this issue trying to issue multiple refunds.
Request IDs
86618eaf-5bdb-4c57-ba59-ff3b980f50fc
5c127971-10ee-458c-8c30-313be135b5fa
97f88d90-88d5-471b-98e6-1cca454e0566
38ada389-615f-4b0c-a422-462b064b86a0
8b1ef65a-2950-418d-889b-91724da9443d
36ed87d7-a77b-4386-ac36-dd66a9cf5bd0
89f28d39-3e09-4e80-abfb-43ae7743b3e6
46d723d8-1779-4a4c-8f06-c4f2cfabdb8a
22c77f2b-1b7e-41c7-9c64-6760ef0dc026
3798ee91-92a3-4593-8696-ccbd002d8cb3
eaa63419-364d-4e79-bc21-c65f976bb8b5
753eefe4-c269-4a08-b23d-9e88a0a1ad32
ca58c79c-5d0a-477e-9526-bc4d7fab42c0
Hey @heisenbaby and @Steve_Robbins , thanks for sharing that these refunds are not working.
I’ve tested here, using our latest APIs (the documents you’ve shared are for deprecated API versions) https://shopify.dev/docs/api/admin-rest/2023-07/resources/refund#resource-object
The refund worked fine for me.
I would recommend to double check that you’re not using any deprecated endpoints and test again using a current API version. If it’s still failing after that, get in touch with our support teams so we can look in to those specific requests for further troubleshooting,
Just a tip as well when you do reach out to our support teams, make sure to include the affected stores, your app ID, an example of the specific API request you’re making (with supported documentation) and the response that is being returned. Also make sure the x-request-id is from the last 5 days and includes a timestamp to ensure the highest likelihood of locating this in our logs!
Hope that helps