menu

Sample Responses

Below are the sample responses

Purchase Response


    {
        "lr": {
            "amount": 2.5,
            "cardExpiryYear": "2017",
            "message": "This transaction has been approved.",
            "cardFirst6": "542400",
            "cardExpiryMonth": "12",
            "transactionId": "60036012175",
            "maskedCard": "542400******0015",
            "rebillParams": {
                "customerProfileId": "1813844918",
                "paymentProfileId": "1808509554"
            },
            "success": true,
            "voidParams": {
                "transactionId": "60036012175"
            },
            "currencyCode": "USD",
            "cardLast4": "0015",
            "refundParams": {
                "transactionId": "60036012175",
                "cardLast4": "0015"
            }
        },
        "gr": { //long gateway response }
    }

Rebill Response


    {
        "lr": {
            "amount": 105,
            "rebillParams": {
                "customerProfileId": "1813844918",
                "paymentProfileId": "1808509554"
            },
            "success": true,
            "voidParams": {
                "transactionId": "60036301672"
            },
            "message": "This transaction has been approved.",
            "transactionId": "60036301672",
            "refundParams": {
                "transactionId": "60036301672",
                "cardLast4": "0015"
            }
        },
        "gr": {
        //long gateway response
        }
    }

Refund Response


    {
        "lr": {
            "amount": 1,
            "success": true,
            "voidParams": {
                "transactionId": "60036301739"
            },
            "message": "This transaction has been approved.",
            "transactionId": "60036301739"
        },
        "gr": {
            //long gateway response
        }
    }

Void Response


    {
        "lr": {
            "success": true,
            "message": "This transaction has been approved.",
            "transactionId": "60036301739"
        },
        "gr": {
                //long gateway response
        }
    }

Error Response


    {
        "lr": {
            "success": false,
            "message": "The referenced transaction does not meet the criteria for issuing a credit."
        },
        "gr": {
                //long gateway response
            }
    }