Reply
Member
Posts: 7
Registered: ‎01-31-2019

How to determine which recurring billing agreement triggered a payment capture?

[ Edited ]

Hello, We receive webhook events for payments and subscriptions.

 

What API calls would need to be taken to determine which subscription a particular authcapture.created event (such as shown below) belongs to?

 

Thanks Nick

 

stdClass Object (

[notificationId] => 140466c9-6098-4d84-9349-f7edfe8162c2

[eventType] => net.authorize.payment.authcapture.created

[eventDate] => 2019-02-12T09:26:15.2416353Z

[webhookId] => 93945118-d8b1-4c83-b12d-7d126019410e

[payload] => stdClass Object (

[responseCode] => 1

[authCode] => A5JCBZ

[avsResponse] => Y

[authAmount] => 17.05

[entityName] =>

transaction [id] => 40025136538 )

)

Highlighted
Authorize.Net Wizard
Posts: 110
Registered: ‎11-29-2017

Re: How to determine which recurring billing agreement triggered a payment capture?

[ Edited ]

The GetTransactionDetails api takes a transaction id and will return the transaction details, including the subscription id and the payment number for the subscription.

 

https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details