Skip to content

ACHCREDIT

ACHCREDIT enables a credit to be made to a customer. The merchant account on record will be debited.

Successful requests will be indicated with a 2xx HTTP response code and the Approved attribute set to 'true'.

NOTE

It is possible to receive an HTTP 2xx response code indicating that the request was successfully received, understood, and processed at the HTTP protocol level, but still have the Approved attribute set to false. (A 2xx response code with an Approved attribute set to false means the server successfully handled the request itself; however the actual business or application logic determined that the request was not approved).

Available Functions

Perform a 'achcredit' transaction

POST, /v0/transaction/achcredit

REQUEST Object Attributes

View REQUEST Object Attributes
achCreditTable
AttributeData TypeDescriptionRequired
Amountobject

Amount Object

True
Totaldecimal

Total Transaction Amount


Total is aKey/Value of the "Amount" Object View object structure example

True
Currencystring

ISO 3-letter currency code


Currency is aKey/Value of the "Amount" Object View object structure example

True
PaymentMethodobject

Transaction Payment Method

True
ACHobject

ACH Info


ACH is aKey/Value of the "PaymentMethod" Object View object structure example

True
BankRoutingNumberstring

Bank routing number of the customer


BankRoutingNumber is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

True
AccountNumberstring

Account number of the customer


AccountNumber is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

True
AchAccountTypestring

ACH Account Types


AchAccountType is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

True
CustomerNamestring

Name of Customer to be Credited


CustomerName is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

True
CustomerIdentifierstring

Identification Value of the Customer


CustomerIdentifier is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

False
PaymentRelatedInformationstring

Additional, discretionary customer payment information such as address, etc.


PaymentRelatedInformation is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

False
CheckNumberstring

Customer Check Number


CheckNumber is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

False
EffectiveDatestring

Date for which the customer should be credited

(YYYY-MM-DD)


Effective Date is aKey/Value of the "PaymentMethod" "ACH" Object View object structure example

True
Tokenobject

Indicates the Token ID as the payment method


Token is aKey/Value of the "PaymentMethod" Object View object structure example

True
TokenIDksuid

Token ID


TokenID is aKey/Value of the "PaymentMethod" "Token" Object View object structure example

True
DataActionstring

Data Action

True
Detailobject

Transaction Details

False
MerchantDataobject

Merchant Defined Transaction Data

(supports 1 or more Merchant Defined Keys)


MerchantData is aKey/Value of the "Detail" Object View object structure example

False
MerchantDefinedKey1string

Merchant - defined transaction data

(field 1)


MerchantDefinedKey1 is aKey/Value of the "Detail" "MerchantData" Object View object structure example

False
MerchantDefinedKey2string

Merchant - defined transaction data

(field 2)


MerchantDefinedKey2 is aKey/Value of the "Detail" "MerchantData" Object View object structure example

False
TransactionEntryobject

See Transaction Entry Section

(Information about transaction entry)

False

REQUEST Example

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/achcredit
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 25.50,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "ACH": {
            "BankRoutingNumber": "999999999",
            "AccountNumber": "01234567890123456",
            "AchAccountType": "PersonalChecking",
            "CustomerName": "Polly Paynetworx",
            "CustomerIdentifier": "A12345",
            "PaymentRelatedInformation": "123 Main Street, Van Alstyne, TX 75495, 999-999-9999",
            "CheckNumber": "5678",
            "EffectiveDate": "2012-04-21"
        }
    }
}'

REQUEST Example with Token Add request

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/achcredit
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 25.50,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "ACH": {
            "BankRoutingNumber": "999999999",
            "AccountNumber": "01234567890123456",
            "AchAccountType": "PersonalChecking",
            "CustomerName": "Polly Paynetworx",
            "CustomerIdentifier": "A12345",
            "PaymentRelatedInformation": "123 Main Street, Van Alstyne, TX 75495, 999-999-9999",
            "CheckNumber": "5678",
            "EffectiveDate": "2012-04-21"
        }
    },
    "DataAction": "token/add"
}'

REQUEST Example with Token ID

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/achcredit
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 25.50,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Token": {
            "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF"
        },
        "ACH": {
            "AchAccountType": "PersonalChecking",
            "CustomerName": "Polly Paynetworx",
            "CustomerIdentifier": "A12345",
            "PaymentRelatedInformation": "123 Main Street, Van Alstyne, TX 75495, 999-999-9999",
            "CheckNumber": "5678",
            "EffectiveDate": "2012-04-21"
        }
    }
}'

RESPONSE Object Attributes

View RESPONSE Object Attributes
defaultResponseTable
AttributeData TypeDescription
TransactionIDksuid

Unique transaction lifetime system ID

EventIDksuid

Unique transaction event system ID

RequestIDksuid

Unique transaction request system ID

Approvedboolean

Request approval indicator

Tokenobject

Request approval indicator

TokenIDksuid

Token ID


TokenID is aKey/Value of the "Token" Object View object structure example

TokenNamestring

Unique Name of the Token Used


TokenName is aKey/Value of the "Token" Object View object structure example

RESPONSE Example

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "ResponseText": "ACH request submitted successfully",
  "Approved": true
}

RESPONSE Example with Token Add request

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "ResponseText": "ACH request submitted successfully",
  "Approved": true,
  "Token": {
    "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF",
    "TokenName": "*************3456"
  }
}

RESPONSE Example with Token ID

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "ResponseText": "ACH request submitted successfully",
  "Approved": true,
  "Token": {
    "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF",
    "TokenName": "*************3456"
  }
}