Hello, I'm new to the API. How do I determine that a completed credit card transaction is linked to a Recurring Billing subscription? I want to use a webhook to send transaction info to an app that I am writing, but the app is only concerned with transactions that are related to subscriptions.
I don't see a subscription ID field in the transaction object, and I couldn't find any clear answers when searching the forum. Thanks!
07-18-2017 04:15 PM
Hi there,
When you get the webhook notification, use the transaction ID to call GetTransactionDetails http://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details
If the transaction is linked to a subscription there will be a subscription element in the response (JSON or XML)
<subscription>
<id>145521</id>
<payNum>1</payNum>
</subscription>
Hope this helps,
Brian
07-20-2017 07:43 AM