Integration and Testing

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

Reply
Member
Posts: 7
Registered: ‎04-23-2021

Empty Response returned from JSON post request

Hi,

 

I'm writing a direct integration against Authorize.Net using JSON and even though I get a HTTP Status 200, I'm getting an empty response.

 

There is an example of the request;

 

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "name": "***",
      "transactionKey": "***"
    },
    "refId": "20555401",
    "transactionRequest": {
      "transactionType": "authCaptureTransaction",
      "amount": "10.25",
      "currencyCode": "GBP",
      "payment": {
        "creditCard": {
          "cardNumber": "***",
          "expirationDate": "2021-12",
          "cardCode": "***"
        }
      },
      "profile": {
        "createProfile": true
      },
      "order": {
        "invoiceNumber": "SALE1234",
        "description": "Test Product"
      },
      "shipping": {
        "amount": "4.25"
      },
      "customer": {
        "id": "12345",
        "email": "***"
      },
      "bill_to": {
        "firstName": "***",
        "lastName": "***",
        "company": "***",
        "address": "***",
        "city": "***",
        "state": "***",
        "zip": "***",
        "country": "***"
      }
    }
  }
}

 

I hope someone can point me in the right direction.

 

Kind regards