cancel
Showing results for 
Search instead for 
Did you mean: 

How get Authorized/Pending Capture Transaction List

Hi

 

To get Unsettled Transaction List I am using below sample code. https://github.com/AuthorizeNet/sample-code-php/blob/master/TransactionReporting/get-unsettled-trans...

 

But how to sort Unsettled Transaction by "Authorized/Pending Capture" or get only "Authorized/Pending Capture" transaction?

 

2nd , How to send request in json and get response in json same like here https://developer.authorize.net/api/reference/index.html you did.

 

Thanks

yogeshsaroya
Member
2 REPLIES 2

Hi,

- Currently we are not supporting Filter by "Authorized/Pending Capture" via API.

- To send request in Json format you might have to hit our api endpoint directly

 

Thanks

ZS

 

 

 

ZS
Developer Developer
Developer

In addition to zalaks data, 

#1 Please post the suggestion in ideas forum so that they are voted and considered for the upcoming features for API.

 

#2

Make sure to send the contentType as - application/json to the endpoint - https://apitest.authorize.net/xml/v1/request.api

and with the request payload in JSON format

{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "API_LOGIN_ID",
            "transactionKey": "API_TRANSACTION_KEY"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "5",
            "payment": {
                "creditCard": {
                    "cardNumber": "5424000000000015",
                    "expirationDate": "2020-12",
                    "cardCode": "999"
                }
            },
            "lineItems": {
                "lineItem": {
                    "itemId": "1",
                    "name": "vase",
                    "description": "Cannes logo",
                    "quantity": "18",
                    "unitPrice": "45.00"
                }
            },
            "tax": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "duty": {
                "amount": "8.55",
                "name": "duty name",
                "description": "duty description"
            },
            "shipping": {
                "amount": "4.26",
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "poNumber": "456654",
            "customer": {
                "id": "99999456654"
            },
            "billTo": {
                "firstName": "Ellen",
                "lastName": "Johnson",
                "company": "Souveniropolis",
                "address": "14 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "shipTo": {
                "firstName": "China",
                "lastName": "Bayles",
                "company": "Thyme for Tea",
                "address": "12 Main Street",
                "city": "Pecan Springs",
                "state": "TX",
                "zip": "44628",
                "country": "USA"
            },
            "customerIP": "192.168.1.1",
            "userFields": {
                "userField": [
                    {
                        "name": "MerchantDefinedFieldName1",
                        "value": "MerchantDefinedFieldValue1"
                    },
                    {
                        "name": "favorite_color",
                        "value": "blue"
                    }
                ]
            }
        }
    }
}

 

bhav
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert