cancel
Showing results for 
Search instead for 
Did you mean: 

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!

dmcheng
Member
1 REPLY 1

 

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

brianmc
Administrator Administrator
Administrator