top of page

Classic: Customer Vault management

POST /transact.php · Customer Vault management

Classic protocol

This family uses POST /transact.php under the documented sandbox base https://sandbox.nmi.com/api. Send application/x-www-form-urlencoded fields with the private security_key on your server. Do not substitute a REST JSON body or REST Authorization header. Each named variant below has its own action selector and required fields. For maintenance of a Classic integration. Source examples are fixtures, not live credentials; replace their security_key before any authorized test. This reference sends no requests.

Choose the operation variant

Variant Selector fields Required fields CreateCustomer CreateCustomerDigitalWallet UpdateCustomer DeleteCustomer customer_vault=["delete_customer"] customer_vault, customer_vault_id, security_key AuthUsingCustomerVault CreditUsingCustomerVault OfflineUsingCustomerVault SaleUsingCustomerVault ValidateUsingCustomerVault

Request language templates

Original transport templates derived from this endpoint’s documented method, server, authentication and media type. Replace path/query/credential placeholders with authorized sandbox values. These examples print the raw status and response; they do not infer business success or retry a request. Save properly URL-encoded name=value pairs for your selected operation as request.form, including its private security_key when required. JSON example objects below describe these form fields; they are not the wire encoding. Node requires a runtime with fetch; PHP requires cURL. Generated source-based examples have not been executed against provider accounts. curl --request POST \ --url 'https://sandbox.nmi.com/api/transact.php' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-binary '@request.form' import { readFile } from 'node:fs/promises'; const body = await readFile('request.form', 'utf8'); const response = await fetch("https://sandbox.nmi.com/api/transact.php", { method: 'POST', headers: { "Content-Type": "application/x-www-form-urlencoded" }, body }); console.log(response.status, await response.text()); from urllib.request import Request, urlopen from urllib.error import HTTPError from pathlib import Path request = Request('https://sandbox.nmi.com/api/transact.php', method='POST', headers={'Content-Type': 'application/x-www-form-urlencoded'}, data=Path('request.form').read_bytes()) try: with urlopen(request, timeout=30) as response: print(response.status, response.read().decode()) except HTTPError as error: print(error.code, error.read().decode()) require 'net/http' require 'uri' uri = URI("https://sandbox.nmi.com/api/transact.php") request = Net::HTTP::Post.new(uri) request["Content-Type"] = "application/x-www-form-urlencoded" request.body = File.binread('request.form') response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https', read_timeout: 30) { |http| http.request(request) } puts response.code puts response.body <?php $curl = curl_init('https://sandbox.nmi.com/api/transact.php'); curl_setopt_array($curl, [ CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded'], CURLOPT_POSTFIELDS => file_get_contents('request.form') ]); $response = curl_exec($curl); if ($response === false) { throw new RuntimeException(curl_error($curl)); } echo curl_getinfo($curl, CURLINFO_HTTP_CODE), PHP_EOL, $response; curl_close($curl);

Request fields

Choose one schema variant. Descriptions retain conditional requirements that are not always included in required arrays. Do not merge all variants into one request. Field Type Required Description Constraints [oneOf 1].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 1].[allOf 1].customer_vault string yes Create a secure Customer Vault record. enum: ["add_customer"] [oneOf 1].[allOf 1].customer_vault_id string no Specifies a Customer Vault id. If not set, the payment gateway will randomly generate a Customer Vault id. [oneOf 1].[allOf 1].billing_id string no Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 1].[allOf 1].payment_token string no The tokenized version of the customer's card or check information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology). [oneOf 1].[allOf 1].applepay_payment_data string no The encrypted token created when integration directly to the Apple Pay SDK. [oneOf 1].[allOf 1].googlepay_payment_data string no The encrypted token created when integration directly to the Google Pay SDK. [oneOf 1].[allOf 1].currency string no Set transaction currency. [oneOf 1].[allOf 1].payment string no Set payment type to ACH or credit card. enum: ["creditcard", "check"] [oneOf 1].[allOf 1].shipping_id string no Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 1].[allOf 1].source_transaction_id string no Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record. [oneOf 1].[allOf 1].acu_enabled string no If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true' enum: ["true", "false"] [oneOf 1].[allOf 2].ccnumber string no Credit card number. <details> <summary>Allowed Card Numbers:</summary> | Card Type | Test Card Number | |:------------------|:---------------------| | Visa | 4111111111111111 | | MasterCard | 5431111111111111 | | Discover | 6011000991300009 | | American Express | 341111111111111 | | Diner's Club | 30205252489926 | | JCB | 3541963594572595 | | Maestro | 6799990100000000019 | </details> enum: ["4111111111111111", "5431111111111111", "6011000991300009", "341111111111111", "30205252489926", "3541963594572595", "6799990100000000019"] [oneOf 1].[allOf 2].ccexp string no Credit card expiration date. Format: `MMYY` [oneOf 1].[allOf 3].checkname string no The name on the customer's ACH account. [oneOf 1].[allOf 3].checkaba string no The customer's bank routing number. minLength: 9; maxLength: 9 [oneOf 1].[allOf 3].checkaccount string no The customer's bank account number. [oneOf 1].[allOf 3].account_holder_type string no The type of ACH account the customer has. enum: ["business", "personal"] [oneOf 1].[allOf 3].account_type string no The type of ACH account the customer has. enum: ["checking", "savings"] [oneOf 1].[allOf 3].sec_code string no The Standard Entry Class code of the ACH transaction. enum: ["PPD", "WEB", "TEL", "CCD"] [oneOf 1].[allOf 4].orderid string no Order id [oneOf 1].[allOf 4].order_description string no Order Description. [oneOf 1].[allOf 5].first_name string no Cardholder's first name. [oneOf 1].[allOf 5].last_name string no Cardholder's last name. [oneOf 1].[allOf 5].address1 string no Card billing address. [oneOf 1].[allOf 5].city string no Card billing city [oneOf 1].[allOf 5].state string no Card billing state. Format: `CC` [oneOf 1].[allOf 5].zip string no Card billing postal code. [oneOf 1].[allOf 5].country string no Card billing country code. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 1].[allOf 5].phone string no Billing phone number. [oneOf 1].[allOf 5].email string no Billing email address. [oneOf 1].[allOf 5].company string no Cardholder's company. [oneOf 1].[allOf 5].address2 string no Card billing address, line 2. [oneOf 1].[allOf 5].fax string no Billing fax number. [oneOf 1].[allOf 6].[allOf 1].shipping_firstname string no Shipping first name [oneOf 1].[allOf 6].[allOf 1].shipping_lastname string no Shipping last name [oneOf 1].[allOf 6].[allOf 1].shipping_company string no Shipping company [oneOf 1].[allOf 6].[allOf 1].shipping_address1 string no Shipping address [oneOf 1].[allOf 6].[allOf 1].shipping_address2 string no Shipping address, line 2 [oneOf 1].[allOf 6].[allOf 1].shipping_city string no Shipping city [oneOf 1].[allOf 6].[allOf 1].shipping_state string no Shipping state. Format: `CC` [oneOf 1].[allOf 6].[allOf 1].shipping_zip string no Shipping zip code [oneOf 1].[allOf 6].[allOf 1].shipping_country string no Shipping country. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 1].[allOf 6].[allOf 1].shipping_email string no Shipping email address format: "email" [oneOf 1].[allOf 6].[allOf 2].shipping_phone string no Shipping phone number. [oneOf 1].[allOf 6].[allOf 2].shipping_fax string no Shipping fax number. [oneOf 1].[allOf 7].merchant_defined_field_1 string no Merchant defined field. You can pass custom information in up to 20 fields. Format: `merchant_defined_field_1=Value1`, `merchant_defined_field_2=Value2`, etc... [oneOf 2].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 2].[allOf 1].customer_vault string yes Create a secure Customer Vault record. enum: ["add_customer"] [oneOf 2].[allOf 1].customer_vault_id string no Specifies a Customer Vault id. If not set, the payment gateway will randomly generate a Customer Vault id. [oneOf 2].[allOf 1].billing_id string no Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 2].[allOf 1].payment_token string no The tokenized version of the customer's wallet information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology). [oneOf 2].[allOf 1].applepay_payment_data string no The encrypted payment data from the Apple Pay SDK. [oneOf 2].[allOf 1].googlepay_payment_data string no The encrypted token created when integration directly to the Google Pay SDK. [oneOf 2].[allOf 1].currency string no Set transaction currency. [oneOf 2].[allOf 1].shipping_id string no Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 2].[allOf 1].source_transaction_id string no Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record. [oneOf 2].[allOf 1].acu_enabled string no If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true' enum: ["true", "false"] [oneOf 2].[allOf 2].orderid string no Order id [oneOf 2].[allOf 2].order_description string no Order Description. [oneOf 2].[allOf 3].first_name string no Cardholder's first name. [oneOf 2].[allOf 3].last_name string no Cardholder's last name. [oneOf 2].[allOf 3].address1 string no Card billing address. [oneOf 2].[allOf 3].city string no Card billing city [oneOf 2].[allOf 3].state string no Card billing state. Format: `CC` [oneOf 2].[allOf 3].zip string no Card billing postal code. [oneOf 2].[allOf 3].country string no Card billing country code. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 2].[allOf 3].phone string no Billing phone number. [oneOf 2].[allOf 3].email string no Billing email address. [oneOf 2].[allOf 3].company string no Cardholder's company. [oneOf 2].[allOf 3].address2 string no Card billing address, line 2. [oneOf 2].[allOf 3].fax string no Billing fax number. [oneOf 2].[allOf 4].[allOf 1].shipping_firstname string no Shipping first name [oneOf 2].[allOf 4].[allOf 1].shipping_lastname string no Shipping last name [oneOf 2].[allOf 4].[allOf 1].shipping_company string no Shipping company [oneOf 2].[allOf 4].[allOf 1].shipping_address1 string no Shipping address [oneOf 2].[allOf 4].[allOf 1].shipping_address2 string no Shipping address, line 2 [oneOf 2].[allOf 4].[allOf 1].shipping_city string no Shipping city [oneOf 2].[allOf 4].[allOf 1].shipping_state string no Shipping state. Format: `CC` [oneOf 2].[allOf 4].[allOf 1].shipping_zip string no Shipping zip code [oneOf 2].[allOf 4].[allOf 1].shipping_country string no Shipping country. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 2].[allOf 4].[allOf 1].shipping_email string no Shipping email address format: "email" [oneOf 2].[allOf 4].[allOf 2].shipping_phone string no Shipping phone number. [oneOf 2].[allOf 4].[allOf 2].shipping_fax string no Shipping fax number. [oneOf 2].[allOf 5].merchant_defined_field_1 string no Merchant defined field. You can pass custom information in up to 20 fields. Format: `merchant_defined_field_1=Value1`, `merchant_defined_field_2=Value2`, etc... [oneOf 3].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 3].[allOf 1].customer_vault string yes Update a secure Customer Vault record. enum: ["update_customer"] [oneOf 3].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 3].[allOf 1].billing_id string no Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 3].[allOf 1].payment_token string no The tokenized version of the customer's card or check information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology). [oneOf 3].[allOf 1].googlepay_payment_data string no The encrypted token created when integration directly to the Google Pay SDK. [oneOf 3].[allOf 1].currency string no Set transaction currency. [oneOf 3].[allOf 1].payment string no Set payment type to ACH or credit card. enum: ["creditcard", "check"] [oneOf 3].[allOf 1].shipping_id string no Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated. [oneOf 3].[allOf 1].source_transaction_id string no Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record. [oneOf 3].[allOf 1].acu_enabled string no If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true' enum: ["true", "false"] [oneOf 3].[allOf 2].ccnumber string no Credit card number. <details> <summary>Allowed Card Numbers:</summary> | Card Type | Test Card Number | |:------------------|:---------------------| | Visa | 4111111111111111 | | MasterCard | 5431111111111111 | | Discover | 6011000991300009 | | American Express | 341111111111111 | | Diner's Club | 30205252489926 | | JCB | 3541963594572595 | | Maestro | 6799990100000000019 | </details> enum: ["4111111111111111", "5431111111111111", "6011000991300009", "341111111111111", "30205252489926", "3541963594572595", "6799990100000000019"] [oneOf 3].[allOf 2].ccexp string no Credit card expiration date. Format: `MMYY` [oneOf 3].[allOf 3].checkname string no The name on the customer's ACH account. [oneOf 3].[allOf 3].checkaba string no The customer's bank routing number. minLength: 9; maxLength: 9 [oneOf 3].[allOf 3].checkaccount string no The customer's bank account number. [oneOf 3].[allOf 3].account_holder_type string no The type of ACH account the customer has. enum: ["business", "personal"] [oneOf 3].[allOf 3].account_type string no The type of ACH account the customer has. enum: ["checking", "savings"] [oneOf 3].[allOf 3].sec_code string no The Standard Entry Class code of the ACH transaction. enum: ["PPD", "WEB", "TEL", "CCD"] [oneOf 3].[allOf 4].orderid string no Order id [oneOf 3].[allOf 4].order_description string no Order Description. [oneOf 3].[allOf 5].first_name string no Cardholder's first name. [oneOf 3].[allOf 5].last_name string no Cardholder's last name. [oneOf 3].[allOf 5].address1 string no Card billing address. [oneOf 3].[allOf 5].city string no Card billing city [oneOf 3].[allOf 5].state string no Card billing state. Format: `CC` [oneOf 3].[allOf 5].zip string no Card billing postal code. [oneOf 3].[allOf 5].country string no Card billing country code. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 3].[allOf 5].phone string no Billing phone number. [oneOf 3].[allOf 5].email string no Billing email address. [oneOf 3].[allOf 5].company string no Cardholder's company. [oneOf 3].[allOf 5].address2 string no Card billing address, line 2. [oneOf 3].[allOf 5].fax string no Billing fax number. [oneOf 3].[allOf 6].[allOf 1].shipping_firstname string no Shipping first name [oneOf 3].[allOf 6].[allOf 1].shipping_lastname string no Shipping last name [oneOf 3].[allOf 6].[allOf 1].shipping_company string no Shipping company [oneOf 3].[allOf 6].[allOf 1].shipping_address1 string no Shipping address [oneOf 3].[allOf 6].[allOf 1].shipping_address2 string no Shipping address, line 2 [oneOf 3].[allOf 6].[allOf 1].shipping_city string no Shipping city [oneOf 3].[allOf 6].[allOf 1].shipping_state string no Shipping state. Format: `CC` [oneOf 3].[allOf 6].[allOf 1].shipping_zip string no Shipping zip code [oneOf 3].[allOf 6].[allOf 1].shipping_country string no Shipping country. *Country codes are as shown in ISO 3166-1 alpha-2*. Format: `CC` [oneOf 3].[allOf 6].[allOf 1].shipping_email string no Shipping email address format: "email" [oneOf 3].[allOf 6].[allOf 2].shipping_phone string no Shipping phone number. [oneOf 3].[allOf 6].[allOf 2].shipping_fax string no Shipping fax number. [oneOf 3].[allOf 7].merchant_defined_field_1 string no Merchant defined field. You can pass custom information in up to 20 fields. Format: `merchant_defined_field_1=Value1`, `merchant_defined_field_2=Value2`, etc... [oneOf 4].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 4].customer_vault string yes Deletes a secure Customer Vault record. enum: ["delete_customer"] [oneOf 4].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 5].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 5].[allOf 1].type string yes The type of transaction to be processed. enum: ["auth"] [oneOf 5].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 5].[allOf 1].billing_id string no Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added. [oneOf 5].[allOf 2].amount string no Total amount to be charged. Format: `x.xx` [oneOf 5].[allOf 3].industry string no The industry parameter is supported across multiple transaction types. Its purpose is to identify the merchant industry type for processing enum: ["ecommerce", "moto", "retail", "restaurant", "lodging"] [oneOf 5].[allOf 5].network_tokenize string no Overrides the Customer Token Vault settings and tokenizes the transaction if eligible. Default - `0`. enum: ["0", "1"] [oneOf 6].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 6].[allOf 1].type string yes The type of transaction to be processed. enum: ["credit"] [oneOf 6].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 6].[allOf 1].billing_id string no Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added. [oneOf 6].[allOf 2].amount string no Total amount to be charged. Format: `x.xx` [oneOf 6].[allOf 3].industry string no The industry parameter is supported across multiple transaction types. Its purpose is to identify the merchant industry type for processing enum: ["ecommerce", "moto", "retail", "restaurant", "lodging"] [oneOf 6].[allOf 5].network_tokenize string no Overrides the Customer Token Vault settings and tokenizes the transaction if eligible. Default - `0`. enum: ["0", "1"] [oneOf 7].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 7].[allOf 1].type string yes The type of transaction to be processed. enum: ["offline"] [oneOf 7].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 7].[allOf 1].authorization_code string yes Specify authorization code. [oneOf 7].[allOf 1].billing_id string no Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added. [oneOf 7].[allOf 2].amount string no Total amount to be charged. Format: `x.xx` [oneOf 8].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 8].[allOf 1].type string yes The type of transaction to be processed. enum: ["sale"] [oneOf 8].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 8].[allOf 1].billing_id string no Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added. [oneOf 8].[allOf 2].amount string no Total amount to be charged. Format: `x.xx` [oneOf 8].[allOf 3].industry string no The industry parameter is supported across multiple transaction types. Its purpose is to identify the merchant industry type for processing enum: ["ecommerce", "moto", "retail", "restaurant", "lodging"] [oneOf 8].[allOf 5].network_tokenize string no Overrides the Customer Token Vault settings and tokenizes the transaction if eligible. Default - `0`. enum: ["0", "1"] [oneOf 9].[allOf 1].security_key string yes API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys [oneOf 9].[allOf 1].type string yes The type of transaction to be processed. enum: ["validate"] [oneOf 9].[allOf 1].customer_vault_id string yes Specifies a Customer Vault id. [oneOf 9].[allOf 1].billing_id string no Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added. { "content": { "application/x-www-form-urlencoded": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/CreateCustomer" }, { "$ref": "#/components/schemas/CreateCustomerDigitalWallet" }, { "$ref": "#/components/schemas/UpdateCustomer" }, { "$ref": "#/components/schemas/DeleteCustomer" }, { "$ref": "#/components/schemas/AuthUsingCustomerVault" }, { "$ref": "#/components/schemas/CreditUsingCustomerVault" }, { "$ref": "#/components/schemas/OfflineUsingCustomerVault" }, { "$ref": "#/components/schemas/SaleUsingCustomerVault" }, { "$ref": "#/components/schemas/ValidateUsingCustomerVault" } ] }, "examples": { "Create Customer": { "$ref": "#/components/examples/CreateCustomer" }, "Create Customer with Digital Wallet": { "$ref": "#/components/examples/CreateCustomerDigitalWallet" }, "Update Customer": { "$ref": "#/components/examples/UpdateCustomer" }, "AuthUsingCustomerVault": { "$ref": "#/components/examples/AuthUsingCustomerVault" }, "CreditUsingCustomerVault": { "$ref": "#/components/examples/CreditUsingCustomerVault" }, "OfflineUsingCustomerVault": { "$ref": "#/components/examples/OfflineUsingCustomerVault" }, "SaleUsingCustomerVault": { "$ref": "#/components/examples/SaleUsingCustomerVault" }, "ValidateUsingCustomerVault": { "$ref": "#/components/examples/ValidateUsingCustomerVault" } } } } } true

Response contract

The Classic methodology describes ampersand-delimited name/value responses. Where this schema advertises JSON media, that declaration is retained below as a source inconsistency; do not assume REST response parsing. For payments, response 1/2/3 distinguishes approval, decline and error. A transport success alone does not prove a payment was approved. { "200": { "description": "Customer operation completed successfully", "content": { "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/Response" }, "examples": { "Customer Created": { "$ref": "#/components/examples/CustomerCreated" }, "Customer Delete": { "$ref": "#/components/examples/CustomerDeleted" }, "Customer Update Failed": { "$ref": "#/components/examples/CustomerUpdateFailed" }, "AuthUsingCustomerVaultResponse": { "$ref": "#/components/examples/AuthUsingCustomerVaultResponse" }, "SaleUsingCustomerVaultResponse": { "$ref": "#/components/examples/SaleUsingCustomerVaultResponse" }, "ValidateUsingCustomerVaultResponse": { "$ref": "#/components/examples/ValidateUsingCustomerVaultResponse" }, "Declined Request": { "$ref": "#/components/examples/DeclinedResponse" } } } } } } true

Referenced schema definitions

All schemas and source example objects are preserved here, including descriptions, enums and references. Sample data may be historical. These JSON objects describe form parameters; they are not instructions to send JSON to Classic. { "schemas": { "SecurityKey": { "type": "string", "description": "API Security Key assigned to a merchant account. New keys can be generated from the merchant control panel in Settings > Security Keys" }, "CreditCard": { "type": "object", "properties": { "ccnumber": { "type": "string", "enum": [ "4111111111111111", "5431111111111111", "6011000991300009", "341111111111111", "30205252489926", "3541963594572595", "6799990100000000019" ], "description": "Credit card number.\n\n<details>\n<summary>Allowed Card Numbers:</summary>\n\n| Card Type | Test Card Number |\n|:------------------|:---------------------|\n| Visa | 4111111111111111 |\n| MasterCard | 5431111111111111 |\n| Discover | 6011000991300009 |\n| American Express | 341111111111111 |\n| Diner's Club | 30205252489926 |\n| JCB | 3541963594572595 |\n| Maestro | 6799990100000000019 |\n</details>" }, "ccexp": { "type": "string", "description": "Credit card expiration date.\n \nFormat: `MMYY`" } } }, "ACH": { "type": "object", "properties": { "checkname": { "type": "string", "description": "The name on the customer's ACH account." }, "checkaba": { "type": "string", "minLength": 9, "maxLength": 9, "description": "The customer's bank routing number." }, "checkaccount": { "type": "string", "description": "The customer's bank account number." }, "account_holder_type": { "type": "string", "enum": [ "business", "personal" ], "description": "The type of ACH account the customer has." }, "account_type": { "type": "string", "enum": [ "checking", "savings" ], "description": "The type of ACH account the customer has." }, "sec_code": { "type": "string", "enum": [ "PPD", "WEB", "TEL", "CCD" ], "description": "The Standard Entry Class code of the ACH transaction." } } }, "OrderDetails": { "type": "object", "properties": { "orderid": { "type": "string", "description": "Order id" }, "order_description": { "type": "string", "description": "Order Description." } } }, "BillingDetails": { "type": "object", "properties": { "first_name": { "type": "string", "description": "Cardholder's first name." }, "last_name": { "type": "string", "description": "Cardholder's last name." }, "address1": { "type": "string", "description": "Card billing address." }, "city": { "type": "string", "description": "Card billing city" }, "state": { "type": "string", "description": "Card billing state.\n \nFormat: `CC`" }, "zip": { "type": "string", "description": "Card billing postal code." }, "country": { "type": "string", "description": "Card billing country code. *Country codes are as shown in ISO 3166-1 alpha-2*.\n \nFormat: `CC`" }, "phone": { "type": "string", "description": "Billing phone number." }, "email": { "type": "string", "description": "Billing email address." }, "company": { "type": "string", "description": "Cardholder's company." }, "address2": { "type": "string", "description": "Card billing address, line 2." }, "fax": { "type": "string", "description": "Billing fax number." } } }, "Shipping": { "type": "object", "properties": { "shipping_firstname": { "type": "string", "description": "Shipping first name" }, "shipping_lastname": { "type": "string", "description": "Shipping last name" }, "shipping_company": { "type": "string", "description": "Shipping company" }, "shipping_address1": { "type": "string", "description": "Shipping address" }, "shipping_address2": { "type": "string", "description": "Shipping address, line 2" }, "shipping_city": { "type": "string", "description": "Shipping city" }, "shipping_state": { "type": "string", "description": "Shipping state.\n \nFormat: `CC`" }, "shipping_zip": { "type": "string", "description": "Shipping zip code" }, "shipping_country": { "type": "string", "description": "Shipping country. *Country codes are as shown in ISO 3166-1 alpha-2*.\n \nFormat: `CC`" }, "shipping_email": { "type": "string", "format": "email", "description": "Shipping email address" } } }, "ShippingDetails": { "type": "object", "title": "Shipping details with phone and fax", "allOf": [ { "$ref": "#/components/schemas/Shipping" }, { "type": "object", "properties": { "shipping_phone": { "type": "string", "description": "Shipping phone number." }, "shipping_fax": { "type": "string", "description": "Shipping fax number." } } } ] }, "MerchantDefinedField": { "type": "object", "properties": { "merchant_defined_field_1": { "type": "string", "description": "Merchant defined field. You can pass custom information in up to 20 fields.\n\nFormat: `merchant_defined_field_1=Value1`, `merchant_defined_field_2=Value2`, etc..." } } }, "CreateCustomer": { "type": "object", "title": "Create Customer", "allOf": [ { "required": [ "customer_vault", "ccnumber", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "customer_vault": { "type": "string", "enum": [ "add_customer" ], "description": "Create a secure Customer Vault record." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id. If not set, the payment gateway will randomly generate a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "payment_token": { "type": "string", "description": "The tokenized version of the customer's card or check information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology)." }, "applepay_payment_data": { "type": "string", "description": "The encrypted token created when integration directly to the Apple Pay SDK." }, "googlepay_payment_data": { "type": "string", "description": "The encrypted token created when integration directly to the Google Pay SDK." }, "currency": { "type": "string", "description": "Set transaction currency." }, "payment": { "type": "string", "enum": [ "creditcard", "check" ], "description": "Set payment type to ACH or credit card." }, "shipping_id": { "type": "string", "description": "Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "source_transaction_id": { "type": "string", "description": "Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record." }, "acu_enabled": { "type": "string", "enum": [ "true", "false" ], "description": "If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true'" } } }, { "$ref": "#/components/schemas/CreditCard" }, { "$ref": "#/components/schemas/ACH" }, { "$ref": "#/components/schemas/OrderDetails" }, { "$ref": "#/components/schemas/BillingDetails" }, { "$ref": "#/components/schemas/ShippingDetails" }, { "$ref": "#/components/schemas/MerchantDefinedField" } ] }, "CreateCustomerDigitalWallet": { "type": "object", "title": "Create Customer with Digital Wallet", "allOf": [ { "required": [ "customer_vault", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "customer_vault": { "type": "string", "enum": [ "add_customer" ], "description": "Create a secure Customer Vault record." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id. If not set, the payment gateway will randomly generate a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "payment_token": { "type": "string", "description": "The tokenized version of the customer's wallet information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology)." }, "applepay_payment_data": { "type": "string", "description": "The encrypted payment data from the Apple Pay SDK." }, "googlepay_payment_data": { "type": "string", "description": "The encrypted token created when integration directly to the Google Pay SDK." }, "currency": { "type": "string", "description": "Set transaction currency." }, "shipping_id": { "type": "string", "description": "Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "source_transaction_id": { "type": "string", "description": "Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record." }, "acu_enabled": { "type": "string", "enum": [ "true", "false" ], "description": "If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true'" } } }, { "$ref": "#/components/schemas/OrderDetails" }, { "$ref": "#/components/schemas/BillingDetails" }, { "$ref": "#/components/schemas/ShippingDetails" }, { "$ref": "#/components/schemas/MerchantDefinedField" } ] }, "UpdateCustomer": { "type": "object", "title": "Update Customer", "allOf": [ { "required": [ "customer_vault", "customer_vault_id", "ccnumber", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "customer_vault": { "type": "string", "enum": [ "update_customer" ], "description": "Update a secure Customer Vault record." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id to be assigned or updated. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "payment_token": { "type": "string", "description": "The tokenized version of the customer's card or check information, generated by the [Payment Component](../docs/payment-component) (npm packages / [Gateway.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#gjs_methodology)) and usable only once. Existing integrations may also supply a token from [Collect.js](https://secure.networkmerchants.com/merchants/resources/integration/integration_portal.php#cjs_methodology)." }, "googlepay_payment_data": { "type": "string", "description": "The encrypted token created when integration directly to the Google Pay SDK." }, "currency": { "type": "string", "description": "Set transaction currency." }, "payment": { "type": "string", "enum": [ "creditcard", "check" ], "description": "Set payment type to ACH or credit card." }, "shipping_id": { "type": "string", "description": "Shipping entry id. If none is provided, one will be created or the billing id with priority '1' will be updated." }, "source_transaction_id": { "type": "string", "description": "Specifies a payment gateway transaction id in order to associate payment information with a Customer Vault record." }, "acu_enabled": { "type": "string", "enum": [ "true", "false" ], "description": "If set to true, credit card will be evaluated and sent based upon Automatic Card Updater settings. If set to false, credit card will not be submitted for updates when Automatic Card Updater runs. Default: 'true'" } } }, { "$ref": "#/components/schemas/CreditCard" }, { "$ref": "#/components/schemas/ACH" }, { "$ref": "#/components/schemas/OrderDetails" }, { "$ref": "#/components/schemas/BillingDetails" }, { "$ref": "#/components/schemas/ShippingDetails" }, { "$ref": "#/components/schemas/MerchantDefinedField" } ] }, "DeleteCustomer": { "type": "object", "title": "Delete Customer", "required": [ "customer_vault", "customer_vault_id", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "customer_vault": { "type": "string", "enum": [ "delete_customer" ], "description": "Deletes a secure Customer Vault record." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." } } }, "Amount": { "type": "object", "properties": { "amount": { "type": "string", "description": "Total amount to be charged.\n \nFormat: `x.xx`" } } }, "Industry": { "type": "object", "properties": { "industry": { "type": "string", "enum": [ "ecommerce", "moto", "retail", "restaurant", "lodging" ], "description": "The industry parameter is supported across multiple transaction types. Its purpose is to identify the merchant industry type for processing" } } }, "CustomerTokenVaultFields": { "type": "object", "properties": { "network_tokenize": { "type": "string", "enum": [ "0", "1" ], "description": "Overrides the Customer Token Vault settings and tokenizes the transaction if eligible. Default - `0`.", "x-group-key": "Customer Token Vault" } } }, "AuthUsingCustomerVault": { "title": "Authorize Using Customer Vault", "allOf": [ { "type": "object", "required": [ "type", "customer_vault_id", "amount", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "type": { "type": "string", "enum": [ "auth" ], "description": "The type of transaction to be processed." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added." } } }, { "$ref": "#/components/schemas/Amount" }, { "$ref": "#/components/schemas/Industry" }, { "additionalProperties": { "type": "string", "description": "Up to 20 `merchant_defined_field_#` are allowed." } }, { "$ref": "#/components/schemas/CustomerTokenVaultFields" } ] }, "CreditUsingCustomerVault": { "title": "Credit transaction Using Customer Vault", "allOf": [ { "type": "object", "required": [ "type", "customer_vault_id", "amount", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "type": { "type": "string", "enum": [ "credit" ], "description": "The type of transaction to be processed." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added." } } }, { "$ref": "#/components/schemas/Amount" }, { "$ref": "#/components/schemas/Industry" }, { "additionalProperties": { "type": "string", "description": "Up to 20 `merchant_defined_field_#` are allowed." } }, { "$ref": "#/components/schemas/CustomerTokenVaultFields" } ] }, "OfflineUsingCustomerVault": { "title": "Offline transaction Using Customer Vault", "allOf": [ { "type": "object", "required": [ "type", "customer_vault_id", "amount", "authorization_code", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "type": { "type": "string", "enum": [ "offline" ], "description": "The type of transaction to be processed." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "authorization_code": { "type": "string", "description": "Specify authorization code." }, "billing_id": { "type": "string", "description": "Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added." } } }, { "$ref": "#/components/schemas/Amount" }, { "additionalProperties": { "type": "string", "description": "Up to 20 `merchant_defined_field_#` are allowed." } } ] }, "SaleUsingCustomerVault": { "title": "Sale Using Customer Vault", "allOf": [ { "type": "object", "required": [ "type", "customer_vault_id", "amount", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "type": { "type": "string", "enum": [ "sale" ], "description": "The type of transaction to be processed." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added." } } }, { "$ref": "#/components/schemas/Amount" }, { "$ref": "#/components/schemas/Industry" }, { "additionalProperties": { "type": "string", "description": "Up to 20 `merchant_defined_field_#` are allowed." } }, { "$ref": "#/components/schemas/CustomerTokenVaultFields" } ] }, "ValidateUsingCustomerVault": { "title": "Validate Using Customer Vault", "allOf": [ { "type": "object", "required": [ "type", "customer_vault_id", "security_key" ], "properties": { "security_key": { "$ref": "#/components/schemas/SecurityKey" }, "type": { "type": "string", "enum": [ "validate" ], "description": "The type of transaction to be processed." }, "customer_vault_id": { "type": "string", "description": "Specifies a Customer Vault id." }, "billing_id": { "type": "string", "description": "Billing id assigned to specific billing record. Billing id should be used when calling a Vault record with multiple billings added." } } }, { "additionalProperties": { "type": "string", "description": "Up to 20 `merchant_defined_field_#` are allowed." } } ] }, "Response": { "type": "object", "title": "Response", "properties": { "response": { "type": "string", "enum": [ "1", "2", "3" ], "description": "Status code for the operation. (1) - success, (2) - failed, (3) system error" }, "responsetext": { "type": "string", "description": "Textual description of the operation's result." }, "authcode": { "type": "string", "description": "Authorization code for the operation." }, "amount_authorized": { "type": "string", "description": "(Conditional) This will optionally come back when requesting partial payment. Authorization amount." }, "transactionid": { "type": "string", "description": "(Conditional - Payment) Payment gateway transaction id." }, "invoice_id": { "type": "string", "description": "(Conditional - Invoice) Identifier for the invoice." }, "avsresponse": { "type": "string", "description": "Address Verification Service response code." }, "cvvresponse": { "type": "string", "description": "Card Verification Value response." }, "orderid": { "type": "string", "description": "Identifier for an order related to this invoice." }, "type": { "type": "string", "enum": [ "sale", "auth", "validate", "credit", "offline", "capture", "void", "refund", "complete_partial_payment", "add_invoice", "update_invoice", "send_invoice", "close_invoice", "add_plan", "edit_plan", "add_subscription", "" ], "description": "Type of operation that this response is for." }, "partial_payment_id": { "type": "string", "description": "(Conditional) This will optionally come back when requesting partial payment. A numeric identifier which is used when submitting subsequent transactions." }, "partial_payment_balance": { "type": "string", "description": "(Conditional) This will optionally come back when requesting partial payment. The payment's remaining balance." }, "platform_id": { "type": "string", "description": "Platform ID associated with the transaction." }, "response_code": { "type": "string", "description": "Another status or result code for the operation. See [Response Code Table](#section/Appendixes/Payment-API-Response-Codes)" }, "subscription_id": { "type": "string", "description": "(Conditional - Subscription) The subscription ID that was created" }, "emv_auth_response_data": { "type": "string", "description": "(Conditional) This will optionally come back when any chip card data is provided on the authorization. This data needs to be sent back to the SDK after an authorization." }, "payment_terms": { "type": "string", "description": "(Conditional - Invoice) The terms of payment for the invoice." }, "customer_vault_id": { "type": "string", "description": "(Conditional - Customer Vault) The original customer_vault_id passed in the transaction request or the resulting customer_vault_id created on an approved transaction.\n\nNote: Only returned when the \"Customer Vault\" service is active." }, "kount_score": { "type": "string", "description": "The Kount \"Omniscore\" indicating the level of risk on a given transaction. The higher the score, the lower the risk.\n\nNote: Only returned when the \"Kount\" service is active." } } } }, "examples": { "CreateCustomer": { "summary": "Create Customer", "description": "Create Customer", "value": { "customer_vault": "add_customer", "ccnumber": "4111111111111111", "ccexp": "1234", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "CreateCustomerDigitalWallet": { "summary": "Create Customer with Digital Wallet", "description": "Create Customer with Digital Wallet", "value": { "customer_vault": "add_customer", "applepay_payment_data": "6c48735c2f387575713056494a62726d52536...654e6b4", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "UpdateCustomer": { "summary": "Update Customer", "description": "Update Customer", "value": { "customer_vault": "update_customer", "customer_vault_id": "123456789", "ccnumber": "4111111111111111", "ccexp": "1234", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "AuthUsingCustomerVault": { "summary": "Authorize using Customer Vault", "description": "Authorize transaction using Customer Vault", "value": { "type": "auth", "customer_vault_id": "TestCustomer1", "amount": "10", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "CreditUsingCustomerVault": { "summary": "Credit using Customer Vault", "description": "Credit transaction using Customer Vault", "value": { "type": "credit", "customer_vault_id": "TestCustomer1", "amount": "10", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "OfflineUsingCustomerVault": { "summary": "Offline transaction using Customer Vault", "description": "Offline transaction using Customer Vault", "value": { "type": "offline", "customer_vault_id": "TestCustomer1", "amount": "10", "authorization_code": "123456", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "SaleUsingCustomerVault": { "summary": "Sale using Customer Vault", "description": "Process Sale transaction using Customer Vault", "value": { "type": "sale", "customer_vault_id": "TestCustomer1", "amount": "10", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "ValidateUsingCustomerVault": { "summary": "Validate using Customer Vault", "description": "Validate using Customer Vault", "value": { "type": "validate", "customer_vault_id": "TestCustomer1", "security_key": "6457Thfj624V5r7WUwc5v6a68Zsd6YEm" } }, "CustomerCreated": { "summary": "Customer Created", "description": "Customer has been created successfully", "value": { "response": "1", "responsetext": "Customer Added", "authcode": "", "transactionid": "", "avsresponse": "", "cvvresponse": "", "orderid": "", "type": "", "response_code": "100", "customer_vault_id": "1184146651" } }, "CustomerDeleted": { "summary": "Customer Deleted", "description": "Customer has been deleted successfully", "value": { "response": "1", "responsetext": "Customer Deleted", "authcode": "", "transactionid": "", "avsresponse": "", "cvvresponse": "", "orderid": "", "type": "", "response_code": "100" } }, "CustomerUpdateFailed": { "summary": "Customer Update Failed", "description": "Update customer request has failed", "value": { "response": "3", "responsetext": "Invalid Customer Vault Id REFID:1095356952", "authcode": "", "transactionid": "", "avsresponse": "", "cvvresponse": "", "orderid": "", "type": "", "response_code": "300", "customer_vault_id": "TestCustomer1" } }, "AuthUsingCustomerVaultResponse": { "summary": "Authorize using Customer Vault", "description": "Authorize transaction using Customer Vault", "value": { "response": "1", "responsetext": "SUCCESS", "authcode": "123456", "transactionid": "8567955102", "avsresponse": "N", "cvvresponse": "", "orderid": "", "type": "auth", "response_code": "100", "customer_vault_id": "2007428916" } }, "SaleUsingCustomerVaultResponse": { "summary": "Sale using Customer Vault", "description": "Process Sale transaction using Customer Vault", "value": { "response": "1", "responsetext": "SUCCESS", "authcode": "123456", "transactionid": "8567955102", "avsresponse": "N", "cvvresponse": "", "orderid": "", "type": "sale", "response_code": "100", "customer_vault_id": "2007428916" } }, "ValidateUsingCustomerVaultResponse": { "summary": "Validate using Customer Vault", "description": "Validate using Customer Vault", "value": { "response": "1", "responsetext": "SUCCESS", "authcode": "", "transactionid": "8567973031", "avsresponse": "N", "cvvresponse": "", "orderid": "", "type": "validate", "response_code": "100", "customer_vault_id": "2007428916" } }, "DeclinedResponse": { "summary": "Failed to Create Plan", "description": "Failed to create a new plan", "value": { "response": "3", "responsetext": "There is already a plan using the SKU you have specified. REFID:1203610329", "authcode": "", "transactionid": "", "avsresponse": "", "cvvresponse": "", "orderid": "", "type": "", "response_code": "100" } } } } true

Published operation notes

Additional operation-specific source notes, including legacy outcome tables where published. Read alongside the family guidance above; source marketing claims are not compliance guarantees. <details> <summary>Methodology</summary> **Steps:** 1. The customer sends their payment information to the merchant's web site. 2. The merchant web site posts the payment data to the Payment Gateway. 3. The Payment Gateway responds immediately with the results of the transactions. 4. The merchant web site displays the appropriate message to the customer. The communication method used to send messages to the Payment Gateway's server is the standard HTTP protocol over an SSL connection. In the Payment API method, the communications with the cardholder (Steps 1 and 4) are developed completely by the merchant and therefore are not defined by the Payment Gateway. Step 1 should simply collect the payment data from the cardholder and Step 4 should display the appropriate transaction receipt or declined message. In Step 2, transaction details should be delivered to the Payment Gateway using the POST method with the appropriate variables defined below posted along with the request. In Step 3, the transaction responses are returned in the body of the HTTP response in a query string name/value format delimited by ampersands. For example: `variable1=value1&variable2=value2&variable3=value3` ### Customer Vault The Customer Vault was designed specifically for businesses of any size to address concerns about handling customer payment information. Visa and MasterCard have instituted the Payment Card Industry (PCI) Data Security to protect cardholder data, wherever it resides, ensuring that members, merchants, and service providers maintain the highest information security standards. These associations have also deemed that merchants will be held liable for any breach of cardholder data. This has become a major concern for merchants who handle credit card or electronic check payments. The Customer Vault is designed for these merchants who desire to avoid the tremendous costs and resources involved in becoming PCI compliant under these circumstances. The Customer Vault does this by allowing merchants to transmit their payment information through a Secure Sockets Layer (SSL) connection for storage in our Level 1 PCI certified data facility. Once the customer record has been securely transmitted to the Customer Vault, the merchant can then initiate transactions remotely without having to access cardholder information directly. This process is accomplished without the merchant storing the customer's payment information in their local database or payment application. </details> <details> <summary>Response Code Table</summary> | Code | Description | |:------|:-------------------------------------------------------------------| | 100 | Transaction was approved. | | 200 | Transaction was declined by processor. | | 201 | Do not honor. | | 202 | Insufficient funds. | | 203 | Over limit. | | 204 | Transaction not allowed. | | 220 | Incorrect payment information. | | 221 | No such card issuer. | | 222 | No card number on file with issuer. | | 223 | Expired card. | | 224 | Invalid expiration date. | | 225 | Invalid card security code. | | 226 | Invalid PIN. | | 240 | Call issuer for further information. | | 250 | Pick up card. | | 251 | Lost card. | | 252 | Stolen card. | | 253 | Fraudulent card. | | 260 | Declined with further instructions available. (See response text) | | 261 | Declined-Stop all recurring payments. | | 262 | Declined-Stop this recurring program. | | 263 | Declined-Update cardholder data available. | | 264 | Declined-Retry in a few days. | | 300 | Transaction was rejected by gateway. | | 400 | Transaction error returned by processor. | | 410 | Invalid merchant configuration. | | 411 | Merchant account is inactive. | | 420 | Communication error. | | 421 | Communication error with issuer. | | 430 | Duplicate transaction at processor. | | 440 | Processor format error. | | 441 | Invalid transaction information. | | 460 | Processor feature not available. | | 461 | Unsupported card type. | </details> true

Reconcile outcomes

Persist the returned transaction or object identifier and inspect the operation result before changing application state. Investigate interrupted financial responses before retrying. Saved methods, invoice delivery, schedules and refunds have different side effects; select the corresponding variant explicitly. Account and processor behavior have not been executed in this audit.

Join the community and get the latest biz news & tips

Thanks for submitting!

© 2025 Betterpay. All Rights Reserved.

bottom of page