API Sandbox - post_charges - Code 400000 - Invalid Request Data - Default Request

You are here

1 post / 0 new
SDKSupport
API Sandbox - post_charges - Code 400000 - Invalid Request Data - Default Request

The API Sandbox serves as the documentation for the Direct API. A developer is able to take a look at requests such as Bankcard>post_charges and run the request as-is. Currently this is not the case as the default request does not process. Instead it returns an error code "400000" with "Invalid Request Data". However, please feel free to change the request to the example below. We have provided a test card number, amount, and sample billing information that will allow the request to be approved. Please feel free to send us an email at [email protected] if you have any questions.

{
    "transactionId": "",
    "eCommerce": {
        "authorizationCode": "",
        "amounts": {
            "total": 7,
            "tax": 0,
            "shipping": 0
        },
        "orderNumber": "",
        "cardData": {
            "number": "5454545454545454",
            "expiration": "1220",
            "cvv": ""
        },
        "customer": {
            "email": "[email protected]",
            "telephone": "",
            "fax": ""
        },
        "billing": {
            "name": "John Smith",
            "address": "123 Main St",
            "city": "Reston",
            "state": "VA",
            "postalCode": "20191",
            "country": ""
        },
        "shipping": {
            "name": "",
            "address": "",
            "city": "",
            "state": "",
            "postalCode": "",
            "country": ""
        }
     }
}