Multiple Captures for Single Authorization Transaction Failing?

Solved
Conner
Explorer
49 1 9

Hello,

I've been running into issues with sending multiple captures for a single authorization via the API. The documentation seems to imply this is supported, but all of my captures for the transaction are rejected after the first capture is sent. Does Shopify not support this?

 

Here's a sample order with a single transaction (generic IDs used):

 

{
"id": 123456789,
"order_id": 99999999,
"kind": "authorization",
"gateway": "authorize_net",
"status": "success",
"message": "This transaction has been approved",
"created_at": "2019-04-24T08:24:35-05:00",
"test": false,
"authorization": "5555555555#1234#authorize",
"location_id": null,
"user_id": null,
"parent_id": null,
"processed_at": "2019-04-24T08:24:35-05:00",
"device_id": null,
"receipt": {
"action": "authorize",
"response_code": 1,
"response_reason_code": "1",
"response_reason_text": "This transaction has been approved",
"avs_result_code": "Y",
"transaction_id": "5555555555",
"card_code": "M",
"authorization_code": "77777",
"cardholder_authentication_code": null,
"account_number": "5555",
"test_request": "0",
"full_response_code": "I00001"
},
"error_code": null,
"source_name": "web",
"amount": "14.94",
"currency": "USD",
"admin_graphql_api_id": "gid://shopify/OrderTransaction/123456789123456789",
"payment_details": {
"credit_card_bin": "888888",
"avs_result_code": "Y",
"cvv_result_code": "M",
"credit_card_number": "•••• •••• •••• 5555",
"credit_card_company": "American Express"
}
}

If I send a partial capture (only 10.00 out of 14.94 total) for the transaction above, it works the first time:

 

{
"transaction": {
"currency": "USD",
"amount": "10.00",
"kind": "capture",
"parent_id": 123456789
}
}

If I send the following POST afterwards, it gets rejected:

 

{
  "transaction": {
    "currency": "USD",
    "amount": "4.00",
    "kind": "capture",
    "parent_id": 123456789
  }
}

The response being a 422 Unprocessable Entity:

 

{
"errors": {
"base": [
  "Can only capture successful authorizations"
],
"currency": [],
}
}

Any ideas as to what's going on here?

0 Likes
Jason
Shopify Expert
10360 158 2011

This is an accepted solution.

Not all integrations/gateways support multiple captures. Authorize.net is one of those that doesn't support it.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Conner
Explorer
49 1 9

Thanks for clearing that up for me, Jason!

0 Likes
charliegoyer
New Member
2 0 0

Were you able to find a gateway that does allow multiple captures against a single auth? We have the same issue. We're using Authorize.net 

0 Likes
Mannan_Khanna
Shopify Partner
5 0 1

Hey Jason! Does Shopify Payments allow for multiple captures?

Technical Consultant, Celigo (Shopify Plus Partner)
0 Likes