Reply
Highlighted
Member
Posts: 2
Registered: ‎11-20-2015

How to identify if a transaction is linked to a recurring billing subscription?

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!

Highlighted
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: How to identify if a transaction is linked to a recurring billing subscription?

 

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