04-04-2018 12:21 PM
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?
04-07-2018 11:40 PM
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!!