Void transaction for manual authorization transaction

Solved
Highlighted
New Member
4 0 0

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.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

I just ran a test, manual payment methods are voidable. Can you provide shop URL and order ID?

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
New Member
4 0 0
0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Thanks. I think the issue is because this order and its manual authorizations were imported via the API, so it is not voidable/refundable.

 

 

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
New Member
4 0 0

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"?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

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.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
New Member
4 0 0

Thank you for information.

0 Likes