Development discussions around Shopify APIs
How can I create void transaction for manual gateway authorization transaction?
Create authorization transaction request data example:
[
"amount" => 10.99,
"kind" => "authorization",
"gateway" => "manual",
"status" => "success",
]
Create void transaction request data example:
[
'kind' => 'void',
'gateway' => 'manual',
'parent_id' => <authorization transaction id>,
]
And I got error:
transactions - require a parent_id referring to a voidable/refundable transaction
If for authorization transaction set gateway "braintree" void transaction work fine:
[
"amount" => 10.99,
"kind" => "authorization",
"gateway" => "braintree",
"status" => "success",
]
May be I need use other gateway ?
Or which transactions be voidable/refundable ?
Please help me.
Solved! Go to the solution
This is an accepted solution.
Ah I see what you mean. Braintree/authorization, and manual/sale seem to to be voidable, whereas manual/authorization is not. I'm not sure if this is a bug or by design. I'll seek some clarity and get back to you.
Update:
Not all payment providers support the auth/void/capture flow. Some only support sale/refund. It's by design. Manual should be sales in order to cancel/refund them.
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
I just ran a test, manual payment methods are voidable. Can you provide shop URL and order ID?
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks. I think the issue is because this order and its manual authorizations were imported via the API, so it is not voidable/refundable.
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Yes, order and authorization transaction created by Admin API.
But why void can not be created for entities created by api?
Meanwhile I can create void transaction for order and authorization transaction created by Admin API if authorization gateway set as "braintree"?
This is an accepted solution.
Ah I see what you mean. Braintree/authorization, and manual/sale seem to to be voidable, whereas manual/authorization is not. I'm not sure if this is a bug or by design. I'll seek some clarity and get back to you.
Update:
Not all payment providers support the auth/void/capture flow. Some only support sale/refund. It's by design. Manual should be sales in order to cancel/refund them.
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thank you for information.
User | RANK |
---|---|
13 | |
7 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022