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
01-22-2018 08:21 AM - edited 01-22-2018 08:22 AM
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
01-23-2018 10:22 AM - edited 01-23-2018 10:23 AM
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"
}
]
}
}
}
}
01-23-2018 11:30 AM