Skip to content

AUTH

AUTH simply authorizes a transaction WITHOUT CAPTURE. It is generally used for eCommercce transactions with delayed product shipment.

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

NOTE

It is possible to receive a 2xx HTTP response code and have the Approved attribute set to 'false'.

Available Functions

Perform an 'auth' transaction

POST, /v0/transaction/auth

REQUEST Object Attributes

authTable
AttributeData TypeDescriptionRequired
Amountobject

Amount Object

True
Totaldecimal

Total Transaction Amount


Total is aKey/Value of the "Amount" Object.

True
Tipdecimal

Tip associated with the Transaction


Tip is aKey/Value of the "Amount" Object.

False
Feedecimal

Fee associated with the Transaction


Fee is aKey/Value of the "Amount" Object.

False
Taxdecimal

Tax associated with the Transaction


Tax is aKey/Value of the "Amount" Object.

False
Taxabledecimal

Tax associated with the Transaction


Taxable is aKey/Value of the "Amount" Object.

False
Shippingdecimal

Shipping associated with the Transaction


Shipping is aKey/Value of the "Amount" Object.

False
Dutydecimal

Duty associated with the Transaction


Duty is aKey/Value of the "Amount" Object.

False
Discountdecimal

Discount associated with the Transaction

(Informational Only)


Discount is aKey/Value of the "Amount" Object.

False
Cashbackdecimal

Use requires special permission from PayNetworx. Cash back amount associated with the Transaction


Cashback is aKey/Value of the "Amount" Object.

False
Currencystring

ISO 3-letter currency code


Currency is aKey/Value of the "Amount" Object.

True
Payment Methodobject

Transaction Payment Method

True
Cardobject

Card info


Card is aKey/Value of the "Payment Method" Object.

True
CardPresentboolean

Indicates if this card is present


CardPresent is aKey/Value of the "Card" Object.

True
CVCobject

Card Verification Value

(AKA CVV2)


CVC is aKey/Value of the "Card" Object.

False
CVCstring

Card Verification Value

(AKA CVV2)


CVC is aKey/Value of the "CVC" Object.

False
PANobject

Personal Account Number Info


PAN is aKey/Value of the "Card" Object.

True
PANstring

Personal Account Number


PAN is aKey/Value of the "PAN" Object.

True
ExpMonthstring

Account Expiration Month

(MM)


ExpMonth is aKey/Value of the "PAN" Object.

True
ExpYearstring

Account Expiration Year

(YY)


ExpYear is aKey/Value of the "PAN" Object.

True
Track2object

Track 2 Data


Track2 is aKey/Value of the "Card" Object.

False
Track2string

Track 2 string

("Start" and "End" sentinels required)


Track2 is aKey/Value of the "Track2" Object.

False
BillingAddressobject

Customer billing address


BillingAddress is aKey/Value of the "Card" Object.

False
Namestring

Customer name

(Full Name)


Name is aKey/Value of the "BillingAddress" Object.

False
Line1string

Customer address line 1


Line1 is aKey/Value of the "BillingAddress" Object.

False
Line2string

Customer address line 2


Line2 is aKey/Value of the "BillingAddress" Object.

False
Citystring

Customer city


City is aKey/Value of the "BillingAddress" Object.

False
Statestring

Customer state


State is aKey/Value of the "BillingAddress" Object.

False
PostalCodestring

Customer postal code

(AKA Zip Code)


PostalCode is aKey/Value of the "BillingAddress" Object.

False
Countrystring

Customer country


Country is aKey/Value of the "BillingAddress" Object.

False
Phonestring

Customer Phone Number


Phone is aKey/Value of the "BillingAddress" Object.

False
Emailstring

Customer Email


Email is aKey/Value of the "BillingAddress" Object.

False
3DSecureobject

3D Secure Result data for verification of card transactions


3DSecure is aKey/Value of the "Card" Object.

False
Authentication Valuestring

Authentication value from 3D Secure results


Authentication Value is aKey/Value of the "3DSecure" Object.

False
ECommerceIndicatorstring

ECommerce indicator (ECI) from 3D Secure results


ECommerceIndicator is aKey/Value of the "3DSecure" Object.

False
3DSecureTransactionIDstring

3D Secure Transaction ID from 3D Secure results


3DSecureTransactionID is aKey/Value of the "3DSecure" Object.

False
Tokenobject

Indicates the Token ID as the payment method


Token is aKey/Value of the "Payment Method" Object.

False
TokenIDksuid

Token ID


TokenID is aKey/Value of the "Token" Object.

False
DataActionstring

Data Action

False
Attributesobject

Transaction attributes

False
EntryModeobject

Description of the card entry mode


EntryMode is aKey/Value of the "Attributes" Object.

False
ProcessingSpecifiersobject

Description of the specific data used for processing the transaction.


ProcessingSpecifiers is aKey/Value of the "Attributes" Object.

False
TransactionDescriptorobject

Description of the transaction used for dynamic descriptors.


TransactionDescriptor is aKey/Value of the "Attributes" Object.

False
Prefixobject

The Prefix for the transaction used for dynamic descriptors.


Prefix is aKey/Value of the "TransactionDescriptor" Object.

False
Detailobject

The Detail for the transaction used for dynamic descriptors.


Detail is aKey/Value of the "TransactionDescriptor" Object.

False
Recurringobject

See Recurring Section

(Use with Recurring Payment, Standing Payment, Unscheduled Payment requests)

False
Detailobject

Transaction Details

False
MerchantDataobject

Merchant Defined Transaction Data

(supports 1 or more Merchant Defined Keys)


MerchantData is aKey/Value of the "Detail" Object.

False
MerchantDefinedKey1string

Merchant - defined transaction data

(field 1)


MerchantDefinedKey1 is aKey/Value of the "MerchantData" Object.

False
MerchantDefinedKey2string

Merchant - defined transaction data

(field 2)


MerchantDefinedKey2 is aKey/Value of the "MerchantData" Object.

False
Orderobject

Order data details for purchase

(Standard Data and Corporate Data)


Order is aKey/Value of the "Detail" Object.

False
Itemobject array

Item data details for purchase

(Standard Data and Corporate Data)


Item is aKey/Value of the "Detail" Object.

False
ShipToobject

ShipTo receiver data

(Standard Data and Corporate Data)


ShipTo is aKey/Value of the "Detail" Object.

False
ShipFromobject

ShipFrom sender data

(Standard Data and Corporate Data)


ShipFrom is aKey/Value of the "Detail" Object.

False
Shipmentobject array

Shipment details in Detail Shipment Data Section

(Standard Data and Corporate Data)


Shipment is aKey/Value of the "Detail" Object.

False
TransactionEntryobject

See Transaction Entry Section

(Information about transaction entry)

False

REQUEST Object Non-Required Attributes

Non-required attributes should only be included if needed for your use case. If not used, they should be omitted from the request object.

When should I include non-required attributes?
"Fee" attribute:
Include only if adding a fee to the transaction
"Tip" attribute:
Include only if adding tip to a transaction
"Fee" attribute:
Include only if adding a fee to a transaction
"Tax" attribute:
Include only if adding tax to a transaction
"Taxable" attribute:
Include only if adding tax to a transaction
"Shipping" attribute:
Include only if adding shipping to a transaction
"Duty" attribute:
Include only if adding duty fees to a transaction
"Discount" attribute:
Include only if adding a discount to a transaction
"Cashback" attribute:
Use requires special permission from PayNetWorx. Include only if adding a cash back to a transaction

"CVC" attribute:
Include only if card verification value (aka CVV2) is present. Will take form of CVC: {CVC: 'string'}
"CVC" sub-attribute:
Include only if CVC attribute is used

"Data" sub-attribute:
Include only if PIN attribute is present
"KSN" sub-attribute:
Include only if PIN attribute is present

"Billing Address" attribute:
Include only if a billing Address is required for the transaction
"Name" sub-attribute:
Include only if a Billing Address is present
"Line1" sub-attribute:
Include only if a Billing Address is present
"Line2" sub-attribute:
Include only if a Billing Address is present and Line1 sub-attribute is not sufficient
"City" sub-attribute:
Include only if a Billing Address is present
"State" sub-attribute:
Include only if a Billing Address is present
"Postal Code" sub-attribute:
Include only if a Billing Address is present
"Country" sub-attribute:
Include only if a Billing Address is present
"Phone" sub-attribute:
Include only if a Billing Address is present, and Phone number is available
"Email" sub-attribute:
Include only if a Billing Address is present, and Email address is available

"DebitType" sub-attribute:
Include only if a this is a debit transaction

"Detail" attribute:
Include when specific transaction detail must accompany the request
"Order" attribute:
Include Order data details for purchases when the merchant prefers to provide data or needs to provide data (i.e., corporate cards)
"Items" attribute:
Include Items data details for purchases when the merchant prefers to provide data or needs to provide data (i.e., corporate cards)
"ShipTo" attribute:
Include ShipTo data details for purchases when the merchant prefers to provide data or needs to provide data (i.e., corporate cards)
"ShipFrom" attribute:
Include ShipFrom data details for purchases when the merchant prefers to provide data or needs to provide data (i.e., corporate cards)
"Shipment" attribute:
Include Shipment data details for purchases when the merchant prefers to provide data or needs to provide data (i.e., corporate cards)
Include only if adding the "Merchant Data" attribute
"Merchant Data" attribute:
Include only if adding custom merchant defined transaction data using the "MerchantDefinedKey1" and/or "Merchant DefinedKey2" attribute(s)
"MerchantDefinedKey1" attribute:
Include only for adding custom merchant data (ex. OrderNumber, CustomerID)
"MerchantDefinedKey2" attribute:
Include only for adding custom merchant data (ex. OrderNumber, CustomerID)

The Request examples show example uses of optional fields in practice.

REQUEST Example: eCommerce

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/auth
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 5.50,
        "Fee": 0.50,
        "Tax": 0.90,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Card": {
            "CardPresent": false,
            "CVC": {
                "CVC": "1234"
            },
            "PAN": {
                "PAN": "5204910211482784",
                "ExpMonth": "12",
                "ExpYear": "25"
            },
            "BillingAddress": {
                "Name": "Jane Doe",
                "Line1": "1234 Main St",
                "Line2": "Suite A",
                "City": "Cityville",
                "State": "TX",
                "PostalCode": "75000",
                "Country": "US",
                "Phone": "555-555-5555",
                "Email": "example@example.com"
            }
        }
    },
    "Attributes": {
        "EntryMode": "manual",
        "ProcessingSpecifiers": {
            "InitiatedByECommerce": true
        }
    },
    "TransactionEntry": {
        "Device": "NA",
        "DeviceVersion": "NA",
        "Application": "Merchant Website Express",
        "ApplicationVersion": "1.0",
        "Timestamp": "2020-03-03T17:01:44"
    },
    "Detail": {
        "MerchantData": {
            "OrderNumber": "22-1111",
            "TrackingID": "123456789",
            "CustomerID": "991111"
        }
    }
}'

REQUEST Example: eCommerce with an embedded Token Add request

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/auth
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 5.50,
        "Fee": 0.50,
        "Tax": 0.90,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Card": {
            "CardPresent": false,
            "CVC": {
                "CVC": "1234"
            },
            "PAN": {
                "PAN": "5204910211482784",
                "ExpMonth": "12",
                "ExpYear": "25"
            },
            "BillingAddress": {
                "Name": "Jane Doe",
                "Line1": "1234 Main St",
                "Line2": "Suite A",
                "City": "Cityville",
                "State": "TX",
                "PostalCode": "75000",
                "Country": "US",
                "Phone": "555-555-5555",
                "Email": "example@example.com"
            }
        }
    },
    "DataAction": "token/add",
    "Attributes": {
        "EntryMode": "manual",
        "ProcessingSpecifiers": {
            "InitiatedByECommerce": true
        }
    },
    "TransactionEntry": {
        "Device": "NA",
        "DeviceVersion": "NA",
        "Application": "Merchant Website Express",
        "ApplicationVersion": "1.0",
        "Timestamp": "2020-03-03T17:01:44"
    },
    "Detail": {
        "MerchantData": {
            "OrderNumber": "22-1111",
            "TrackingID": "123456789",
            "CustomerID": "991111"
        }
    }
}'

REQUEST Example: eCommerce using Token ID

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/auth
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 5.50,
        "Fee": 0.50,
        "Tax": 0.90,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Token": {
            "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF"
        },
        "Card": {
            "BillingAddress": {
                "Name": "Jane Doe",
                "Line1": "1234 Main St",
                "Line2": "Suite A",
                "City": "Cityville",
                "State": "TX",
                "PostalCode": "75000",
                "Country": "US",
                "Phone": "555-555-5555",
                "Email": "example@example.com"
            }
        }
    },
    "Attributes": {
        "EntryMode": "card-on-file",
        "ProcessingSpecifiers": {
            "InitiatedByECommerce": true
        }
    },
    "TransactionEntry": {
        "Device": "NA",
        "DeviceVersion": "NA",
        "Application": "Merchant Website Express",
        "ApplicationVersion": "1.0",
        "Timestamp": "2020-03-03T17:01:44"
    },
    "Detail": {
        "MerchantData": {
            "OrderNumber": "22-1111",
            "TrackingID": "123456789",
            "CustomerID": "991111"
        }
    }
}'

REQUEST Example: eCommerce Using 3DSecure

Permission Required

Use of 3DSecure functionality requires special permission from Paynetworx.

Code Sample using CURL (American Express)
sh
URL=https://api.qa.paynetworx.net/v0/transaction/auth
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 5.50,
        "Fee": 0.50,
        "Tax": 0.90,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Card": {
            "CardPresent": false,
            "CVC": {
                "CVC": "1234"
            },
            "PAN": {
                "PAN": "5204910211482784",
                "ExpMonth": "12",
                "ExpYear": "25"
            },
            "BillingAddress": {
                "Name": "Jane Doe",
                "Line1": "1234 Main St",
                "Line2": "Suite A",
                "City": "Cityville",
                "State": "TX",
                "PostalCode": "75000",
                "Country": "US",
                "Phone": "555-555-5555",
                "Email": "example@example.com"
            },
            "3DSecure": {
                "ECommerceIndicator": "05",
                "AuthenticationValue": "AAABBWcSNIdjeUZThmNHAAAAAAA="
            }
        }
    },
    "Attributes": {
        "EntryMode": "manual",
        "ProcessingSpecifiers": {
            "InitiatedByECommerce": true
        }
    },
    "TransactionEntry": {
        "Device": "NA",
        "DeviceVersion": "NA",
        "Application": "Merchant Website Express",
        "ApplicationVersion": "1.0",
        "Timestamp": "2020-03-03T17:01:44"
    },
    "Detail": {
        "MerchantData": {
            "OrderNumber": "22-1111",
            "TrackingID": "123456789",
            "CustomerID": "991111"
        }
    }
}'
Code Sample using CURL (VISA)
sh
URL=https://api.qa.paynetworx.net/v0/transaction/auth
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 5.50,
        "Fee": 0.50,
        "Tax": 0.90,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Card": {
            "CardPresent": false,
            "CVC": {
                "CVC": "1234"
            },
            "PAN": {
                "PAN": "4012001037141112",
                "ExpMonth": "12",
                "ExpYear": "27"
            },
            "BillingAddress": {
                "Name": "Jane Doe",
                "Line1": "1234 Main St",
                "Line2": "Suite A",
                "City": "Cityville",
                "State": "TX",
                "PostalCode": "75000",
                "Country": "US",
                "Phone": "555-555-5555",
                "Email": "example@example.com"
            },
            "3DSecure": {
                "AuthenticationValue": "0099010618111100000000788400707000000000",
                "ECommerceIndicator": "05"
            }
        }
    },
    "Attributes": {
        "EntryMode": "manual",
        "ProcessingSpecifiers": {
            "InitiatedByECommerce": true
        }
    },
    "TransactionEntry": {
        "Device": "NA",
        "DeviceVersion": "NA",
        "Application": "Merchant Website Express",
        "ApplicationVersion": "1.0",
        "Timestamp": "2020-03-03T17:01:44"
    },
    "Detail": {
        "MerchantData": {
            "OrderNumber": "22-1111",
            "TrackingID": "123456789",
            "CustomerID": "991111"
        }
    }
}'

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.

TokenNamestring

Unique Name of the Token Used


TokenName is aKey/Value of the "Token" Object.

AddressLine1Checkstring

Address verification result

(pass, fail, unavailable, unchecked)

AddressZipCheckstring

Postal code verification result

(pass, fail, unavailable, unchecked)

CVCCheckstring

CVC result

(pass, fail, unavailable, unchecked)

CVCCheckResultCodestring

Letter Code

(returned from the card association)

RESPONSE Example

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "Approved": true,
  "AddressLine1Check": "pass",
  "AddressZipCheck": "pass",
  "CVCCheck": "pass"
}

RESPONSE Example with an embedded Token Add request

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "Approved": true,
  "Token": {
    "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF",
    "TokenName": "************2784"
  },
  "AddressLine1Check": "pass",
  "AddressZipCheck": "pass",
  "CVCCheck": "pass"
}

RESPONSE Example using Token ID

JSON Response Object
json
{
  "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
  "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
  "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
  "Approved": true,
  "Token": {
    "TokenID": "1wxhkFx6JoPktNoPYpgFpSGmTMF",
    "TokenName": "************2784"
  },
  "AddressLine1Check": "pass",
  "AddressZipCheck": "pass",
  "CVCCheck": "pass"
}