Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎04-04-2018

Capture payment on authorized amount in CIM

We have a system that will short orders if we do not have the stock required to fulfill an order, and during that process a back order is made from what is missing from the shorted order.  I have the CIM setup to save the payment profile information and capture the amount for the shorted order and authorize the amount for the backorder.  This all works without any problems.  My issue is when we fulfill the backorder, the captured amount is it's own sepate line item from the authorized line item.  Is there a way to select which transaction to capture payment on?

 

Authorize.Net Expert
Posts: 27
Registered: ‎11-22-2017

Re: Capture payment on authorized amount in CIM

Hi jnewton,

You can try our 'Get Cutomer Profile Transaction List API'(https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-customer-profile-...). This will require you to pass customer profile id and payment profile id in the request and collect the transactions done with the customer profile. Now, in the transaction list (that you will get as a response), look for the transactions with 'transaction status' as 'authorizedPendingCapture'.

 

For these transaction, use 'Capture A previously Authorized Amount API' in order to capture the transactions. (https://developer.authorize.net/api/reference/index.html#payment-transactions-capture-a-previously-a...)

 

Hope this helps!!