NAV Navbar
cURL PHP C# Java Python

Payment Engine API Documentation

Payment Engine is a point of sale middleware solution that allows developers to work with a variety of payment terminals without the hassle of integrating and certifying each solution. The middleware is available as a cloud based solution.

CLOUD REST API

The Payment Engine is a cloud based EMV middleware that point of sale developers can use to simplify their integration with various EMV capable payment terminals such as the Castles MP200.

API Overview

Endpoint URL

The base url for the production API is: https://usaepay.com/api/v2/

The hostname "usaepay.com" can be swapped out for any of the other gateway hostnames (see the High Availability Guide. During development, "sandbox.usaepay.com" should be used. For more information on the development sandbox see the Sandbox Guide.

The "v2" refers the API version and can replaced with an endpoint key. The API limits the number of API calls allowed per minute and per day based on this key. Using "v2" is fine for development and smaller merchants, but could result in API rate limit errors for high traffic merchants. Larger merchants and developers should register their own software endpoint key in the Dev Portal. For more details, see the API Rate Limits section below.

There are other features available with developer registered endpoints including, restricting use of the end point by IP address and listing contact information for support. The endpoint keys are independent of the merchant API keys. An endpoint can be used with any merchant account.

API Endpoints Index

API Rate Limits

To prevent abuse, the API implements per minute and daily rate limits. The limits are counted per endpoint key and IP address. When using the default endpoint url, the limits are 45/minute and 5000/day. When the limit is exceeded, the API will return HTTP error code 429:

HTTP/1.1 429 API Rate Limit Exceed

The body of the response will be:

{"error":"API Rate Limit Exceed","errorcode":155}

Developers can utilize the "X-Rate-Limit" HTTP header to manage their API rate limit usage:

X-Rate-Limit: "8 of 45/min; 8 of 5000/day"

Higher limits are immediately available by self registering an endpoint in the Dev Portal. Further increases to the limits are granted on a case by case basis. Contact the integration support team for further information. To test the API Rate Limit feature, use the API endpoint "https://sandbox.usaepay.com/api/RATELIMT/". Your second request will be rate limited.

IP Access Restrictions

By default, API endpoints are available to clients on any IP address. Developers can edit their API endpoint to restrict calls from a set list of IP addresses. To test the IP access restriction, you can use the url "https://sandbox.usaepay.com/api/IPACCESS/". When access is blocked HTTP error code 401 will be returned:

HTTP/1.1 401 Access Denied

The body of the response will be:

{"error":"Access Denied","errorcode":156}

Authentication

Hash Example

var seed = random_value();
var prehash = apikey + seed + apipin;
var apihash = 's2/'+ seed + '/' + sha256(prehash);

Authorization Example

Authorization: Basic
  OnMyL2YxYmFmMjE1OGQwNDQwYmI4N2U4OTRjOWU5MmQ4Mzk2L2ZhODgxNWNkYWMxZjY4M2VkNWQyY2Y5NmRhNmMzN2JlODRmNzNhNDA0ODYwNDU3YzNkZDdiNmM0NTc5NjA0YWY=

All API calls require an APIkey (sourcekey) and API hash. The API hash is built by hashing a random seed, the API key, and the private API pin.

The API key and API hash must be sent in a basic auth http header (base64 encode "apikey:apihash"):

Common Formats

Lists

Example

<?php
{
   "type": "list",
   "limit": 100,
   "offset": 0,
   "data": [
      {...},
      {...},
   ],
   "total": 200
 }
?>

All API endpoints that return multi objects use a standard list format:

Offset

To change the number of objects returned in the result set, pass a "limit" variable in the request url (example: /api/customers?limit=1000). To retrieve the next group of objects, pass in "offset" with the item # to start with. "0" is the first item. For example, if there are 21 customers you could pull them in three calls:

/api/customers?limit=10&offset=0 ... 10 customers returned ... /api/customers?limit=10&offset=10 ... 10 customers returned ... /api/customers?limit=10&offset=20 ... 1 customer returned ...

Objects

Example

<?php
{
  "key": "a8ai3k7i77tw",
  "type": "customer",
  "firstname": "John",
  "lastname": "Doe",
  ...
 }
 ?>

Single objects will all include a "key" (the primary public key for the object) and a "type" (the object type). For example:

Common Errors

Errorcode Message Troubleshooting
0 Valid authentication required Authorization header was missing.
21002 API authentication failed Authentication was not successful. Possible reasons could include: using the wrong PIN, using a sourcekey from sandbox in production mode, or that the authentication header was malformed.

Firewall Rules

Payment Engine Diagram

The Payment Engine Gateway facilitates all communication between the point of sale software and the payment terminal. No direct communication happens between the point of sale and the terminal, and the terminal can be on a different network segment than the point of sale.

Payment Engine SDK

The point of sale software will need to be able to communicate with the payment gateway on port 443. This is an outbound connection and the ip address will depend on which URL is being used. Using the default url:

Host Direction IP Port
www.usaepay.com Outbound 209.239.233.7 443
www.usaepay.com Outbound 64.0.146.7 443
www.usaepay.com Outbound 209.220.191.7 443
www.usaepay.com Outbound 65.132.197.7 443

If using the sandbox test environment:

Host Direction IP Port
sandbox.usaepay.com Outbound 64.0.146.129 443

For a full list of all urls and associated IPs, see the high availability guide.

Stand Alone Payment Terminals

Stand alone payment terminals, such as the Castles MP200, establish a persistent outbound connection to the payment gateway. No incoming firewall rules are required.

Host Direction IP Port
pos.usaepay.com Outbound 209.239.233.90 443 and 9011
pos.usaepay.com Outbound 64.0.146.90 443 and 9011
pos.usaepay.com Outbound 209.220.191.90 443 and 9011
pos.usaepay.com Outbound 65.132.197.90 443 and 9011

If using the sandbox test environment:

Host Direction IP Port
pos.sb.usaepay.com Outbound 64.0.146.60 443 and 9011

Basic network services required:

Note: Currently, the payment engine software for stand alone terminals does not support static IP address assignment. DHCP is required.

Direct Payment Terminals

Direct payment terminals, such as the Ingenico Tetra devices, establish a persistent outbound connection to the payment gateway. No incoming firewall rules are required.

Host Direction IP Port
direct.paymentengine.io Outbound 64.0.146.194 9021
direct.paymentengine.io Outbound 209.220.191.194 9021
direct.paymentengine.io Outbound 209.239.233.194 9021

If using the sandbox test environment:

Host Direction IP Port
direct-sb.paymentengine.io Outbound 64.0.146.195 9021
direct-sb.paymentengine.io Outbound 209.220.191.195 9021
direct-sb.paymentengine.io Outbound 209.239.233.195 9021

Basic network services required:

Connection Manager

Payment Engine Diagram

For some Ingenico terminals, either Connection Manager or the Connection Manager Virtual Appliance is required to facilitate the connection to the terminal. Connection Manager is not required for standalone terminals such as the Castles MP200. The connection manager software or appliance will need to be able to make the following outbound connections:

Host Direction IP Port
pos.usaepay.com Outbound 209.239.233.90 443 and 9011
pos.usaepay.com Outbound 64.0.146.90 443 and 9011
pos.usaepay.com Outbound 209.220.191.90 443 and 9011
pos.usaepay.com Outbound 65.132.197.90 443 and 9011

If using the sandbox test environment:

Host Direction IP Port
pos.sb.usaepay.com Outbound 64.0.146.60 443 and 9011

Additionally, the appliance will need the following for software updates:

Host Direction IP Port
downloads.paymentengine.io Outbound 209.239.233.186 443

The appliance also requires these basic network services:

Ingenico iSC

By default the Ingenico terminals listen on port 12000. Configure firewall rules to allow the connection manager to connect to the terminal on this port.

Cloud Demo Application

The quickest way to see how the Payment Engine rest API works is to try the demo app. It provides a simple web UI for registering a device and processing a payment. At the same time it keeps a log of the underlying rest calls that were made. These calls can be used for comparison when writing your own app.

Running the Demo App

Step 1: Payment Application Demo

To open the Payment Application Demo go to https://demo.paymentengine.io. You should get the screen below.

Screenshot

Step 2: Device/Terminal Simulator

When you are using the demo application, you can test using a terminal simulator OR you can use a real hardware device.

Screenshot

Step 3: Get Pairing Code

In the demo app tab, paste an API Key (source key) and PIN into the appropriate fields and click "Register". If you do not already have an API key, log into the merchant console and go the API Keys section of the Settings tab. If you will be using the simulator for testing, you will need a merchant account setup on the "testbed" platform. Please contact the integration support department for assistance. If you have entered a valid source key and PIN, you should see a window that looks like this:

Screenshot

Step 4: Enter Pairing Code on Terminal

Enter the pairing code that is displayed in demo app into the simulator (or real terminal) and then press the "Enter" button (or green button on the MP200):

Screenshot

If the code is entered correctly, you should get a welcome screen:

Screenshot

Step 5: Start Payment Request

In the demo app, enter a desired amount and click "Start Transaction":

Screenshot

A pop-up that tracks the progress of the payment on the terminal should appear:

Screenshot

Step 6: Present Payment on Terminal

If using a real device, follow the prompts on the terminal screen. If using the simulator click on one of the "Swipe Card", "Tap Card" or "Dip Card" buttons. A card selection menu will come up that allows you to select a particular card brand and response type, ie "Swipe Visa: Approved". Once you have selected your card, click on the bottom left button.

Screenshot

Step 7: View Transaction Result in the Demo App

Once the payment is complete, you should see the transaction result in the demo app:

Screenshot

Endpoints

API Index

Devices

POST devices

Endpoint POST /api/v2/paymentengine/devices

Registers a payment terminal device. The device registration process associates a terminal with a merchant. Depending on the terminal_type, the process may require two steps.

For terminals running the payment engine standalone middleware such as the Castles MP200 a device pairing code is used. When a new terminal is first turned on, it will display a screen prompting for a pairing code. The point of sale software should use API resource to obtain a code. The pairing code is then entered into the terminal. If successful, the terminal should display a welcome idle screen and the API will show a status of "online" in GET /api/v2/paymentengine/devices/:devicekey:.

For security reasons, pairing codes are only valid for a few minutes. If the time limit has expired without the pairing code being entered on the terminal, the pairing code and associated device key are automatically removed.

Once a terminal is successfully paired, it will remain registered until deleted: there is no need to re-register a terminal when it reboots.

Request

Basic Request Example

curl --basic --user APIKEY:PINHASH \
  -H "Content-Type: application/json" -X POST \
  https://usaepay.com/api/v2/paymentengine/devices \
  -d '{"name":"Register 1","terminal_type":"standalone"}'

Request with Settings and Terminal Config Example

curl --basic --user APIKEY:PINHASH \
  -H "Content-Type: application/json" -X POST \
    -d '{"name":"Register 1","terminal_type":"standalone","settings":{"timeout":30,"share_device":false,"enable_standalone":false,"sleep_battery_device":5,"sleep_battery_display":1,"sleep_powered_device":0,"sleep_powered_display":0},"terminal_config":{"enable_emv":true,"enable_debit_msr":true,"enable_tip_adjust":true,"enable_contactless":true}}' \
  https://usaepay.com/api/v2/paymentengine/devices
POST/paymentengine/devices
Variable Description Required
terminal_type Type of terminal being registered, currently the only option is 'standalone'. X
name A name associated with the terminal. Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out.
%settings% Device settings
%terminal_config% Terminal configuration

Response

Example Response

POST/paymentengine/devices

Errors

Errorcode Message Troubleshooting
21113 Required parameter terminal_type was not provided Make sure to include the terminal_type parameter in your post body.
21114 Unsupported terminal type xxxxxxx Make sure the terminal type is in the list of supported terminals (see above).

GET devices/:devicekey:

Endpoint

GET /api/v2/paymentengine/devices/:devicekey:

Retrieve information about a device by its device key.

Request

Request Example

@GET/paymentengine/devices/:devicekey:@
curl --basic --user APIKEY:PINHASH \
https://usaepay.com/api/v2/paymentengine/devices/sa_CCpRfLbkYXNV9rVLdRGvPjwf6ytgN

Parameter Name Type Description
key string Unique device identifier

Response

Response Example - Device Pending Registration

<?php
{
  "type": "device",
  "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA23r",
  "apikeyid": "ntC8nP31Moh0wtvYT",
  "terminal_type": "standalone",
  "status": "waiting for device pairing",
  "name": "Register 1",
  "pairing_code": 690520,
  "expiration": "2019-10-29 11:59:28",
  "settings": {
    "timeout": 30,
    "share_device": false,
    "enable_standalone": false,
    "sleep_battery_device": 5,
    "sleep_battery_display": 1,
    "sleep_powered_device": 0,
    "sleep_powered_display": 0
  },
  "terminal_info": {
    "make": "Castles",
    "model": "VEGA3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
  },
  "terminal_config": {
    "enable_emv": true,
    "enable_debit_msr": true,
    "enable_tip_adjust": true,
    "enable_contactless": true
  }
}
?>

Response Example - Registered Device Example

@GET/paymentengine/devices/:devicekey:@
Parameter Name Type Description
type string Object type. This will always be device.
key string Unique device identifier
apikeyid string The id of API key (source key) associated with the device.
terminal_type string Terminal type: "standalone" for payment engine cloud based terminal.
status string Current device status
name Developer assigned device name. Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out.
%settings% object Device settings
%terminal_info% object Details of terminal
%terminal_config% object Terminal configuration
pairing_code If terminal type is 'standalone', this is the pairing code required to pair the payment device with the payment engine.
expiration If terminal type is 'standalone', the expiration is the date/time that the pairing code is no longer valid.

Errors

Errorcode Message Troubleshooting
21121 Unknown devicekey xxxxxxx Double check that the device key is valid. If the device status was still "waiting for device pairing," the request may have expired.

GET devices

Endpoint

GET /api/v2/paymentengine/devices

Retrieves a list of devices registered to merchant.

Request

Request Example

curl --basic --user APIKEY:PINHASH \
https://usaepay.com/api/v2/paymentengine/devices

@GET/paymentengine/devices@

Request Parameters

Variable Description Default
limit Max number of results to return 20
offset Number offset to start response 0

Response

Response Example - No Devices Found

<?php
{
    "type": "list",
    "limit": 20,
    "offset": 0,
    "data": [],
    "total": 0
}
?>

Response Example - Single Device

@GET/paymentengine/devices@

Response Parameters

Parameter Name Type Description
type string The type of object returned. Returns a list.
limit integer The max number of items returned in each result set (see limit request param).
offset integer The number of product categories skipped from the results.
%data% array An array of product categories matching the request.

PUT devices/key

PUT /api/v2/paymentengine/devices/:devicekey:

Updates an existing device. Parameters are only updated if they are present in the body.

Request

Basic Request Example

curl --basic --user APIKEY:PINHASH \
 -X PUT \
 -H "Content-Type: application/json" \
 -d '{"name":"Testing","settings":{"share_device":true}}' \
 https://usaepay.com/api/v2/paymentengine/devices/sa_1BTTI5Yys0G3gVQa6beYxM4K0hhjC
@PUT/paymentengine/devices/:devicekey:@

Request Parameters

Variable Description
name A name associated with the terminal. Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out.
settings Device settings
terminal_config Terminal configuration

Device Settings

Variable Description
timeout Transaction timeout, how long to wait for transaction authorization to complete.
notify_update If true, device will be notified on all future updates
notify_update_next If true, device will be notified only on the next update. After notification, this is automatically set back to false.
enable_standalone Allows transactions to be initiated from terminal (if supported).
share_device If true, this allows the payment device to be used by other merchants. If false, only the merchant associated with the apikeyid may send transactions to device.
sleep_battery_device This is the amount of inactive time (in minutes) before the device enters full sleep if it is running on battery. If in full sleep, you will need to turn the device on again before processing. Wifi and Bluetooth pairing should persist, even after full sleep. Set to '0' to never sleep.
sleep_battery_display This is the amount of inactive time (in minutes) before the device enters display sleep if it is running on battery. If in display sleep, just send a transaction to the device or tap any button to wake the device. Set to '0' to never sleep.
sleep_powered_device This is the amount of inactive time (in minutes) before the device enters full sleep if it is plugged into power. If in full sleep, you will need to turn the device on again before processing. Wifi and Bluetooth pairing should persist, even after full sleep. Set to '0' to never sleep.
sleep_powered_display This is the amount of inactive time (in minutes) before the device enters display sleep if it is plugged into power. If in display sleep, just send a transaction to the device or tap any button to wake the device. Set to '0' to never sleep.

Terminal configuration

Variable Description
enable_emv Enables EMV processing.
enable_debit_msr Enables PIN debit for swiped transactions.
enable_tip_adjust Allows EMV transaction amounts to be adjusted after authorization (to add tip). Disables PIN authentication.
enable_contactless Enables NFC reader.

Response

Response Example

@PUT/paymentengine/devices/:devicekey:@

DELETE devices/key

DELETE /api/v2/paymentengine/devices/:devicekey:

Removes terminal registration and un-registers the device referenced by devicekey. This will delete the device key and place the terminal back on the pairing code prompt screen.

Request

Request Example

@DELETE/paymentengine/devices/:devicekey:@

Response

Response Example

@DELETE/paymentengine/devices/:devicekey:@

PUT devices/key/settings

PUT /api/v2/paymentengine/devices/:devicekey:/settings

Updates the device settings. These settings change the behavior of the device. If a setting is not included in the request, it will not be updated.

Request

Request Example

curl --basic --user APIKEY:PINHASH \
 -X POST \
 -H "Content-Type: application/json" \
 -d '{"share_device":true}' \
 https://usaepay.com/api/v2/paymentengine/devices/sa_p7wyCLbGgGtPyDE12U9zHJy3pg6WO/settings
@PUT/paymentengine/devices/:devicekey:/settings@

Request Parameters

Variable Description
timeout Transaction timeout, how long to wait for transaction authorization to complete.
enable_standalone Allows transactions to be initiated from terminal (if supported).
share_device If set to true, this allows a device to be used by other merchants. If false, only the merchant associated with the apikeyid may send transactions to device.

Response

Response Example

@PUT/paymentengine/devices/:devicekey:/settings@

The response is the standard GET device response.

GET devices/key/settings

Endpoint

GET /api/v2/paymentengine/devices/:devicekey:/settings

Retrieves the current device settings.

Request

Request Example

curl --basic --user APIKEY:PINHASH \
https://usaepay.com/api/v2/paymentengine/devices/sa_CCpRfLbkYXNV9rVLdRGvPjwf6ytgN/settings
@GET/paymentengine/devices/:devicekey:/settings@

Response

Response Example

@GET/paymentengine/devices/:devicekey:/settings@
Variable Description
timeout Transaction timeout, how long to wait for transaction authorization to complete.
enable_standalone Allows transactions to be initiated from terminal (if supported).
share_device If set to true, this allows a device to be used by other merchants. If false, only the merchant associated with the apikeyid may send transactions to device.

PUT devices/key/terminal-config

PUT /api/v2/paymentengine/devices/:devicekey:/terminal-config

Updates the devices terminal config. This terminal config controls the devices transaction processing features including supported payment types. If a setting is not included in the request, it will not be updated.

Request

Request Example

curl --user APIKEY:PINHASH \
-X PUT \
-H "Content-Type: application/json" \
-d '{"enable_emv":false}' \
https://usaepay.com/api/v2/paymentengine/devices/sa_p7wyCLbGgGtPyDE12U9zHJy3pg6WO/terminal-config

@PUT/paymentengine/devices/:devicekey:/terminal-config@

Request Parameters

Variable Description
enable_emv Enables EMV processing.
enable_debit_msr Enables PIN debit for swiped transactions.
enable_tip_adjust Allows EMV transaction amounts to be adjusted after authorization (to add tip). Disables PIN authentication.
enable_contactless Enable NFC reader.

Response

Response Example

@PUT/paymentengine/devices/:devicekey:/terminal-config@

The response is the standard GET device response.

GET devices/key/terminal-config

GET /api/v2/paymentengine/devices/:devicekey:/terminal-config

Retrieves the current terminal configuration.

Request

Request Example

curl --basic --user APIKEY:PINHASH \
https://usaepay.com/api/v2/paymentengine/devices/sa_CCpRfLbkYXNV9rVLdRGvPjwf6ytgN/terminal-config
@GET/paymentengine/devices/:devicekey:/terminal-config@

Response

Example Response

@GET/paymentengine/devices/:devicekey:/terminal-config@
Variable Description
enable_emv Enables EMV processing.
enable_debit_msr Enables PIN debit for swiped transactions.
enable_tip_adjust Allows EMV transactions amounts to be adjusted after authorization (to add tip). Disables PIN authentication.
enable_contactless Enables NFC reader.

POST devices/key/kick

Endpoint

POST /api/v2/paymentengine/devices/:devicekey:/kick

Kicks the terminal offline. The terminal should automatically reconnect after a few seconds. This can help jump start a stuck terminal.

Request

Request Example

curl --user APIKEY:PINHASH \
 -X POST \
 https://usaepay.com/api/v2/paymentengine/devices/sa_p7wyCLbGgGtPyDE12U9zHJy3pg6WO/kick

@POST/paymentengine/devices/:devicekey:/kick@

Request Parameters

Response

Response Example

@POST/paymentengine/devices/:devicekey:/kick@

The response is the standard GET device response.

PUT devices/key/branding

PUT /paymentengine/devices/:devicekey:/branding

Updates the branding to the Ingenico device.

Request

Request Example

{
  "brand": "Package-Name"
}

Request Parameters

Variable Description
brand Name of the package you would like to load for branding the Ingenico device.

Response

Response Example

true

Payment Requests

POST payrequests

POST /api/v2/paymentengine/payrequests

Starts a new payment request (transaction). This will cause the terminal to walk the customer through the payment processing screens:

  1. Swipe/dip/tap card.
  2. Choose credit/debit (if supported).
  3. Enter PIN (if necessary).
  4. Prompt for tip (if enabled).
  5. Approve amount.
  6. Capture signature (if enabled/supported).

A payment requestkey will be returned which can be used to track the customers progress on the terminal via GET /api/v2/paymentengine/payrequests/:requestkey:. When the process is complete, transaction details will be available.

Request

Minimal Payment Request Example

curl --basic --user APIKEY:PINHASH \
 -X POST \
 -H "Content-Type: application/json" \
 -d '{"devicekey":"sa_1BTTI5Yys0G3gVQa6beYxM4K0hhjC","command":"cc:sale","amount":"8.88"}' \
 https://usaepay.com/api/v2/paymentengine/payrequests

Line Items Example

{
    "lineitems": [
        {
            "sku": "The SKU",
            "name": "Prod Name",
            "description": "Prod Desc",
            "cost": "8.88",
            "qty": 1
        },
        {
            "sku": "The SKU 2",
            "name": "Prod Name 2",
            "description": "Prod Desc 2",
            "cost": "1.98",
            "qty": 2
        }
    ]
}

Example AddOn Request

{
  "amount": "52.10",
  "custom_options": [
    {
      "display": "Donate to Charity?",
      "denominations": [
        {
          "amount": "1.00",
          "display": "$1.00"
        },
        {
          "amount": "5.00",
          "display": "$5.00"
        },
        {
          "amount": "10.00",
          "display": "$10.00"
        },
        {
          "display": "Other",
          "amount_other": true
        }
      ],
      "type": "AddOn",
      "sku": "DONATION-12345"
    }
  ],
  "custom_flow": "options,amount,payment,result"
}

Example AddOn Response

{
  "type": "request",
  "status": "transaction complete",
  "transaction": {
    "type": "transaction",
    "auth_amount": "57.10",
    "lineitems": [
      {
        "sku": "subtotal",
        "cost": "52.10",
        "qty": 1
      },
      {
        "sku": "DONATION-12345",
        "cost": "5.00",
        "qty": 1
      }
    ],
    "complete": true
  }
}

Example Tip Request

{
  "amount": "15",
  "custom_options": [
    {
      "display": "Add a Tip?",
      "denominations": [
        {
          "amount": "2.25",
          "display": "$2.25"
        },
        {
          "amount": "2.70",
          "display": "$2.70"
        },
        {
          "amount": "3.00",
          "display": "$3.00"
        },
        {
          "display": "Other",
          "amount_other": true
        }
      ],
      "type": "Tip"
    }
  ],
  "custom_flow": "options,amount,payment,result"
}

Example Tip Response

{
  "type": "request",
  "status": "transaction complete",
  "transaction": {
    "type": "transaction",
    "auth_amount": "17.25",
    "amount_detail": {
      "tip": "2.25",
      "subtotal": "15.00"
    },
    "complete": true
  }
}
@POST/paymentengine/payrequests@

Request Parameters

Parameter Name Type Description
devicekey string Device key. If device key is not specified, the device associated with current source key is used.
command string This must be set to sale for a credit or debit card sale (Required)
amount double Total transaction amount (Including tax, tip, shipping, etc.) (Required)

Optional Paramters

Parameter Name Type Description
devicekey string Device key. If device key is not specified, the device associated with current source key is used.
command string This must be set to sale for a credit or debit card sale (Required)
amount double Total transaction amount (Including tax, tip, shipping, etc.) (Required)
timeout Time in seconds to wait for payment. Default is 180 seconds. See timeout handling below.
block_offline By default, the payment engine will wait for an offline payment terminal to connect and then start the transaction, up to the timeout time limit. If "block_offline" is set to true, the payment request will return an error right away.
ignore_duplicate Bypass duplicate detection/folding if it has been configured on the api key
save_card Save card and return token
manual_key If true, an option will be displayed to manually key the transaction.
prompt_tip Customer will be prompted to leave a tip.

Additional Transaction Parameters

In addition to the basic request parameters above, any of the transaction API parameters can also be passed through.

Parameter Name Type Description
%amount_detail% object Object containing a more detailed breakdown of the amount. Not required if amount is previously set.
invoice string Custom Invoice Number to easily retrieve sale details.
ponum string Customer's purchase order number. Required for level 3 processing.
orderid string Merchant assigned order identifier.
description string Public description of the transaction.
comments string Private comment details only visible to the merchant.
terminal string Terminal identifier (i.e. multilane)
clerk string Clerk/Cashier/Server name
%billing_address% object Object which holds the customer's billing address information.
%shipping_address% object Object which holds the customer's shipping address information.
email string Customer's email address
geolocation Latitude and longitude of transaction location.
software Software name and version (useful for troubleshooting).
%custom_fields% array Optional fields for storing custom data.
%lineitems% array Array of line items attached to the transaction. Possible fields for each line item listed below.
%custom_flow% comma delimited string Allows you to customize the order in which each payment screen is displayed on the device. Below are the parameters that can be included in the comma delimited string of the custom_flow parameter. Each of these parameters represents a screen which appears on the payment device. The payment and result screens are required. All others are optional.
%custom_options% array A parameter for custom_flow: options. options must be listed FIRST in the "custom_flow" comma delimited string. See below for detail.

Custom Flow

If you are using an Ingenico device, you also have to option to customize the flow of a transaction. The current default flow for transactions is: amount, payment, result.

Within the nested table are the parameters that can be included in the comma delimited string of the custom_flow parameter. Each of these parameters represents a screen which appears on the payment device. The payment and result screens are required. All others are optional.

Parameter Description
options Custom screen for add ons and tips. Must be FIRST in list.
payment Payment taking screen (must come before result).
amount Optional confirmation of amount (must come before result).
result Displays the transaction result.
signature Signature capture (must come after result).
signature_required Signature capture. If the signature is cancelled, then the transaction will be cancelled (must come after result).

Custom Options

A parameter for custom_flow: options. options must be listed FIRST in the custom_flow comma delimited string. Custom options can be AddOn or Tip:

Timeout Handling

Once a payment request is initiated, the payment engine does not require any further input from the point of sale software to complete the payment process. This can lead to confusion and potentially duplicate transactions if the point of sale software does not correctly poll the payment request. Consider the follow sequence of events:

  1. User starts the transaction on the point of sale software.
  2. The point of sale software starts polling the status of the request, but is configured to give up after 1 minute.
  3. User takes longer than 1 minute to swipe card.
  4. Payment engine successfully processes transaction, approval is shown on terminal.
  5. User returns to point of sale and sees an error indicating that the request timed out.
  6. User repeats the process and this time swipes the card in under a minute.
  7. Duplicate transaction is run and two charges are now in the batch, despite the point of sale only acknowledging one.

By default the payment engine will wait for 3 minutes (180 seconds) for the user to swipe, dip or tap their card. This can be configured by passing the "timeout" parameter. To prevent the above, the point of sale software should continue to poll the payment request for the full amount of time set in the timeout. When timeout is exceeded, the payment request status will change to "timeout".

Request Tokenization

In addition to processing the payment, a token will be generated that can be used for future payments.

Request Tokenization Example (cURL)

curl --basic --user APIKEY:PINHASH \
-H "Content-Type: application/json" \
-d '{"devicekey":"sa_1BTTI5Yys0G3gVQa6beYxM4K0hhjC","command":"cc:sale","amount":"8.88","save_card":true}' \
https://usaepay.com/api/v2/paymentengine/payrequests

Response

Response Example

@POST/paymentengine/payrequests@

Response Parameters

Parameter Description
key Request key
expiration The expiration is the date/time the request will expire and no longer be valid.
status The status of the request.

Errors

Errorcode Message Troubleshooting
21121 Unknown devicekey xxxxxxx Double check that the device key is valid. If the device status was still "waiting for device pairing," the request may have expired.
21143 Request failed (Payment terminal battery too low) Charge the terminal before processing any more transactions. The terminal does not have the power to complete the transaction.
21144 Transaction request has timed out. Retry transaction, and complete before time out allotted (default is 180 seconds). Lengthen timeout parameter if necessary.
21145 Device is currently offline. Verify terminal is connected to payment engine and try again.
21146 Device is currently processing another transaction. Two requests were sent simultaneously. Wait until the first request is complete and try again.

GET payrequests/key

GET /api/paymentengine/payrequests/:requestkey:

Gets the status of a pay requestkey.

Request

Request Example

curl --basic --user APIKEY:PINHASH \
 https://usaepay.com/api/v2/paymentengine/payrequests/pr_TJtcst4SfmEbztWk6V4RmJL5HKMLO
@GET/paymentengine/payrequests/:requestkey:@

Request Parameters

Response

Pending Payment Response Example

@GET/paymentengine/payrequests/:requestkey:@

Payment Approved (with tokenization) Example

{
    "type": "request",
    "key": "pr_YF0Rg5UARsFTN9AItsIKXIczmwIWN",
    "status": "transaction complete",
    "transaction": {
        "type": "transaction",
        "key": "kdbbjsn49jsjy3gm",
        "refnum": "2226860110",
        "is_duplicate": "N",
        "result_code": "A",
        "result": "Approved",
        "authcode": "019930",
        "error": "Approved",
        "error_code": "00000",
        "iccdata": "{\"8A\":\"3030\"}",
        "proc_refnum": "",
        "auth_amount": "5.00",
        "avs": {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
        },
        "cvc": {
            "result_code": "P",
            "result": "Not Processed"
        },
        "signature_required": true,
        "creditcard": {
            "number": "4444xxxxxxxx1111",
            "type": "V",
            "cardholder": "DOE\/JOHN",
            "entry_mode": "Chip Read",
            "aid": "A0000000031010"
        },
        "trantype": "Credit Card Sale",
        "complete": true
    }
}

Parameter Description
key Request key
expiration The expiration is the date/time the request will expire and no longer be valid.
status The status of the request. Possible Values are:
sending to device
sent to device
waiting for card dip
changing interfaces
customer see phone and tap again
processing payment
completing payment
capturing signature
signature capture error
transaction complete
canceled
transaction canceled
transaction failed
timeout
error
transaction Once the transaction has been processed, a transaction object will be added to the result.
complete Confirms if transaction is complete. Value will be: true or false. Please Note: A transaction object could be included in the response (signaling the transaction has been processed), and also receive complete:false. For example, if a Custom Flow is set and signature_required is included, the flag will show as complete:false until the signature has been captured.

DELETE payrequests/key

DELETE /api/v2/paymentengine/payrequests/:requestkey:

Deletes/cancels a payment request.

Request

Request Example

@DELETE/paymentengine/payrequests/:requestkey:@

Request Parameters

Response

Response Example

@DELETE/paymentengine/payrequests/:requestkey:@

Connection Manager Pro

About

This software is an enterprise version of the device manager tool available in USAePay’s virtual terminal. The Connection Manager Pro is ideal for companies that need to manage several EMV devices remotely. Users can log into USAePay’s developer portal, which is capable of handling thousands of EMV devices from multiple locations. This outstanding solution will allow developers to deploy multiple locations remotely by rebooting, restoring and re-pairing EMV devices.

To Login to the Developer Portal

To login to the developer portal, go to https://sandbox.usaepay.com/_developer/app/login. If you do not already have a developer login, simply click "Register for an account" to create one. You can login immediately after you have registered.

Devices

The Devices page of the Developer Portal page will show the list of devices you are currently managing. This list can contain devices over multiple merchant accounts. You can add devices that have already been registered or register the devices as you add them.

Add Device

New Device vs. Registered Device

A new device is a device that has NOT been paired or registered in the Merchant Console Device Manager. If you are pairing a new device then it can be registered as a stand alone or a managed device. If you are going to connecting the device to the Virtual Appliance then the device will ALWAYS be a new device.

A registered device is one that has been paired or registered in the Merchant Console Device Manager.

Stand Alone vs. Managed Device

A stand alone device is one which you do not need a virtual appliance to manage. Castles MP200's will be stand alone device, and all registered devices will automatically be categorized as stand alone.

A managed device is one which you use one of the appliances to manage, like the Ingenico ISC480. Visit the Connection Manager for Windows and the Connection Manager Virtual Appliance pages for more information.

Adding a Device

Creating an API Key

If it is your first time adding devices to the Connection Manager Pro, you will need to make sure you have an API Key created to attach each device to. You can add more than one device to each API Key. If you are managing devices from multiple merchant accounts, then you will need to create an API Key for each merchant account, because the API Key is what links that device to that specific account.

Login to the merchant account and create an API Key/Source Key and PIN for your devices. Instructions for both the Legacy Console and Console 2 are listed below.

Legacy Console

Console 2

Add Device Info

Device in Dev Portal

Import Devices

The Connection Manager also allows you to add multiple devices to your device servers by uploading information for multiple devices in a CSV document. Below are the steps for uploading both a managed and standalone devices.

Prepare the File

First, you will need to prepare the document with your device information. It must be in .csv format. Below you will find descriptions of the fields the file could include and an example template. Please Note: Documents must include only the devices that have the same type (Stand Alone or Managed) and same make.

Field Requirements Description
Store Optional Store number associated with device.
DBA Optional Name of merchant associated with device.
device_name Required for ALL Merchant assigned terminal label. Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out.
apikey Required for ALL API key device should be connected to.
apipin Required for ALL API pin for the above api key.
device_ip Required for Managed IP address associated with device.
devicekey Required for Standalone Unique gateway assigned alphanumeric string.

Device Import Templates:

Specify File Information

Once you have prepared the document, click the 'Import' button at the top of the 'Devices' page.

import

Next, specify if the file contains managed or stand alone devices, and the fields associated with that device type will populate.

import

Managed Devices

When importing managed devices you will have to specify the following fields:

import

When complete click 'Upload CSV' button.

Stand Alone Devices

When uploading Stand Alone devices, you will only need to specify the Environment (Sandbox or Production). The environment must match the API Key environment.

import

When complete click 'Upload CSV' button.

Upload and View Errors

Choose the file you wish to upload and click 'Open' and the developer-portal will parse the data in the file.

import

Once the data is parsed, the portal will show the following fields:

import

If you will to view the errors in your upload click 'Download Import Results' button. You will see the same .csv file that you uploaded and with two additional columns added:

Once uploaded, the devices will be listed in the Devices section of the Developer Portal.

import

Device Servers

If you are using an appliance, you will need to create this server and link it to the appliance before connecting any devices. Instructions for creating the server are shown below.

Adding Device Servers

Add Server

Server Details

Change Log

2017-08-25

Connection Manager Setup

The Connection Manager Pro Virtual Appliance is intended for large scale deployments. Appliances are managed through the developer portal web interface.

Requirements:

VMWare

Supported Devices:

Ingenico ISC480 (Other Ingenico Terminals running RBA 23.0.44 should also be compatible)

Installation:

Payment Engine Connection Manager Pro - VMWare OVA (Contact Integration Department for file)

Setup

The Connection Manager Pro will allow you to manage multiple devices at one time. Follow these steps to set up the Payment Engine Connection Manager Pro and connect your devices.

Login

To login to the developer portal, go to https://sandbox.usaepay.com/_developer/app/login.

If you do not already have a developer login, simply click "Register for an account" to create one. You can login immediately after you have registered.

Developer Login Registration

Install

Create Device Server

Developer Portal

Server Added

Connection Manager Pro

Appliance Connected

Create API Keys

Login to the merchant account and create an API Key/Source Key and PIN for your devices. Instructions for both the Legacy Console and Console 2 are listed below.

Legacy Console

Console 2

Add Device

Developer Portal

Device in Dev Portal

Connection Manager Pro

Device in Connection Manager

Connection Manager Virtual Appliance

The Connection Manager Virtual Appliance is intended for large scale deployments of devices. Appliances are managed through the developer portal web interface.

Requirements:

VMWare

Supported Devices:

Ingenico ISC480 (Other Ingenico Terminals running RBA 23.0.44 should also be compatible)

Installation:

Payment Engine Connection Manager Pro - VMWare OVA (Contact Integration Department for file)

Set-Up:

The Connection Manager Virtual Appliance will allow you to manage multiple devices at one time. Follow these steps to set up the Virtual Appliance and connect your devices.

Install the Virtual Appliance

Pairing Key

Appliance Connected

Add Device to Device Server

Connect your devices to the device server in the Developer Portal. For more information, visit the Connection Manager Pro page. When a device has been added successfully, the Connection Manager Virtual Appliance will show the connected device like this:

Device in Connection Manager

Cloud Middleware SDKs

.Net 4.5+

The Middleware SDK for .NET is a collection of classes that implement the rest api for the payment engine cloud solution. It allows developers to quickly create applications in .Net that take advantage of the payment engine middleware.

Middleware Class

Middleware Constructor

Middleware Constructor (C#)

public Middleware(String apiKey, String pin, String host="api.paymentengine.io")

Constructor for the middleware class. To instantiate the middleware object, you will need an API Key and PIN which can be created in the merchant console. You also have the option of specifying the gateway host you would like to use.

Constructor Example (C#)

try
{
   Middleware client = new Middleware("_hxEwTCy4UPSTp7sL5V69fa2Uu5Gzrfu", "1234", "sandbox.usaepay.com");
} catch(MiddlewareException ex) {
   Console.WriteLine("Error instantiating middleware: " + ex.ToString());
}

Parameter Type Description
apiKey String The API Key (aka SourceKey) created in the merchant console.
pin String API PIN set in the merchant console.
host String Gateway host to use. Defaults to primary production gateway "api.paymentengine.io". For sandbox use "sandbox.usaepay.com"

Exceptions

Code Message Notes
Invalid API Key The key parameter was not set to a valid api key.
An API Pin is required The pin parameter must be set to the pin assigned to the api key. If no pin has been set for the api key, log into the merchant console and set one.
Invalid gateway hostname The host parameter must be set to a valid hostname for the gateway. It is the hostname only, do not include https://

RegisterDevice

RegisterDevice Function Header (C#)

public void RegisterDevice(String TerminalName, Action<Device> callback, Action<MiddlewareException> onError, String RegistrationType="standalone")

Starts the registration process for a new terminal. The callback delegate will be called with a middleware device object that includes the "PairingCode" parameter. This code is entered by the user into the payment terminal to complete the pairing process. This method is only needed if the developer wishes to support registering new terminals. Alternately, terminals can be registered in the Device Manager section of the Merchant Console.

RegisterDevice Example (C#)

client.RegisterDevice("Register 1",(device) => {
   Console.WriteLine("Pairing code: " + device.PairingCode);
   Console.WriteLine("Device Key: " + device.DeviceKey);
}, (emw)=> {
  Console.WriteLine("error: " + emw.Message);
});

Parameter Type Description
TerminalName String The name of the terminal chosen by the user/developer. This can be used to distinguish between multiple devices.
callback Action Delegate called when registration request is accepted and pairing code is available.
onError Action Delegate called if an error occurs.
RegistrationType String Type of device registration. Defaults to "standalone".

Exceptions

Code Message Notes

See also: Common Exceptions

LoadDeviceByKey

LoadDeviceByKey Function Header (C#)

public void LoadDeviceByKey(String DeviceKey, Action<Device> callback, Action<MiddlewareException> onError=null)

Loads a Device object for an existing DeviceKey. The DeviceKey is returned when registering the device with RegisterDevice. The DeviceKey is also available in the Device Manager screen under the Settings section of the merchant console.

LoadDeviceByKey Example (C#)

client.LoadDeviceByKey("sa_0nr0qWGWrEQzALVjFkTeptSWj9NnE", (x) => {
   Device device = x;
   Console.WriteLine("Device load: " + device.Name);
}, (emw)=> {
  Console.WriteLine("error: " + emw.Message);
});

Parameter Type Description
DeviceKey String Key that uniquely identifies a device.
callback Action Delegate called when device has been loaded.
onError Action Delegate called if an error occurs.

Exceptions

Code Message Notes
DeviceKey is required A valid DeviceKey must be passed in the first parameter
21121 Unknown device key ... The DeviceKey did not match a device on the server

See also: Common Exceptions

LoadDevices

LoadDevices Function Header (C#)

public void LoadDevices(Action<Device> callback, Action<MiddlewareException> onError=null)

Loads all Devices.

LoadDevices Example (C#)

client.LoadDevices((x) => {
   Device device = x;
   Console.WriteLine("Device load: " + device.Name);
}, (emw)=> {
  Console.WriteLine("error: " + emw.Message);
});

Parameter Type Description
callback Action Delegate called when each device has been loaded.
onError Action Delegate called if an error occurs.

Exceptions

See also: Common Exceptions

LoadPaymentRequestByKey

LoadPaymentRequestByKey Function Header (C#)

public void LoadPaymentRequestByKey(String RequestKey, Action<PaymentRequest> callback, Action<MiddlewareException> onError)

Load an existing payment request by RequestKey.

Missing Example (C#)

ADD ME!
Parameter Type Description
RequestKey String Key that uniquely identifies an existing payment request.
callback Action Delegate called when payment request has been loaded.
onError Action Delegate called if an error occurs.

Exceptions

Code Message Notes
RequestKey is required A valid RequestKey must be passed in the first parameter
99999 Request not found The RequestKey did not match a payment request on the server

Device Class

Parameter Type Description
DeviceKey String Key that uniquely identifies a device.
Name String Developer/merchant assigned device name
Status String Current device status
PairingCode String If device has not been paired yet, this parameter contains the pairing code needed to be entered on terminal to complete registration.
PairingExpiration DateTime Date/Time that the pairing code will expire. The device will automatically be deleted if not paired by this time.
Config %TerminalConfig% Terminal configuration. Controls the payment processing features, such as contactless payments, EMV and PIN debit. TerminalConfig
Settings %DeviceSettings% Settings not related to payment processing, such as whether to allow sharing the device between multiple merchants. DeviceSettings
Details %DeviceDetails% Contains details about the registered terminal, such as the model and serial number. DeviceDetails

StartTransaction

StartTransaction Function Header (C#)

public PaymentRequest StartTransaction(Transaction Request, Action<String,TransactionResult> onTransactionComplete, Action<String> onStatusUpdate, Action<MiddlewareException> onError)

Sends a payment request to the terminal. Returns a PaymentRequest object that can be used to access the current status of the payment or cancel the transaction.

StartTransaction Example (C#)

TransactionRequest tran = new TransactionRequest()
{
    Command = "cc:sale",
    Amount = "10.00"
};
request = device.StartTransaction(tran,
    (status, result) =>
    {
      Console.WriteLine("Status: " + status);
        if(result != null)
        {
            Console.WriteLine("Transaction " + result.Result);
            if (result.ResultCode.Equals("A")) Console.WriteLine("  AuthCode: " + result.AuthCode);
            else Console.WriteLine("  Error: " + result.Error);
        }
    },
    (status) =>
    {
        Console.WriteLine("Status: " + status);
    },
    (emw) =>
    {
        Console.WriteLine("Error: " + emw.Message);
    },
  );

Parameter Type Description
Request %TransactionRequest% Transaction details such as amount. TransactionRequest
onTransactionComplete Action Method that is called once the device has refreshed. Passes a String containing the current device status
onStatusUpdate Action Method that is called once the device has refreshed. Passes a String containing the current device status
onError Action Method that is called if an exception occurs. Note: this is only called for communication and library issues. If the transaction is declined, the customer cancels the transaction or any other processing related error occurs, onTransactionComplete will be called.

ToJSON

ToJSON Example (C#)

String json = device.ToJSON();

Serializes a Device object to a JSON encoded string.

Refresh

Refresh Function Header (C#)

public void Refresh(Action<PaymentRequest> callback, Action<MiddlewareException> onError)

Refreshes device information and status.

Refresh Example (C#)

device.Refresh((x) =>
{
    Console.WriteLine("Device status: " + device.Status);
}, (ex)=>{
    Console.WriteLine("Error: " + ex.Message);
});

Parameter Type Description
callback Action Method that is called once the device has refreshed.
onError Action Method that is called if an exception occurs.

ResetPairing

ResetPairing Function Header (C#)

public void ResetPairing(Action<PairingCode> callback, Action<MiddlewareException> onError)

Unlinks the devicekey from the terminal and generates a new pairing code. The terminal will go back to the pairing screen and the device key can be then be paired to either the same terminal or a new one. This method allows for switching hardware terminals without needing to switch to a new devicekey.

ResetPairing Example (C#)

device.ResetPairing((x) =>
{
    Console.WriteLine("Pairing reset, new pairing code: " + x);
}, (ex)=>{
    Console.WriteLine("Error: " + ex.Message);
});

Parameter Type Description
callback Action Method that is called once the device is reset, passes the new pairing code
onError Action Method that is called if an exception occurs.

DeviceDetails Class

Parameter Type Description
Make String Device manufacturer
Model String Model name of terminal
Revision String Firmware version
Serial String Serial number

DeviceSettings Class

This object controls the settings of the payment engine device not related to payment acceptance. Payment acceptance settings are configured via the TerminalConfig.

Parameter Type Description
Timeout int Sets transaction timeout in seconds.
EnableStandalone bool Allows transactions to be initiated by terminal.
ShareDevice bool Allows terminal to be used by any API key including those belonging to other merchants.

TerminalConfig Class

This object describes the requested terminal config. When processing a transaction, the merchants capabilities are also evaluated. Features that are requested and available to the merchant will be enabled on the terminal. For example: If EnableEMV is set to true, but the merchant is configured for a credit card processor that does not support EMV, then the card slot will not be enabled.

Parameter Type Description
EnableEMV bool Enable the smart card slot for EMV processing
EnableDebitMSR bool Enable swiped PIN debit transactions
EnableContactless bool Enable the contactless reader for NFC transactions
TipAdjustAfterAuth bool Allow addition of tip after initial authorization. Disables PIN CVM and No CVM.

PaymentRequest Class

Parameter Type Description
RequestKey String Unique key that identifies the payment request
Status String The current status of the payment request
Result %TransactionResult% Contains the payment details after a transaction has been completed, such as authorization code. TransactionResult
Timeout int The maximum amount of time allowed for the customer to complete the payment on the terminal. When the timeout is reached, the payment will be canceled.

CancelTransaction

CancelTransaction Function Header (C#)

public void CancelTransaction(Action<String>callback, Action<MiddlewareException> onError)

Cancels a payment request that is in progress.

CancelTransaction Example (C#)

request.CancelTransaction((x) =>
{
    Console.WriteLine("Request cancelled: " + x);
}, (ex)=>
{
    Console.WriteLine("Exception cancelling tran: " + ex.Message);
});

Parameter Type Description
callback Action Delegate is called once the payment request has been canceled.
onError Action Delegate is called if an exception occurs.

TransactionRequest Class

This object is passed to the StartTransaction method. The only required parameters are the "Command" and "Amount" fields. The DeviceKey is set automatically by the StartTransaction method and will be ignored if set manually.

Parameter Type Description
DeviceKey String Unique identifier for the terminal that the transaction will be sent to.
Command String Payment command to run. Supported commands are: cc:sale, cc:authonly and cc:refund
Amount String Amount to process payment for. This should be the final amount (unless choosing to allow terminal to prompt for tip and cashback).
AmountDetail %AmountDetail% Detailed breakdown of the above total Amount. AmountDetail Class
PoNum String Purchase order number, only required for corporate cards.
Invoice String Invoice number, only first 10 digits are sent to platform
OrderID String Order identifier, alpha numeric
Description String Transaction description (visible to customer on receipt)
Comments String Internal transaction comments (visible only to merchant)
RestaurantTable String Table number
Clerk String Clerk/Cashier name
BillingAddress %Address% Billing address information
ShippingAddress %Address% Shipping address information
CustomerEmail String Customer email address
CustomerID String Customer ID
ClientIP String IP address of customer, useful if request is initiated from a server.
GeoLocation String Latitude and longitude to record for transaction. Example: "40.7142700,-74.0059700"
LineItems LineItem[] Array of line item details
ManualKey Boolean Set to true to have the terminal prompt for manual card number entry instead of swipe/dip
PromptTip Boolean Set to true to have the terminal prompt the customer for a tip amount.
PromptCashBack Boolean Set to true to have the terminal prompt the customer for cash back.
PromptSignature Boolean Set to false to prevent the terminal from capturing the customer signature. If the terminal supports signature capture, it will be on by default.
CustomFlow String Optional string that controls the sequence of screens presented to the customer during payment. Leave blank to use the default flow. Example: "amount,payment,result"
SaveCard Boolean Set to true to save the payment data to the customer record
Timeout Integer Set the transaction timeout
BlockOffline Boolean Set to true to have the request refused if the device is currently offline

TransactionResult Class

This object is returned when the payment has been completed.

Parameter Type Description
TransactionKey String Unique identifier for transaction. Can be used to perform actions such as refund and void on a transaction.
RefNum String Numeric sequential transaction reference number. Can be used with older gateway APIs.
AuthAmount String Authorized amount returned from processor.
AuthCode String AuthCode returned from processor.
ProcRefNum String Processor generated transaction reference number (if available).
Result String Result of transaction: Approved, Declined, Error or Partial Approval.
ResultCode String Result code of transaction: A, D, E or P
IsDuplicate String "Y" indicates that a duplicate transaction was detected, the transaction was folded, and the details from the original transaction was returned.
Error String Error message if transaction was a decline or error
ErrorCode String Gateway error code
ProcRefNum String Backend processor reference number (if available)
AVS AvsResult Result of address verification (if manually keyed)
CVC CvcResult Result of card code verification (if manually keyed)
CreditCard CreditCard Information about the credit card used
Token String Reusable token to charge payment data in a new request

Address Class

Parameter Type Description
FirstName String
LastName String
Company String
Street String
Street2 String
City String
State String
PostalCode String
Country String
Phone String
Fax String

AmountDetail Class

The amount class provides a break down of the total charge amount (the Amount field in the TransactionRequest class);

Parameter Type Description
Tax String Total tax amount
NonTaxable String Set to "Y" to indicate that the transaction is non-taxable.
Cash String For debit, amount of cashback
Tip String Tip amount, only set if choosing not to prompt for tip on terminal
Discount String Amount of order level discount
Shipping String Shipping charges
Duty String Duty charges (for level 3 processing)
EnablePartialAuth bool Include this parameter to authorize partial funds when the full amount is not available. For example, if the total is $10 and the customer only has $5 in their account, $5 will be authorized. If not included in request, partial authorization defaults to disabled.

AvsResult Class

Result of the Address Verification System. This only applies to manually keyed transactions. Swiped, dipped and contactless transactions will not typically receive a result.

Parameter Type Description
Result String String describing the address verification result.
ResultCode String Short code representing result.

CvcResult Class

Result of the card verification code match. This only applies to manually keyed transactions.

Parameter Type Description
Result String String describing the card verification code result.
ResultCode String Short code representing result.

CreditCard Class

Information about the credit card that was used to run the transaction .

Parameter Type Description
Type String Brand of card: Visa, Mastercard, Amex, Discover
Number String The masked card number
CardHolder String The card holder name (if available)
EntryMode String How the payment method was entered: keyed, swiped, dipped, or tapped
CategoryCode String The card category code (if available)
AvsStreet String The avs street number if manually keyed
AvsPostalCode String The avs postal code if manually keyed
Verification String The method of customer verification (if available): signature, pin
Signature String The base64 encoded PNG of the signature image (if available)

MiddlewareException Class

Parameter Type Description
Message String Error message
ErrorCode String If the error is a server side error, this parameter will be set to the gateway ErrorCode.

Common Exceptions

ErrorCode Message Notes
21002 API authentication failed The api key or pin is incorrect. Also verify that the gateway host is the same as the one used to create the key. A sandbox key will not work in production.

.Net Change Log

v1.0.9 - 2018-04-17

v1.0.8 - 2017-08-25

v1.0.7 - 2017-08-15

v1.0.6 - 2017-05-16

v1.0.5 - 2017-02-21

v1.0.4 - 2017-02-15

v1.0.3 - 2017-02-03

v1.0.2 - 2017-01-17

v1.0.1 - 2017-01-11

Sample Code: C# .net

Rest Authorization Header

To authenticate with the rest API, you will need to set the authorization header:

Example

WebRequest request = (WebRequest)WebRequest.Create(url);
request.ContentType = " application/json;charset=utf-8";
request.Headers["Authorization"] = BuildAuthHeader();

Helper functions for the above code:

Example

private static String BuildAuthHeader(String key,  String pin)
{

        // create seed for hash
        String Seed = Guid.NewGuid().ToString();

        // create hash of apikey, seed and pin
        String Hash = GenerateHash(key + Seed + pin);

        // assemble auth string,  api key is the username,  hash is the password
        String authInfo = key + ":s2/" + Seed + "/" + Hash;
        authInfo = "Basic " + Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));

        return authInfo;
}

private static String GenerateHash(string input)
{
        // Create a new instance of the SHA256CryptoServiceProvider object.
        SHA256 shaHasher = SHA256.Create();

        // Convert the input string to a byte array and compute the hash.
        byte[] data = shaHasher.ComputeHash(Encoding.Default.GetBytes(input));

        // Create a new Stringbuilder to collect the bytes
        // and create a string.
        StringBuilder sBuilder = new StringBuilder();

        // Loop through each byte of the hashed data
        // and format each one as a hexadecimal string.
        for (int i = 0; i < data.Length; i++)
        {
                sBuilder.Append(data[i].ToString("x2"));
        }

        // Return the hexadecimal string.
        return sBuilder.ToString();
}

API Change Log

2018-03-19

2018-01-08

2017-08-28

2017-08-17

2017-01-17

Terminals

Castles MP200/MP200L

MP200

The MP200 combined with the PaymentEngine terminal software offers cutting edge payment acceptance solutions to a wide range of merchants. It can be used both as a mobile solution, paired via to Bluetooth to iOS or Android phones and tablets, and as a standalone wifi-based solution that can be integrated into virtually any desktop and browser based application.

Features

MP200 Main Menu

Settings

Connection Type Manage Wifi Rescan Wifi Mode Select Keypad Sound Off/On Unpair
Wifi Bluetooth USB Network name that you are currently connected to Rescan all networks that are available to connect Production or Sandbox When you press the number “5” on the keypad the sound will turn off/on This option is to unpair from the network that you are currently connected to

Device Information

Mode Build Deployment Device Key Wi-Fi
Production or Sandbox Current version that the device is running on USAePay Specific key associated with the device Network that you are currently connected to

Anatomy of the MP200

Screenshot Screenshot Screenshot Screenshot

Pairing Device (iOS)

When using the MP200 with a iOS mobile application that implements the middleware library, the merchants mobile device will communicate with MP200 via a Bluetooth connection. The following steps must be followed to pair the MP200 with the iOS device. Note: If the Castles MP200 device is to be used with multiple phones/tablets then the MP200 device must be unpaired from any unused mobile devices.

  1. On the MP200 device press and hold the Bluetooth button until the device requests PIN
  2. Go to iPhone/iPad Settings-->Bluetooth-->Enable Bluetooth-->Select the MP200 device
  3. If you have multiple MP200 devices, find the last 4 digits of the S/N (serial number) on the back of the MP200. See below. castleBackImg
  4. In our case, we would select MP200-1793 from the iPhone/iPad. IMG_0009
  5. Once the device connects to the MP200, a PIN will pop up on the mobile device screen. See below. IMG_0010
  6. Enter the pin into the MP200.
  7. Wait until the MP200 displays a green check mark and "OK." On your phone/tablet you should see the MP200 is "Connected," as shown below. IMG_0011

Pairing Device (Payment Engine)

  1. On the MP200 device press and hold the Wi-Fi button until you hear the second beep sound.
  2. You will then be shown a list of available Wi-Fi networks that are in range of the MP200.
  3. Scroll to the network that you want to connect to and press the green key again.
  4. The device will then prompt you for the password for that network. Use the keys to enter letters and numbers by pressing the key repeatedly to scroll through the available characters for that key.
  5. When completed, give the device around thirty seconds to connect with the Wi-Fi network. The Wi-Fi indicator will change from a Wi-Fi symbol with an exclamation mark to showing the Wi-Fi signal strength.

Device Manager

  1. To access the Device Manager, click on ‘Settings’ from your side menu bar then select ‘Device Manager’ on the drop down menu. Screenshot
  2. A source key must be added first to connect your device (CASTLES MP200). Go to ‘Settings’ from your side menu bar and then select ‘API Keys’ on the drop down menu. Click on 'Add API Key' to add a new source key.
  3. After a source key has been generated, return to the Device Manager section under Settings. Click on the 'Add' button to add a new Device. The following screen will appear to register device: Screenshot
  4. Enter the Device’s Name and select the Source Key from the drop down menu as shown below. Please Note: Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out. Screenshot Once the Device Name and Source Key have been selected, click on 'Register'. The Merchant Console will then generate a pairing code to pair your device to the Merchant Console. Screenshot The CASTLES MP200 device will then ask you to enter the pairing code (shown in the Merchant Console): Screenshot
  5. Once the pairing code has been entered, your device should be connected. The green icon in the top right of the box indicates that the device is connected. Screenshot
  6. Device Options: Click on the device to view the device’s settings. The following page with the device’s information and options will appear: Screenshot
  7. Now that a device is connected to your Merchant Console, the Simple Charge option will appear under the ‘Transactions’ section of the Console. Screenshot When you click on Simple Charge in the side menu, you can either enter the information manually or use your device to process the card. Click on "Manual" to reveal the drop down menu and select from the devices connected. Screenshot After all information has been entered, click on 'Process Charge' to process the transaction.

Firmware Change Log

Build 0054

Build 0053

Build 0052

Build 0051

Build 0050

Build 0049

%amount_detail%

Parameter Name Type Description
subtotal double This field is optional, but if it is sent, it must be consistent with the following equation: amount = subtotal - discount + shipping + duty + tax + tip.
tax double The amount of tax collected.
nontaxable bool Transaction is non taxable (Y/N)
tip double Amount of tip collected.
discount double Amount of discount applied to total transaction.
shipping double Amount of shipping fees collected.
duty double Amount of duty collected.
enable_partialauth bool Enable partial amount authorization. If the available card balance is less than the amount request, the balance will be authorized and the POS must prompt the customer for another payment to cover the remainder. The result_code will be "P" and auth_amount will contain the partial amount that was approved.

%billing_address%

Parameter Name Type Description
company string Company or Organization Name
firstname string First name associated with billing address
lastname string Last name associated with billing address
street string Primary street number/address information. (i.e. 1234 Main Street)
street2 string Additional address information such as apartment number, building number, suite information, etc.
city string Billing city
state string Two-letter State abbreviation or full state name.
postalcode string Zip code
country string Three-letter country code. See full list here
phone string The phone number associated with a billing address. The preferred format is to eliminate all non-numeric characters, but any standard formatting is accepted.
fax string The fax number associated with a billing address. The preferred format is to eliminate all non-numeric characters, but any standard formatting is accepted.

%custom_fields%

Parameter Name Type Description
1 string Optional fields for storing custom data. Character Limit: 255
2 string Optional fields for storing custom data. Character Limit: 255
3 string Optional fields for storing custom data. Character Limit: 255
...
19 string Optional fields for storing custom data. Character Limit: 255
20 string Optional fields for storing custom data. Character Limit: 255

%custom_flow%

Parameter Name Description
options Custom screen for add ons and tips. Must be FIRST in list.
payment Payment taking screen (must come before result).
amount Optional confirmation of amount (must come before result).
result Displays the transaction result.
signature Signature capture (must come after result).
signature_required Signature capture. If the signature is cancelled, then the transaction will be cancelled (must come after result).

%custom_options%

Parameter Name Type Description
type String The type of option 'AddOn' or 'Tip'
display String Text to be displayed on screen. ('AddOn' or 'Tip')
sku String SKU to be used for any AddOn option selected. ('AddOn')
denominations array Array of up to 4 options presented to the user. ('AddOn' or 'Tip')
--- --- ---
Parameter Name Type - Description
display String - Text to display for option. ('AddOn' or 'Tip')
sku String - Option specific SKU to be used if option is selected. ('AddOn')
amount String - Amount to add to transaction if option is selected. ('AddOn' or 'Tip')
amount_other Boolean - Special Flag to trigger custom amount entry by user if selected. If set ignores amount field. ('AddOn' or 'Tip')
amount_min String - Minimum amount to allow use to enter if amount_other. ('AddOn' or 'Tip')
amount_max String - Maximum amount to allow use to enter if amount_other. ('AddOn' or 'Tip')

%lineitems%

Parameter Name Type Description
product_key string Gateway generated unique product identifier. Will only be included if the line item is a product from the database.
name string Product name. (Required)
cost double Cost of line item. (Required)
qty integer Quantity of products. (Required)
description string Line item description.
sku string This is the product’s Stock Keeping Unit number.
taxable bool Denotes if line item is taxable.
tax_amount currency Tax amount that should be applied to line item price.
tax_rate string Tax percentage that should be applied to line item amount.
discount_rate string Discount percentage that should be applied to line item amount.
discount_amount double Discount amount that should be applied to line item amount.
location_key string Unique identifier for warehouse location.
commodity_code string Commodity code for product.
um string Unit of measure (Required for Level 3 processing)

%settings%

Parameter Name Type Description
timeout Transaction timeout, how long to wait for transaction authorization to complete.
enable_standalone Allows transactions to be initiated from terminal (if supported).
share_device If true, this allows the payment device to be used by other merchants. If false, only the merchant associated with the apikeyid may send transactions to device.
notify_update If true, device will be notified on all future updates
notify_update_next If true, device will be notified only on the next update. After notification, this is automatically set back to false.
sleep_battery_device This is the amount of inactive time (in minutes) before the device enters full sleep if it is running on battery. If in full sleep, you will need to turn the device on again before processing. Wifi and Bluetooth pairing should persist, even after full sleep. Set to '0' to never sleep.
sleep_battery_display This is the amount of inactive time (in minutes) before the device enters display sleep if it is running on battery. If in display sleep, just send a transaction to the device or tap any button to wake the device. Set to '0' to never sleep.
sleep_powered_device This is the amount of inactive time (in minutes) before the device enters full sleep if it is plugged into power. If in full sleep, you will need to turn the device on again before processing. Wifi and Bluetooth pairing should persist, even after full sleep. Set to '0' to never sleep.
sleep_powered_display This is the amount of inactive time (in minutes) before the device enters display sleep if it is plugged into power. If in display sleep, just send a transaction to the device or tap any button to wake the device. Set to '0' to never sleep.

%shipping_address%

Parameter Name Type Description
company string Company or Organization Name
firstname string First name
lastname string Last name
street string Primary street number/address information. (i.e. 1234 Main Street)
street2 string Additional address information such as apartment number, building number, suite information, etc...
city string Shipping City
state string Two-letter State abbreviation or full state name.
postalcode integer Zip code
country string Three-letter country code. See full list here
phone string The phone number associated with a shipping address. The preferred format is to eliminate all non-numeric characters, but any standard formatting is accepted.

%terminal_config%

Parameter Name Type Description
device_name String Name of device, should be "MP200".
enable_emv boolean Enables EMV processing.
enable_debit_msr boolean Enables PIN debit for swiped transactions.
enable_tip_adjust boolean Allows EMV transaction amounts to be adjusted after authorization (to add tip). Disables PIN authentication.
enable_contactless boolean Enables NFC reader.

%terminal_info%

Parameter Name Type Description
make Manufacturer
model Device model
revision Hardware version number
serial Device serial number
key_pin Device PIN encryption key. Only necessary if merchant will be processing transactions with a PIN.
key_pan Device PAN encryption key.

%CVMRESULT%

Constant Description
FAIL_CVM Indicates the CMV failed.
NO_CVM_REQ Indicates the CVM is not required.
PIN_OFFLINE_ENCR Indicates the PIN was verified offline and encrypted.
PIN_OFFLINE_PLAIN Indicates the PIN was verified offline in plaintext.
PIN_ONLINE Indicates the PIN was verified online.
SIGNATURE_REQ Indicates that a signature is required.

%UE_ERROR%

Constant Description
ALREADY_STARTED
BAD_SWIPE MP200 received bad swipe. Transaction will be aborted, retry.
GATEWAY_401_UNAUTHORIZED
GATEWAY_CONNECTION_ERROR The connection to the gateway failed.
GENERAL_EXCEPTION_CAUGHT Exception from Exception class caught, stack trace printed, report this error.
HANDLED These errors go out to the user.
INVALID_AMOUNT The amount entered was invalid.
INVALID_MAG_STRIPE The transaction was terminated because a bad mag swipe was retried 3 times.
INVALID_TERMINAL_CONFIG
INVALID_UPDATE_PARAMETER
LOW_BATTERY Low battery, plug in the MP200.
MP200_COMMAND_TIMEOUT Command to MP200 timed out, transaction will abort, retry.
NO_BT_DEVICE No BT(bluetooth) device was found, check BT settings.
NO_DEVICES_FOUND
NO_ERROR
NOT_CONNECTED The device is not in the connected state to execute this function.
NOT_ENOUGH_SPACE_FOR_UPDATE Free up memory in the app cache directory.
TIMEOUT_GATEWAY Timeout has occurred between gateway.
TRANSACTION_CANCEL_BUTTON The transaction was cancelled by pressing the cancel button.
TRANSACTION_CARD_ERROR
TRANSACTION_CARD_REMOVED
TRANSACTION_INVALID_PIN Transaction was terminated because of an invalid PIN.
TRANSACTION_REQUESTS_CHANGE_INTERFACE This will also fire a delegate to change interface.
UNHANDLED_ERROR Unhandled Error, please report this.
UNHANDLED_EXCEPTION
UNHANDLED_EXCEPTION_CAUGHT
UPDATE_COMPLETE
UPDATE_FAILED An error occurred during the update process causing it to fail.
USB_CONNECTION_CLOSED USB Connection has been closed, reconnect.
USER_INPUT_EXCEPTION

%holdTransInfo%

Key Description
command Processing command, in this case it will be "adjust".
amount Total amount of the transaction including tips
tip The amount to tip
refNum The refNum of the transaction for which you are adjusting.

%holdCaptureInfo%

Key Description
command Processing command, in this case it will be "capture".
amount Total amount of the transaction for which you are capturing the signature.
refNum The refNum of the transaction for which you are capturing the signature.
signature The base64Encoded string of the image.

%signatureDict%

Key Description
command Processing command, in this case it will be "capture".
amount Total amount of the transaction for which you are capturing the signature.
refNum The refNum of the transaction for which you are capturing the signature.
signature The base64Encoded string of the image.

%custom_flow%

Parameter Name Description
options Custom screen for add ons and tips. Must be FIRST in list.
payment Payment taking screen (must come before result).
amount Optional confirmation of amount (must come before result).
result Displays the transaction result.
signature Signature capture (must come after result).
signature_required Signature capture. If the signature is cancelled, then the transaction will be cancelled (must come after result).

%custom_flow%

Parameter Name Description
options Custom screen for add ons and tips. Must be FIRST in list.
payment Payment taking screen (must come before result).
amount Optional confirmation of amount (must come before result).
result Displays the transaction result.
signature Signature capture (must come after result).
signature_required Signature capture. If the signature is cancelled, then the transaction will be cancelled (must come after result).

%data%

Parameter Name Type Description
type string Object type. This will always be device.
key string Unique device identifier
apikeyid string The id of API key (source key) associated with the device.
terminal_type string Terminal type: "standalone" for payment engine cloud based terminal.
status string Current device status
name string Developer assigned device name. Device name can contain letters, numbers, spaces, and dashes. All other characters will be filtered out.
settings object Device settings
terminal_info object Details of terminal
terminal_config object Terminal configuration
pairing_code string If terminal type is 'standalone', this is the pairing code required to pair the payment device with the payment engine.
expiration string If terminal type is 'standalone', the expiration is the date/time that the pairing code is no longer valid.

%Address%

Parameter Type Description
FirstName String
LastName String
Company String
Street String
Street2 String
City String
State String
PostalCode String
Country String
Phone String
Fax String

%AmountDetail%

Parameter Name Type Description
Tax String Total tax amount
NonTaxable String Set to "Y" to indicate that the transaction is non-taxable.
Cash String For debit, amount of cashback
Tip String Tip amount, only set if choosing not to prompt for tip on terminal
Discount String Amount of order level discount
Shipping String Shipping charges
Duty String Duty charges (for level 3 processing)
EnablePartialAuth bool Include this parameter to authorize partial funds when the full amount is not available. For example, if the total is $10 and the customer only has $5 in their account, $5 will be authorized. If not included in request, partial authorization defaults to disabled.

%TransactionRequest%

Parameter Type Description
DeviceKey String Unique identifier for the terminal that the transaction will be sent to.
Command String Payment command to run. Supported commands are: cc:sale, cc:authonly and cc:refund
Amount String Amount to process payment for. This should be the final amount (unless choosing to allow terminal to prompt for tip and cashback).
AmountDetail AmountDetail Class Detailed breakdown of the above total Amount.
PoNum String Purchase order number, only required for corporate cards.
Invoice String Invoice number, only first 10 digits are sent to platform
OrderID String Order identifier, alpha numeric
Description String Transaction description (visible to customer on receipt)
Comments String Internal transaction comments (visible only to merchant)
RestaurantTable String Table number
Clerk String Clerk/Cashier name
BillingAddress address Billing address information
ShippingAddress address Shipping address information
CustomerEmail String Customer email address
CustomerID String Customer ID
ClientIP String IP address of customer, useful if request is initiated from a server.
GeoLocation String Latitude and longitude to record for transaction. Example: "40.7142700,-74.0059700"
LineItems LineItem[] Array of line item details
ManualKey Boolean Set to true to have the terminal prompt for manual card number entry instead of swipe/dip
PromptTip Boolean Set to true to have the terminal prompt the customer for a tip amount.
PromptCashBack Boolean Set to true to have the terminal prompt the customer for cash back.
PromptSignature Boolean Set to false to prevent the terminal from capturing the customer signature. If the terminal supports signature capture, it will be on by default.
CustomFlow String Optional string that controls the sequence of screens presented to the customer during payment. Leave blank to use the default flow. Example: "amount,payment,result"
SaveCard Boolean Set to true to save the payment data to the customer record
Timeout Integer Set the transaction timeout
BlockOffline Boolean Set to true to have the request refused if the device is currently offline

%TransactionResult%

Parameter Type Description
TransactionKey String Unique identifier for transaction. Can be used to perform actions such as refund and void on a transaction.
RefNum String Numeric sequential transaction reference number. Can be used with older gateway APIs.
AuthAmount String Authroized amount returned from processor.
AuthCode String AuthCode returned from processor.
ProcRefNum String Processor generated transaction reference number (if available).
Result String Result of transaction: Approved, Declined, Error or Partial Approval.
ResultCode String Result code of transaction: A, D, E or P
IsDuplicate String "Y" indicates that a duplicate transaction was detected, the transaction was folded, and the details from the original transaction was returned.
Error String Error message if transaction was a decline or error
ErrorCode String Gateway error code
ProcRefNum String Backend processor reference number (if available)
AVS AvsResult Result of address verification (if manually keyed)
CVC CvcResult Result of card code verification (if manually keyed)
CreditCard CreditCard Information about the credit card used
Token String Reuasable token to charge payment data in a new request

%TerminalConfig%

Parameter Type Description
EnableEMV bool Enable the smart card slot for EMV processing
EnableDebitMSR bool Enable swiped PIN debit transactions
EnableContactless bool Enable the contactless reader for NFC transactions
TipAdjustAfterAuth bool Allow addition of tip after initial authorization. Disables PIN CVM and No CVM.

%DeviceDetails%

Parameter Type Description
Make String Device manufacturer
Model String Model name of terminal
Revision String Firmware version
Serial String Serial number

%DeviceSettings%

Parameter Type Description
Timeout int Sets transaction timeout in seconds.
EnableStandalone bool Allows transactions to be initiated by terminal.
ShareDevice bool Allows terminal to be used by any API key including those belonging to other merchants.

@GET/batches/:batch_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["batch_key"\]="Example_batch_key";

var response = USAePay.API.Batches.Get(request);

@GET/batches/:batch_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="batch";
response\["key"\]="ft1m9m5p9wgd9mb";
response\["opened"\]="2019-01-28 17:02:22";
response\["status"\]="closed";
response\["closed"\]="2019-01-28 17:02:36";
response\["scheduled"\]="2019-01-28 17:02:36";
response\["total_amount"\]="3042.48";
response\["total_count"\]="29";
response\["sales_amount"\]="4755.48";
response\["sales_count"\]="18";
response\["voids_amount"\]="17.99";
response\["voids_count"\]="1";
response\["refunds_amount"\]="1713";
response\["refunds_count"\]="10";

@GET/batches@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="52";
request\["offset"\]="76";
request\["openedlt"\]="67";
request\["openedgt"\]="9";
request\["closedlt"\]="45";
request\["closedgt"\]="67";
request\["openedle"\]="48";
request\["openedge"\]="45";
request\["closedle"\]="21";
request\["closedge"\]="38";

var response = USAePay.API.Batches.Get(request);

@GET/batches@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="batch";
        dataItem\["key"\]="ft1m9m5p9wgd9mb";
        dataItem\["batchnum"\]="2412";
        dataItem\["opened"\]="2018-11-24 11:02:02";
        dataItem\["closed"\]="2018-11-24 12:01:01";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="1";

@GET/batches/current@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Batches.Current.Get(request);

@GET/batches/current@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="batch";
response\["key"\]="ft1m9m5p9wgd9mb";
response\["opened"\]="2019-01-28 17:02:22";
response\["status"\]="closed";
response\["closed"\]="2019-01-28 17:02:36";
response\["scheduled"\]="2019-01-28 17:02:36";
response\["total_amount"\]="3042.48";
response\["total_count"\]="29";
response\["sales_amount"\]="4755.48";
response\["sales_count"\]="18";
response\["voids_amount"\]="17.99";
response\["voids_count"\]="1";
response\["refunds_amount"\]="1713";
response\["refunds_count"\]="10";

@GET/batches/:batch_key:/transactions@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["batch_key"\]="Example_batch_key";
request\["limit"\]="44";
request\["offset"\]="71";
request\["return_bin"\]="4";

var response = USAePay.API.Batches.Transactions.Get(request);

@GET/batches/:batch_key:/transactions@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="20";
response\["offset"\]="0";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="transaction";
        dataItem\["key"\]="dnfwxwhz5kvnbgb";
        dataItem\["refnum"\]="100061";
        dataItem\["created"\]="2018-12-04 10:48:44";
        dataItem\["trantype_code"\]="S";
        dataItem\["trantype"\]="Credit Card Sale";
        dataItem\["result_code"\]="A";
        dataItem\["result"\]="Approved";
        dataItem\["error_code"\]="12";
        dataItem\["error"\]="Card Number was not between 13 and 16 digits";
        dataItem\["authcode"\]="314407";
        dataItem\["status_code"\]="P";
        dataItem\["status"\]="Authorized (Pending Settlement)";
        dataItem\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        dataItem\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        dataItem\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        dataItem\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        dataItem\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        dataItem\["batch"\]="batch";
        dataItem\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        dataItem\["amount_detail"\]="amount_detail";
        dataItem\["ponum"\]="af416fsd5";
        dataItem\["invoice"\]="98454685";
        dataItem\["orderid"\]="98454685";
        dataItem\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        dataItem\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        dataItem\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
                lineitemsItem\["name"\]="Antique Pensieve";
                lineitemsItem\["description"\]="See into your past...";
                lineitemsItem\["size"\]="Large";
                lineitemsItem\["color"\]="Bronze";
                lineitemsItem\["cost"\]="450.00";
                lineitemsItem\["list_price"\]="500.00";
                lineitemsItem\["qty"\]="1";
                lineitemsItem\["sku"\]="68453423";
                lineitemsItem\["commoditycode"\]="535";
                lineitemsItem\["discountamount"\]="0";
                lineitemsItem\["discountrate"\]="0";
                lineitemsItem\["taxable"\]="";
                lineitemsItem\["taxamount"\]="45.00";
                lineitemsItem\["taxclass"\]="NA";
                lineitemsItem\["taxrate"\]="10";
                lineitemsItem\["um"\]="EA";
                lineitemsItem\["category"\]="Antiques";
                lineitemsItem\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem);
                IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
                lineitemsItem1\["name"\]="Antique Pensieve";
                lineitemsItem1\["description"\]="See into your past...";
                lineitemsItem1\["size"\]="Large";
                lineitemsItem1\["color"\]="Bronze";
                lineitemsItem1\["cost"\]="450.00";
                lineitemsItem1\["list_price"\]="500.00";
                lineitemsItem1\["qty"\]="1";
                lineitemsItem1\["sku"\]="68453423";
                lineitemsItem1\["commoditycode"\]="535";
                lineitemsItem1\["discountamount"\]="0";
                lineitemsItem1\["discountrate"\]="0";
                lineitemsItem1\["taxable"\]="";
                lineitemsItem1\["taxamount"\]="45.00";
                lineitemsItem1\["taxclass"\]="NA";
                lineitemsItem1\["taxrate"\]="10";
                lineitemsItem1\["um"\]="EA";
                lineitemsItem1\["category"\]="Antiques";
                lineitemsItem1\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem1);
        dataItem\["lineitems"\]="lineitems";
        dataItem\["comments"\]="Powerful magical object. Use with caution.";
        dataItem\["tranterm"\]="multilane";
        dataItem\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        dataItem\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        dataItem\["customer"\]="customer";
        dataItem\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        dataItem\["bin"\]="bin";
        dataItem\["clientip"\]="Madame Malkin";
        dataItem\["source_name"\]="Madame Malkin";
    data.Add(dataItem);
        IDictionary<string, object> dataItem2 = new Dictionary<string, object>();
        dataItem2\["type"\]="transaction";
        dataItem2\["key"\]="dnfwxwhz5kvnbgb";
        dataItem2\["refnum"\]="100061";
        dataItem2\["created"\]="2018-12-04 10:48:44";
        dataItem2\["trantype_code"\]="S";
        dataItem2\["trantype"\]="Credit Card Sale";
        dataItem2\["result_code"\]="A";
        dataItem2\["result"\]="Approved";
        dataItem2\["error_code"\]="12";
        dataItem2\["error"\]="Card Number was not between 13 and 16 digits";
        dataItem2\["authcode"\]="314407";
        dataItem2\["status_code"\]="P";
        dataItem2\["status"\]="Authorized (Pending Settlement)";
        dataItem2\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        dataItem2\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        dataItem2\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        dataItem2\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        dataItem2\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        dataItem2\["batch"\]="batch";
        dataItem2\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        dataItem2\["amount_detail"\]="amount_detail";
        dataItem2\["ponum"\]="af416fsd5";
        dataItem2\["invoice"\]="98454685";
        dataItem2\["orderid"\]="98454685";
        dataItem2\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        dataItem2\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        dataItem2\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem3 = new Dictionary<string, object>();
                lineitemsItem3\["name"\]="Antique Pensieve";
                lineitemsItem3\["description"\]="See into your past...";
                lineitemsItem3\["size"\]="Large";
                lineitemsItem3\["color"\]="Bronze";
                lineitemsItem3\["cost"\]="450.00";
                lineitemsItem3\["list_price"\]="500.00";
                lineitemsItem3\["qty"\]="1";
                lineitemsItem3\["sku"\]="68453423";
                lineitemsItem3\["commoditycode"\]="535";
                lineitemsItem3\["discountamount"\]="0";
                lineitemsItem3\["discountrate"\]="0";
                lineitemsItem3\["taxable"\]="";
                lineitemsItem3\["taxamount"\]="45.00";
                lineitemsItem3\["taxclass"\]="NA";
                lineitemsItem3\["taxrate"\]="10";
                lineitemsItem3\["um"\]="EA";
                lineitemsItem3\["category"\]="Antiques";
                lineitemsItem3\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem3);
                IDictionary<string, object> lineitemsItem4 = new Dictionary<string, object>();
                lineitemsItem4\["name"\]="Antique Pensieve";
                lineitemsItem4\["description"\]="See into your past...";
                lineitemsItem4\["size"\]="Large";
                lineitemsItem4\["color"\]="Bronze";
                lineitemsItem4\["cost"\]="450.00";
                lineitemsItem4\["list_price"\]="500.00";
                lineitemsItem4\["qty"\]="1";
                lineitemsItem4\["sku"\]="68453423";
                lineitemsItem4\["commoditycode"\]="535";
                lineitemsItem4\["discountamount"\]="0";
                lineitemsItem4\["discountrate"\]="0";
                lineitemsItem4\["taxable"\]="";
                lineitemsItem4\["taxamount"\]="45.00";
                lineitemsItem4\["taxclass"\]="NA";
                lineitemsItem4\["taxrate"\]="10";
                lineitemsItem4\["um"\]="EA";
                lineitemsItem4\["category"\]="Antiques";
                lineitemsItem4\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem4);
        dataItem2\["lineitems"\]="lineitems";
        dataItem2\["comments"\]="Powerful magical object. Use with caution.";
        dataItem2\["tranterm"\]="multilane";
        dataItem2\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        dataItem2\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        dataItem2\["customer"\]="customer";
        dataItem2\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        dataItem2\["bin"\]="bin";
        dataItem2\["clientip"\]="Madame Malkin";
        dataItem2\["source_name"\]="Madame Malkin";
    data.Add(dataItem2);
response\["data"\]="data";
response\["total"\]="1";

@GET/batches/current/transactions@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="93";
request\["offset"\]="70";
request\["return_bin"\]="85";

var response = USAePay.API.Batches.Current.Transactions.Get(request);

@GET/batches/current/transactions@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="20";
response\["offset"\]="0";
    IList<IDictionary<string, object>> data23 = new List<IDictionary<string, object>>();
        IDictionary<string, object> data23Item = new Dictionary<string, object>();
        data23Item\["type"\]="transaction";
        data23Item\["key"\]="dnfwxwhz5kvnbgb";
        data23Item\["refnum"\]="100061";
        data23Item\["created"\]="2018-12-04 10:48:44";
        data23Item\["trantype_code"\]="S";
        data23Item\["trantype"\]="Credit Card Sale";
        data23Item\["result_code"\]="A";
        data23Item\["result"\]="Approved";
        data23Item\["error_code"\]="12";
        data23Item\["error"\]="Card Number was not between 13 and 16 digits";
        data23Item\["authcode"\]="314407";
        data23Item\["status_code"\]="P";
        data23Item\["status"\]="Authorized (Pending Settlement)";
        data23Item\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        data23Item\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        data23Item\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        data23Item\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        data23Item\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        data23Item\["batch"\]="batch";
        data23Item\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        data23Item\["amount_detail"\]="amount_detail";
        data23Item\["ponum"\]="af416fsd5";
        data23Item\["invoice"\]="98454685";
        data23Item\["orderid"\]="98454685";
        data23Item\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        data23Item\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        data23Item\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
                lineitemsItem\["name"\]="Antique Pensieve";
                lineitemsItem\["description"\]="See into your past...";
                lineitemsItem\["size"\]="Large";
                lineitemsItem\["color"\]="Bronze";
                lineitemsItem\["cost"\]="450.00";
                lineitemsItem\["list_price"\]="500.00";
                lineitemsItem\["qty"\]="1";
                lineitemsItem\["sku"\]="68453423";
                lineitemsItem\["commoditycode"\]="535";
                lineitemsItem\["discountamount"\]="0";
                lineitemsItem\["discountrate"\]="0";
                lineitemsItem\["taxable"\]="";
                lineitemsItem\["taxamount"\]="45.00";
                lineitemsItem\["taxclass"\]="NA";
                lineitemsItem\["taxrate"\]="10";
                lineitemsItem\["um"\]="EA";
                lineitemsItem\["category"\]="Antiques";
                lineitemsItem\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem);
                IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
                lineitemsItem1\["name"\]="Antique Pensieve";
                lineitemsItem1\["description"\]="See into your past...";
                lineitemsItem1\["size"\]="Large";
                lineitemsItem1\["color"\]="Bronze";
                lineitemsItem1\["cost"\]="450.00";
                lineitemsItem1\["list_price"\]="500.00";
                lineitemsItem1\["qty"\]="1";
                lineitemsItem1\["sku"\]="68453423";
                lineitemsItem1\["commoditycode"\]="535";
                lineitemsItem1\["discountamount"\]="0";
                lineitemsItem1\["discountrate"\]="0";
                lineitemsItem1\["taxable"\]="";
                lineitemsItem1\["taxamount"\]="45.00";
                lineitemsItem1\["taxclass"\]="NA";
                lineitemsItem1\["taxrate"\]="10";
                lineitemsItem1\["um"\]="EA";
                lineitemsItem1\["category"\]="Antiques";
                lineitemsItem1\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem1);
        data23Item\["lineitems"\]="lineitems";
        data23Item\["comments"\]="Powerful magical object. Use with caution.";
        data23Item\["tranterm"\]="multilane";
        data23Item\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        data23Item\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        data23Item\["customer"\]="customer";
        data23Item\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        data23Item\["bin"\]="bin";
        data23Item\["clientip"\]="Madame Malkin";
        data23Item\["source_name"\]="Madame Malkin";
    data23.Add(data23Item);
        IDictionary<string, object> data23Item2 = new Dictionary<string, object>();
        data23Item2\["type"\]="transaction";
        data23Item2\["key"\]="dnfwxwhz5kvnbgb";
        data23Item2\["refnum"\]="100061";
        data23Item2\["created"\]="2018-12-04 10:48:44";
        data23Item2\["trantype_code"\]="S";
        data23Item2\["trantype"\]="Credit Card Sale";
        data23Item2\["result_code"\]="A";
        data23Item2\["result"\]="Approved";
        data23Item2\["error_code"\]="12";
        data23Item2\["error"\]="Card Number was not between 13 and 16 digits";
        data23Item2\["authcode"\]="314407";
        data23Item2\["status_code"\]="P";
        data23Item2\["status"\]="Authorized (Pending Settlement)";
        data23Item2\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        data23Item2\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        data23Item2\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        data23Item2\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        data23Item2\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        data23Item2\["batch"\]="batch";
        data23Item2\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        data23Item2\["amount_detail"\]="amount_detail";
        data23Item2\["ponum"\]="af416fsd5";
        data23Item2\["invoice"\]="98454685";
        data23Item2\["orderid"\]="98454685";
        data23Item2\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        data23Item2\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        data23Item2\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem3 = new Dictionary<string, object>();
                lineitemsItem3\["name"\]="Antique Pensieve";
                lineitemsItem3\["description"\]="See into your past...";
                lineitemsItem3\["size"\]="Large";
                lineitemsItem3\["color"\]="Bronze";
                lineitemsItem3\["cost"\]="450.00";
                lineitemsItem3\["list_price"\]="500.00";
                lineitemsItem3\["qty"\]="1";
                lineitemsItem3\["sku"\]="68453423";
                lineitemsItem3\["commoditycode"\]="535";
                lineitemsItem3\["discountamount"\]="0";
                lineitemsItem3\["discountrate"\]="0";
                lineitemsItem3\["taxable"\]="";
                lineitemsItem3\["taxamount"\]="45.00";
                lineitemsItem3\["taxclass"\]="NA";
                lineitemsItem3\["taxrate"\]="10";
                lineitemsItem3\["um"\]="EA";
                lineitemsItem3\["category"\]="Antiques";
                lineitemsItem3\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem3);
                IDictionary<string, object> lineitemsItem4 = new Dictionary<string, object>();
                lineitemsItem4\["name"\]="Antique Pensieve";
                lineitemsItem4\["description"\]="See into your past...";
                lineitemsItem4\["size"\]="Large";
                lineitemsItem4\["color"\]="Bronze";
                lineitemsItem4\["cost"\]="450.00";
                lineitemsItem4\["list_price"\]="500.00";
                lineitemsItem4\["qty"\]="1";
                lineitemsItem4\["sku"\]="68453423";
                lineitemsItem4\["commoditycode"\]="535";
                lineitemsItem4\["discountamount"\]="0";
                lineitemsItem4\["discountrate"\]="0";
                lineitemsItem4\["taxable"\]="";
                lineitemsItem4\["taxamount"\]="45.00";
                lineitemsItem4\["taxclass"\]="NA";
                lineitemsItem4\["taxrate"\]="10";
                lineitemsItem4\["um"\]="EA";
                lineitemsItem4\["category"\]="Antiques";
                lineitemsItem4\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem4);
        data23Item2\["lineitems"\]="lineitems";
        data23Item2\["comments"\]="Powerful magical object. Use with caution.";
        data23Item2\["tranterm"\]="multilane";
        data23Item2\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        data23Item2\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        data23Item2\["customer"\]="customer";
        data23Item2\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        data23Item2\["bin"\]="bin";
        data23Item2\["clientip"\]="Madame Malkin";
        data23Item2\["source_name"\]="Madame Malkin";
    data23.Add(data23Item2);
response\["data23"\]="data23";
response\["total"\]="1";

@POST/batches/current/close@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Batches.Current.Close.Post(request);

@POST/batches/current/close@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="batch";
response\["key"\]="ft1m9m5p9wgd9mb";
response\["batchnum"\]="2412";
response\["opened"\]="2018-11-24 11:02:02";
response\["closed"\]="2018-11-24 12:01:01";

@GET/customers/:custkey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";

var response = USAePay.API.Customers.Get(request);

@GET/customers/:custkey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="customer";
response\["key"\]="nsds9yd1h5kb9y5h";
response\["custid"\]="123456";
response\["company"\]="Weasleys Wizard Wheezes";
response\["first_name"\]="George";
response\["last_name"\]="Weasley";
response\["description"\]="Mischief Managed.";
    IList<IDictionary<string, object>> payment_methods = new List<IDictionary<string, object>>();
        IDictionary<string, object> payment_methodsItem = new Dictionary<string, object>();
        payment_methodsItem\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem\["type"\]="customerpaymentmethod";
        payment_methodsItem\["method_name"\]="Example method";
        payment_methodsItem\["cardholder"\]="Testor Jones";
        payment_methodsItem\["expiration"\]="0426"
        payment_methodsItem\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem);
        IDictionary<string, object> payment_methodsItem1 = new Dictionary<string, object>();
        payment_methodsItem1\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem1\["type"\]="customerpaymentmethod";
        payment_methodsItem1\["method_name"\]="Example method";
        payment_methodsItem1\["cardholder"\]="Testor Jones";
        payment_methodsItem1\["expiration"\]="0426"
        payment_methodsItem1\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem1\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem1);
response\["payment_methods"\]="payment_methods";
    IList<IDictionary<string, object>> billing_schedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> billing_schedulesItem = new Dictionary<string, object>();
        billing_schedulesItem\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["type"\]="billingschedulerule";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem2 = new Dictionary<string, object>();
                rulesItem2\["type"\]="billingschedulerule";
            rules.Add(rulesItem2);
        billing_schedulesItem\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem);
        IDictionary<string, object> billing_schedulesItem3 = new Dictionary<string, object>();
        billing_schedulesItem3\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem4 = new Dictionary<string, object>();
                rulesItem4\["type"\]="billingschedulerule";
            rules.Add(rulesItem4);
                IDictionary<string, object> rulesItem5 = new Dictionary<string, object>();
                rulesItem5\["type"\]="billingschedulerule";
            rules.Add(rulesItem5);
        billing_schedulesItem3\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem3);
response\["billing_schedules"\]="billing_schedules";

@GET/customers@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="1";
request\["offset"\]="77";

var response = USAePay.API.Customers.Get(request);

@GET/customers@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="customer";
        dataItem\["key"\]="nsds9yd1h5kb9y5h";
        dataItem\["custid"\]="123456";
        dataItem\["company"\]="Weasleys Wizard Wheezes";
        dataItem\["first_name"\]="George";
        dataItem\["last_name"\]="Weasley";
        dataItem\["address"\]="93 Diagon Alley";
        dataItem\["address2"\]="Apartment 2";
        dataItem\["city"\]="London";
        dataItem\["state"\]="Greater London";
        dataItem\["postalcode"\]="WC2H 0AW";
        dataItem\["country"\]="Great Britain";
        dataItem\["phone"\]="747-3733";
        dataItem\["fax"\]="584-4537";
        dataItem\["email"\]="noreply@mugglenet.com";
        dataItem\["url"\]="https://www.pottermore.com/";
        dataItem\["notes"\]="Born on April fools day.";
        dataItem\["description"\]="Mischief Managed.";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="1";

@POST/customers@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custid"\]="123456";
request\["company"\]="Weasleys Wizard Wheezes";
request\["first_name"\]="George";
request\["last_name"\]="Weasley";
request\["description"\]="Mischief Managed.";
    IList<IDictionary<string, object>> payment_methods = new List<IDictionary<string, object>>();
        IDictionary<string, object> payment_methodsItem = new Dictionary<string, object>();
        payment_methodsItem\["cardholder"\]="Fillius Flitwick";
        payment_methodsItem\["expiration"\]="0426"
        payment_methodsItem\["number"\]="4000100011112224";
        payment_methodsItem\["pay_type"\]="cc";
    payment_methods.Add(payment_methodsItem);
        IDictionary<string, object> payment_methodsItem1 = new Dictionary<string, object>();
        payment_methodsItem1\["cardholder"\]="Fillius Flitwick";
        payment_methodsItem1\["expiration"\]="0426"
        payment_methodsItem1\["number"\]="4000100011112224";
        payment_methodsItem1\["pay_type"\]="cc";
    payment_methods.Add(payment_methodsItem1);
request\["payment_methods"\]="payment_methods";
    IList<IDictionary<string, object>> billing_schedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> billing_schedulesItem = new Dictionary<string, object>();
        billing_schedulesItem\["amount"\]="8";
        billing_schedulesItem\["enabled"\]="1";
            IList<IDictionary<string, object>> rules69 = new List<IDictionary<string, object>>();
                IDictionary<string, object> rules69Item = new Dictionary<string, object>();
                rules69Item\["day_offset"\]="3";
                rules69Item\["subject"\]="Day";
            rules69.Add(rules69Item);
                IDictionary<string, object> rules69Item2 = new Dictionary<string, object>();
                rules69Item2\["day_offset"\]="3";
                rules69Item2\["subject"\]="Day";
            rules69.Add(rules69Item2);
        billing_schedulesItem\["rules69"\]="rules69";
    billing_schedules.Add(billing_schedulesItem);
        IDictionary<string, object> billing_schedulesItem3 = new Dictionary<string, object>();
        billing_schedulesItem3\["amount"\]="8";
        billing_schedulesItem3\["enabled"\]="1";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["day_offset"\]="3";
                rulesItem\["subject"\]="Day";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem4 = new Dictionary<string, object>();
                rulesItem4\["day_offset"\]="3";
                rulesItem4\["subject"\]="Day";
            rules.Add(rulesItem4);
        billing_schedulesItem3\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem3);
request\["billing_schedules"\]="billing_schedules";

var response = USAePay.API.Customers.Post(request);

@POST/customers@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="customer";
response\["key"\]="nsds9yd1h5kb9y5h";
response\["custid"\]="123456";
response\["company"\]="Weasleys Wizard Wheezes";
response\["first_name"\]="George";
response\["last_name"\]="Weasley";
response\["description"\]="Mischief Managed.";
    IList<IDictionary<string, object>> payment_methods = new List<IDictionary<string, object>>();
        IDictionary<string, object> payment_methodsItem = new Dictionary<string, object>();
        payment_methodsItem\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem\["type"\]="customerpaymentmethod";
        payment_methodsItem\["method_name"\]="Example method";
        payment_methodsItem\["cardholder"\]="Testor Jones";
        payment_methodsItem\["expiration"\]="0426"
        payment_methodsItem\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem);
        IDictionary<string, object> payment_methodsItem1 = new Dictionary<string, object>();
        payment_methodsItem1\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem1\["type"\]="customerpaymentmethod";
        payment_methodsItem1\["method_name"\]="Example method";
        payment_methodsItem1\["cardholder"\]="Testor Jones";
        payment_methodsItem1\["expiration"\]="0426"
        payment_methodsItem1\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem1\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem1);
response\["payment_methods"\]="payment_methods";
    IList<IDictionary<string, object>> billing_schedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> billing_schedulesItem = new Dictionary<string, object>();
        billing_schedulesItem\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["type"\]="billingschedulerule";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem2 = new Dictionary<string, object>();
                rulesItem2\["type"\]="billingschedulerule";
            rules.Add(rulesItem2);
        billing_schedulesItem\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem);
        IDictionary<string, object> billing_schedulesItem3 = new Dictionary<string, object>();
        billing_schedulesItem3\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem4 = new Dictionary<string, object>();
                rulesItem4\["type"\]="billingschedulerule";
            rules.Add(rulesItem4);
                IDictionary<string, object> rulesItem5 = new Dictionary<string, object>();
                rulesItem5\["type"\]="billingschedulerule";
            rules.Add(rulesItem5);
        billing_schedulesItem3\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem3);
response\["billing_schedules"\]="billing_schedules";

@DELETE/customers/:custkey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";

var response = USAePay.API.Customers.Delete(request);

@DELETE/customers/:custkey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/customers/:custkey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["custid"\]="123456";
request\["company"\]="Weasleys Wizard Wheezes";
request\["first_name"\]="George";
request\["last_name"\]="Weasley";
request\["description"\]="Mischief Managed.";
    IList<IDictionary<string, object>> payment_methods = new List<IDictionary<string, object>>();
        IDictionary<string, object> payment_methodsItem = new Dictionary<string, object>();
        payment_methodsItem\["cardholder"\]="Fillius Flitwick";
        payment_methodsItem\["expiration"\]="0426"
        payment_methodsItem\["number"\]="4000100011112224";
        payment_methodsItem\["pay_type"\]="cc";
    payment_methods.Add(payment_methodsItem);
        IDictionary<string, object> payment_methodsItem1 = new Dictionary<string, object>();
        payment_methodsItem1\["cardholder"\]="Fillius Flitwick";
        payment_methodsItem1\["expiration"\]="0426"
        payment_methodsItem1\["number"\]="4000100011112224";
        payment_methodsItem1\["pay_type"\]="cc";
    payment_methods.Add(payment_methodsItem1);
request\["payment_methods"\]="payment_methods";
    IList<IDictionary<string, object>> billing_schedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> billing_schedulesItem = new Dictionary<string, object>();
        billing_schedulesItem\["amount"\]="8";
        billing_schedulesItem\["enabled"\]="1";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["day_offset"\]="3";
                rulesItem\["subject"\]="Day";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem2 = new Dictionary<string, object>();
                rulesItem2\["day_offset"\]="3";
                rulesItem2\["subject"\]="Day";
            rules.Add(rulesItem2);
        billing_schedulesItem\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem);
        IDictionary<string, object> billing_schedulesItem3 = new Dictionary<string, object>();
        billing_schedulesItem3\["amount"\]="8";
        billing_schedulesItem3\["enabled"\]="1";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem4 = new Dictionary<string, object>();
                rulesItem4\["day_offset"\]="3";
                rulesItem4\["subject"\]="Day";
            rules.Add(rulesItem4);
                IDictionary<string, object> rulesItem5 = new Dictionary<string, object>();
                rulesItem5\["day_offset"\]="3";
                rulesItem5\["subject"\]="Day";
            rules.Add(rulesItem5);
        billing_schedulesItem3\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem3);
request\["billing_schedules"\]="billing_schedules";

var response = USAePay.API.Customers.Put(request);

@PUT/customers/:custkey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="customer";
response\["key"\]="nsds9yd1h5kb9y5h";
response\["custid"\]="123456";
response\["company"\]="Weasleys Wizard Wheezes";
response\["first_name"\]="George";
response\["last_name"\]="Weasley";
response\["description"\]="Mischief Managed.";
    IList<IDictionary<string, object>> payment_methods = new List<IDictionary<string, object>>();
        IDictionary<string, object> payment_methodsItem = new Dictionary<string, object>();
        payment_methodsItem\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem\["type"\]="customerpaymentmethod";
        payment_methodsItem\["method_name"\]="Example method";
        payment_methodsItem\["cardholder"\]="Testor Jones";
        payment_methodsItem\["expiration"\]="0426"
        payment_methodsItem\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem);
        IDictionary<string, object> payment_methodsItem1 = new Dictionary<string, object>();
        payment_methodsItem1\["key"\]="x8KccrxeydHJ4MmT";
        payment_methodsItem1\["type"\]="customerpaymentmethod";
        payment_methodsItem1\["method_name"\]="Example method";
        payment_methodsItem1\["cardholder"\]="Testor Jones";
        payment_methodsItem1\["expiration"\]="0426"
        payment_methodsItem1\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        payment_methodsItem1\["card_type"\]="Visa";
    payment_methods.Add(payment_methodsItem1);
response\["payment_methods"\]="payment_methods";
    IList<IDictionary<string, object>> billing_schedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> billing_schedulesItem = new Dictionary<string, object>();
        billing_schedulesItem\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["type"\]="billingschedulerule";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem2 = new Dictionary<string, object>();
                rulesItem2\["type"\]="billingschedulerule";
            rules.Add(rulesItem2);
        billing_schedulesItem\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem);
        IDictionary<string, object> billing_schedulesItem3 = new Dictionary<string, object>();
        billing_schedulesItem3\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem4 = new Dictionary<string, object>();
                rulesItem4\["type"\]="billingschedulerule";
            rules.Add(rulesItem4);
                IDictionary<string, object> rulesItem5 = new Dictionary<string, object>();
                rulesItem5\["type"\]="billingschedulerule";
            rules.Add(rulesItem5);
        billing_schedulesItem3\["rules"\]="rules";
    billing_schedules.Add(billing_schedulesItem3);
response\["billing_schedules"\]="billing_schedules";

@POST/customers/enable@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Customers.Enable.Post(request);

@POST/customers/enable@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@POST/customers/disable@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Customers.Disable.Post(request);

@POST/customers/disable@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";

var response = USAePay.API.Customers.Billing_schedules.Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="billingschedule";
    IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
        IDictionary<string, object> rulesItem = new Dictionary<string, object>();
        rulesItem\["type"\]="billingschedulerule";
    rules.Add(rulesItem);
        IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
        rulesItem1\["type"\]="billingschedulerule";
    rules.Add(rulesItem1);
response\["rules"\]="rules";

@GET/customers/:custkey:/billing_schedules@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";

var response = USAePay.API.Customers.Billing_schedules.Get(request);

@GET/customers/:custkey:/billing_schedules@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["type"\]="billingschedulerule";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
                rulesItem1\["type"\]="billingschedulerule";
            rules.Add(rulesItem1);
        dataItem\["rules"\]="rules";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="1";

@POST/customers/:custkey:/billing_schedules@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
    IList<IDictionary<string, object>> CustomerSchedules = new List<IDictionary<string, object>>();
        IDictionary<string, object> CustomerSchedulesItem = new Dictionary<string, object>();
        CustomerSchedulesItem\["type"\]="billingschedule";
            IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
                IDictionary<string, object> rulesItem = new Dictionary<string, object>();
                rulesItem\["type"\]="billingschedulerule";
            rules.Add(rulesItem);
                IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
                rulesItem1\["type"\]="billingschedulerule";
            rules.Add(rulesItem1);
        CustomerSchedulesItem\["rules"\]="rules";
    CustomerSchedules.Add(CustomerSchedulesItem);
request\["CustomerSchedules"\]="CustomerSchedules";

var response = USAePay.API.Customers.Billing_schedules.Post(request);

@POST/customers/:custkey:/billing_schedules@

IList<IDictionary<string, object>> response = new List<IDictionary<string, object>>();
    IDictionary<string, object> responseItem = new Dictionary<string, object>();
    responseItem\["type"\]="billingschedule";
        IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
            IDictionary<string, object> rulesItem = new Dictionary<string, object>();
            rulesItem\["type"\]="billingschedulerule";
        rules.Add(rulesItem);
            IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
            rulesItem1\["type"\]="billingschedulerule";
        rules.Add(rulesItem1);
    responseItem\["rules"\]="rules";
response.Add(responseItem);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";

var response = USAePay.API.Customers.Billing_schedules.Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";
request\["type"\]="billingschedule";
    IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
        IDictionary<string, object> rulesItem = new Dictionary<string, object>();
        rulesItem\["type"\]="billingschedulerule";
    rules.Add(rulesItem);
        IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
        rulesItem1\["type"\]="billingschedulerule";
    rules.Add(rulesItem1);
request\["rules"\]="rules";

var response = USAePay.API.Customers.Billing_schedules.Put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="billingschedule";
    IList<IDictionary<string, object>> rules = new List<IDictionary<string, object>>();
        IDictionary<string, object> rulesItem = new Dictionary<string, object>();
        rulesItem\["type"\]="billingschedulerule";
    rules.Add(rulesItem);
        IDictionary<string, object> rulesItem1 = new Dictionary<string, object>();
        rulesItem1\["type"\]="billingschedulerule";
    rules.Add(rulesItem1);
response\["rules"\]="rules";

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["paymethod_key"\]="Example_paymethod_key";

var response = USAePay.API.Customers.Payment_methods.Get(request);

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["key"\]="x8KccrxeydHJ4MmT";
response\["type"\]="customerpaymentmethod";
response\["method_name"\]="Example method";
response\["cardholder"\]="Testor Jones";
response\["expiration"\]="0426"
response\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
response\["card_type"\]="Visa";

@GET/customers/:custkey:/payment_methods@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";

var response = USAePay.API.Customers.Payment_methods.Get(request);

@GET/customers/:custkey:/payment_methods@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["key"\]="x8KccrxeydHJ4MmT";
        dataItem\["type"\]="customerpaymentmethod";
        dataItem\["method_name"\]="Example method";
        dataItem\["cardholder"\]="Testor Jones";
        dataItem\["expiration"\]="0426"
        dataItem\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
        dataItem\["card_type"\]="Visa";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="1";

@POST/customers/:custkey:/payment_methods@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
    IList<IDictionary<string, object>> CustomerPaymentMethodRequests = new List<IDictionary<string, object>>();
        IDictionary<string, object> CustomerPaymentMethodRequestsItem = new Dictionary<string, object>();
        CustomerPaymentMethodRequestsItem\["cardholder"\]="Fillius Flitwick";
        CustomerPaymentMethodRequestsItem\["expiration"\]="0426"
        CustomerPaymentMethodRequestsItem\["number"\]="4000100011112224";
        CustomerPaymentMethodRequestsItem\["pay_type"\]="cc";
    CustomerPaymentMethodRequests.Add(CustomerPaymentMethodRequestsItem);
request\["CustomerPaymentMethodRequests"\]="CustomerPaymentMethodRequests";

var response = USAePay.API.Customers.Payment_methods.Post(request);

@POST/customers/:custkey:/payment_methods@

IList<IDictionary<string, object>> response = new List<IDictionary<string, object>>();
    IDictionary<string, object> responseItem = new Dictionary<string, object>();
    responseItem\["key"\]="x8KccrxeydHJ4MmT";
    responseItem\["type"\]="customerpaymentmethod";
    responseItem\["method_name"\]="Example method";
    responseItem\["cardholder"\]="Testor Jones";
    responseItem\["expiration"\]="0426"
    responseItem\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
    responseItem\["card_type"\]="Visa";
response.Add(responseItem);

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["paymethod_key"\]="Example_paymethod_key";

var response = USAePay.API.Customers.Payment_methods.Delete(request);

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["paymethod_key"\]="Example_paymethod_key";
request\["cardholder"\]="Fillius Flitwick";
request\["expiration"\]="0426"
request\["number"\]="40001000111^date:MMYY,+4Y4";
request\["pay_type"\]="cc";

var response = USAePay.API.Customers.Payment_methods.Put(request);

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["key"\]="x8KccrxeydHJ4MmT";
response\["type"\]="customerpaymentmethod";
response\["method_name"\]="Example method";
response\["cardholder"\]="Testor Jones";
response\["expiration"\]="0426"
response\["ccnum4last"\]="xxxxxxxxxxxxxx7779";
response\["card_type"\]="Visa";

@GET/customers/:custkey:/transactions@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";

var response = USAePay.API.Customers.Transactions.Get(request);

@GET/customers/:custkey:/transactions@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="transaction";
        dataItem\["key"\]="dnfwxwhz5kvnbgb";
        dataItem\["refnum"\]="100061";
        dataItem\["created"\]="2018-12-04 10:48:44";
        dataItem\["trantype_code"\]="S";
        dataItem\["trantype"\]="Credit Card Sale";
        dataItem\["result_code"\]="A";
        dataItem\["result"\]="Approved";
        dataItem\["error_code"\]="12";
        dataItem\["error"\]="Card Number was not between 13 and 16 digits";
        dataItem\["authcode"\]="314407";
        dataItem\["status_code"\]="P";
        dataItem\["status"\]="Authorized (Pending Settlement)";
        dataItem\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        dataItem\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        dataItem\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        dataItem\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        dataItem\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        dataItem\["batch"\]="batch";
        dataItem\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        dataItem\["amount_detail"\]="amount_detail";
        dataItem\["ponum"\]="af416fsd5";
        dataItem\["invoice"\]="98454685";
        dataItem\["orderid"\]="98454685";
        dataItem\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        dataItem\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        dataItem\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
                lineitemsItem\["name"\]="Antique Pensieve";
                lineitemsItem\["description"\]="See into your past...";
                lineitemsItem\["size"\]="Large";
                lineitemsItem\["color"\]="Bronze";
                lineitemsItem\["cost"\]="450.00";
                lineitemsItem\["list_price"\]="500.00";
                lineitemsItem\["qty"\]="1";
                lineitemsItem\["sku"\]="68453423";
                lineitemsItem\["commoditycode"\]="535";
                lineitemsItem\["discountamount"\]="0";
                lineitemsItem\["discountrate"\]="0";
                lineitemsItem\["taxable"\]="";
                lineitemsItem\["taxamount"\]="45.00";
                lineitemsItem\["taxclass"\]="NA";
                lineitemsItem\["taxrate"\]="10";
                lineitemsItem\["um"\]="EA";
                lineitemsItem\["category"\]="Antiques";
                lineitemsItem\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem);
        dataItem\["lineitems"\]="lineitems";
        dataItem\["comments"\]="Powerful magical object. Use with caution.";
        dataItem\["tranterm"\]="multilane";
        dataItem\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        dataItem\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        dataItem\["customer"\]="customer";
        dataItem\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        dataItem\["bin"\]="bin";
        dataItem\["clientip"\]="Madame Malkin";
        dataItem\["source_name"\]="Madame Malkin";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";
request\["billing_rule_key"\]="Example_billing_rule_key";

var response = USAePay.API.Customers.Billing_schedules.Billing_schedule_rules.Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="billingschedulerule";

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";

var response = USAePay.API.Customers.Billing_schedules.Billing_schedule_rules.Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="billingschedulerule";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="1";

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";
request\["billing_rule_key"\]="Example_billing_rule_key";

var response = USAePay.API.Customers.Billing_schedules.Billing_schedule_rules.Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";
request\["billing_rule_key"\]="Example_billing_rule_key";
request\["type"\]="billingschedulerule";

var response = USAePay.API.Customers.Billing_schedules.Billing_schedule_rules.Put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="billingschedulerule";

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["custkey"\]="Example_custkey";
request\["billing_schedule_key"\]="Example_billing_schedule_key";
    IList<IDictionary<string, object>> Keys = new List<IDictionary<string, object>>();  Keys.Add("Example_delKey");
request\["Keys"\]="Keys";

var response = USAePay.API.Customers.Billing_schedules.Billing_schedule_rules.Bulk.Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/invoices/:invoice_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";

var response = USAePay.API.Invoices.Get(request);

@GET/invoices/:invoice_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="invoice";
response\["status"\]="Q";
response\["invoice_number"\]="abc1234";
response\["invoice_date"\]="2019-10-02";
response\["due_date"\]="2020-10-11";
response\["nontaxable"\]="true";
response\["customer_email"\]="example@test.com";
    IDictionary<string, object> customer_billing = new Dictionary<string, object>();
    customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_billing\["street"\]="123 Astronomy Tower";
    customer_billing\["postalcode"\]="10005";
response\["customer_billing"\]="customer_billing";
    IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
    customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_shipping\["street"\]="123 Astronomy Tower";
    customer_shipping\["postalcode"\]="10005";
response\["customer_shipping"\]="customer_shipping";
response\["merchant_email"\]="Example@test.com";
response\["merchant_address"\]="123 Main St";
response\["merchant_phone"\]="111-222-3333";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
        IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
        lineitemsItem1\["name"\]="Antique Pensieve";
        lineitemsItem1\["description"\]="See into your past...";
        lineitemsItem1\["size"\]="Large";
        lineitemsItem1\["color"\]="Bronze";
        lineitemsItem1\["cost"\]="450.00";
        lineitemsItem1\["list_price"\]="500.00";
        lineitemsItem1\["qty"\]="1";
        lineitemsItem1\["sku"\]="68453423";
        lineitemsItem1\["commoditycode"\]="535";
        lineitemsItem1\["discountamount"\]="0";
        lineitemsItem1\["discountrate"\]="0";
        lineitemsItem1\["taxable"\]="";
        lineitemsItem1\["taxamount"\]="45.00";
        lineitemsItem1\["taxclass"\]="NA";
        lineitemsItem1\["taxrate"\]="10";
        lineitemsItem1\["um"\]="EA";
        lineitemsItem1\["category"\]="Antiques";
        lineitemsItem1\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem1);
response\["lineitems"\]="lineitems";

@GET/invoices@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="78";
request\["offset"\]="37";

var response = USAePay.API.Invoices.Get(request);

@GET/invoices@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="invoice";
        dataItem\["status"\]="Q";
        dataItem\["invoice_number"\]="abc1234";
        dataItem\["invoice_date"\]="2019-10-02";
        dataItem\["due_date"\]="2020-10-11";
        dataItem\["nontaxable"\]="true";
        dataItem\["customer_email"\]="example@test.com";
            IDictionary<string, object> customer_billing = new Dictionary<string, object>();
            customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            customer_billing\["street"\]="123 Astronomy Tower";
            customer_billing\["postalcode"\]="10005";
        dataItem\["customer_billing"\]="customer_billing";
            IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
            customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            customer_shipping\["street"\]="123 Astronomy Tower";
            customer_shipping\["postalcode"\]="10005";
        dataItem\["customer_shipping"\]="customer_shipping";
        dataItem\["merchant_email"\]="Example@test.com";
        dataItem\["merchant_address"\]="123 Main St";
        dataItem\["merchant_phone"\]="111-222-3333";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
                lineitemsItem\["name"\]="Antique Pensieve";
                lineitemsItem\["description"\]="See into your past...";
                lineitemsItem\["size"\]="Large";
                lineitemsItem\["color"\]="Bronze";
                lineitemsItem\["cost"\]="450.00";
                lineitemsItem\["list_price"\]="500.00";
                lineitemsItem\["qty"\]="1";
                lineitemsItem\["sku"\]="68453423";
                lineitemsItem\["commoditycode"\]="535";
                lineitemsItem\["discountamount"\]="0";
                lineitemsItem\["discountrate"\]="0";
                lineitemsItem\["taxable"\]="";
                lineitemsItem\["taxamount"\]="45.00";
                lineitemsItem\["taxclass"\]="NA";
                lineitemsItem\["taxrate"\]="10";
                lineitemsItem\["um"\]="EA";
                lineitemsItem\["category"\]="Antiques";
                lineitemsItem\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem);
                IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
                lineitemsItem1\["name"\]="Antique Pensieve";
                lineitemsItem1\["description"\]="See into your past...";
                lineitemsItem1\["size"\]="Large";
                lineitemsItem1\["color"\]="Bronze";
                lineitemsItem1\["cost"\]="450.00";
                lineitemsItem1\["list_price"\]="500.00";
                lineitemsItem1\["qty"\]="1";
                lineitemsItem1\["sku"\]="68453423";
                lineitemsItem1\["commoditycode"\]="535";
                lineitemsItem1\["discountamount"\]="0";
                lineitemsItem1\["discountrate"\]="0";
                lineitemsItem1\["taxable"\]="";
                lineitemsItem1\["taxamount"\]="45.00";
                lineitemsItem1\["taxclass"\]="NA";
                lineitemsItem1\["taxrate"\]="10";
                lineitemsItem1\["um"\]="EA";
                lineitemsItem1\["category"\]="Antiques";
                lineitemsItem1\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem1);
        dataItem\["lineitems"\]="lineitems";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/invoices@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_number"\]="abc1234";
request\["due_date"\]="2020-10-11";
request\["nontaxable"\]="true";
request\["customer_email"\]="example@test.com";
    IDictionary<string, object> customer_billing = new Dictionary<string, object>();
    customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_billing\["street"\]="123 Astronomy Tower";
    customer_billing\["postalcode"\]="10005";
request\["customer_billing"\]="customer_billing";
    IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
    customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_shipping\["street"\]="123 Astronomy Tower";
    customer_shipping\["postalcode"\]="10005";
request\["customer_shipping"\]="customer_shipping";
request\["merchant_email"\]="Example@test.com";
request\["merchant_address"\]="123 Main St";
request\["merchant_phone"\]="111-222-3333";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
        IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
        lineitemsItem1\["name"\]="Antique Pensieve";
        lineitemsItem1\["description"\]="See into your past...";
        lineitemsItem1\["size"\]="Large";
        lineitemsItem1\["color"\]="Bronze";
        lineitemsItem1\["cost"\]="450.00";
        lineitemsItem1\["list_price"\]="500.00";
        lineitemsItem1\["qty"\]="1";
        lineitemsItem1\["sku"\]="68453423";
        lineitemsItem1\["commoditycode"\]="535";
        lineitemsItem1\["discountamount"\]="0";
        lineitemsItem1\["discountrate"\]="0";
        lineitemsItem1\["taxable"\]="";
        lineitemsItem1\["taxamount"\]="45.00";
        lineitemsItem1\["taxclass"\]="NA";
        lineitemsItem1\["taxrate"\]="10";
        lineitemsItem1\["um"\]="EA";
        lineitemsItem1\["category"\]="Antiques";
        lineitemsItem1\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem1);
request\["lineitems"\]="lineitems";

var response = USAePay.API.Invoices.Post(request);

@POST/invoices@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="invoice";
response\["status"\]="Q";
response\["invoice_number"\]="abc1234";
response\["invoice_date"\]="2019-10-02";
response\["due_date"\]="2020-10-11";
response\["nontaxable"\]="true";
response\["customer_email"\]="example@test.com";
    IDictionary<string, object> customer_billing = new Dictionary<string, object>();
    customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_billing\["street"\]="123 Astronomy Tower";
    customer_billing\["postalcode"\]="10005";
response\["customer_billing"\]="customer_billing";
    IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
    customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_shipping\["street"\]="123 Astronomy Tower";
    customer_shipping\["postalcode"\]="10005";
response\["customer_shipping"\]="customer_shipping";
response\["merchant_email"\]="Example@test.com";
response\["merchant_address"\]="123 Main St";
response\["merchant_phone"\]="111-222-3333";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
        IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
        lineitemsItem1\["name"\]="Antique Pensieve";
        lineitemsItem1\["description"\]="See into your past...";
        lineitemsItem1\["size"\]="Large";
        lineitemsItem1\["color"\]="Bronze";
        lineitemsItem1\["cost"\]="450.00";
        lineitemsItem1\["list_price"\]="500.00";
        lineitemsItem1\["qty"\]="1";
        lineitemsItem1\["sku"\]="68453423";
        lineitemsItem1\["commoditycode"\]="535";
        lineitemsItem1\["discountamount"\]="0";
        lineitemsItem1\["discountrate"\]="0";
        lineitemsItem1\["taxable"\]="";
        lineitemsItem1\["taxamount"\]="45.00";
        lineitemsItem1\["taxclass"\]="NA";
        lineitemsItem1\["taxrate"\]="10";
        lineitemsItem1\["um"\]="EA";
        lineitemsItem1\["category"\]="Antiques";
        lineitemsItem1\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem1);
response\["lineitems"\]="lineitems";

@DELETE/invoices/:invoice_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";

var response = USAePay.API.Invoices.Delete(request);

@DELETE/invoices/:invoice_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/invoices/:invoice_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";
request\["invoice_number"\]="abc1234";
request\["due_date"\]="2020-10-11";
request\["nontaxable"\]="true";
request\["customer_email"\]="example@test.com";
    IDictionary<string, object> customer_billing = new Dictionary<string, object>();
    customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_billing\["street"\]="123 Astronomy Tower";
    customer_billing\["postalcode"\]="10005";
request\["customer_billing"\]="customer_billing";
    IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
    customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_shipping\["street"\]="123 Astronomy Tower";
    customer_shipping\["postalcode"\]="10005";
request\["customer_shipping"\]="customer_shipping";
request\["merchant_email"\]="Example@test.com";
request\["merchant_address"\]="123 Main St";
request\["merchant_phone"\]="111-222-3333";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
        IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
        lineitemsItem1\["name"\]="Antique Pensieve";
        lineitemsItem1\["description"\]="See into your past...";
        lineitemsItem1\["size"\]="Large";
        lineitemsItem1\["color"\]="Bronze";
        lineitemsItem1\["cost"\]="450.00";
        lineitemsItem1\["list_price"\]="500.00";
        lineitemsItem1\["qty"\]="1";
        lineitemsItem1\["sku"\]="68453423";
        lineitemsItem1\["commoditycode"\]="535";
        lineitemsItem1\["discountamount"\]="0";
        lineitemsItem1\["discountrate"\]="0";
        lineitemsItem1\["taxable"\]="";
        lineitemsItem1\["taxamount"\]="45.00";
        lineitemsItem1\["taxclass"\]="NA";
        lineitemsItem1\["taxrate"\]="10";
        lineitemsItem1\["um"\]="EA";
        lineitemsItem1\["category"\]="Antiques";
        lineitemsItem1\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem1);
request\["lineitems"\]="lineitems";

var response = USAePay.API.Invoices.Put(request);

@PUT/invoices/:invoice_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="invoice";
response\["status"\]="Q";
response\["invoice_number"\]="abc1234";
response\["invoice_date"\]="2019-10-02";
response\["due_date"\]="2020-10-11";
response\["nontaxable"\]="true";
response\["customer_email"\]="example@test.com";
    IDictionary<string, object> customer_billing = new Dictionary<string, object>();
    customer_billing\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_billing\["street"\]="123 Astronomy Tower";
    customer_billing\["postalcode"\]="10005";
response\["customer_billing"\]="customer_billing";
    IDictionary<string, object> customer_shipping = new Dictionary<string, object>();
    customer_shipping\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    customer_shipping\["street"\]="123 Astronomy Tower";
    customer_shipping\["postalcode"\]="10005";
response\["customer_shipping"\]="customer_shipping";
response\["merchant_email"\]="Example@test.com";
response\["merchant_address"\]="123 Main St";
response\["merchant_phone"\]="111-222-3333";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
        IDictionary<string, object> lineitemsItem1 = new Dictionary<string, object>();
        lineitemsItem1\["name"\]="Antique Pensieve";
        lineitemsItem1\["description"\]="See into your past...";
        lineitemsItem1\["size"\]="Large";
        lineitemsItem1\["color"\]="Bronze";
        lineitemsItem1\["cost"\]="450.00";
        lineitemsItem1\["list_price"\]="500.00";
        lineitemsItem1\["qty"\]="1";
        lineitemsItem1\["sku"\]="68453423";
        lineitemsItem1\["commoditycode"\]="535";
        lineitemsItem1\["discountamount"\]="0";
        lineitemsItem1\["discountrate"\]="0";
        lineitemsItem1\["taxable"\]="";
        lineitemsItem1\["taxamount"\]="45.00";
        lineitemsItem1\["taxclass"\]="NA";
        lineitemsItem1\["taxrate"\]="10";
        lineitemsItem1\["um"\]="EA";
        lineitemsItem1\["category"\]="Antiques";
        lineitemsItem1\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem1);
response\["lineitems"\]="lineitems";

@DELETE/invoices/bulk@

IDictionary<string, object> request = new Dictionary<string, object>();
    IList<IDictionary<string, object>> Keys = new List<IDictionary<string, object>>();  Keys.Add("example_key");
request\["Keys"\]="Keys";

var response = USAePay.API.Invoices.Bulk.Delete(request);

@DELETE/invoices/bulk@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/invoices/defaults@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Invoices.Defaults.Get(request);

@GET/invoices/defaults@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["merchant_email"\]="Example@test.com";
response\["merchant_address"\]="123 Main St";
response\["merchant_phone"\]="111-222-3333";

@GET/invoices/nextnum@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Invoices.Nextnum.Get(request);

@GET/invoices/nextnum@

IDictionary<string, object> response = new Dictionary<string, object>();

@GET/invoices/columns@

IDictionary<string, object> request = new Dictionary<string, object>();

var response = USAePay.API.Invoices.Columns.Get(request);

@GET/invoices/columns@

IDictionary<string, object> response = new Dictionary<string, object>();

@POST/invoices/:invoice_key:/send@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";

var response = USAePay.API.Invoices.Send.Post(request);

@POST/invoices/:invoice_key:/send@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@POST/invoices/:invoice_key:/cancel@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";

var response = USAePay.API.Invoices.Cancel.Post(request);

@POST/invoices/:invoice_key:/cancel@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/invoices/:invoice_key:/payments@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["invoice_key"\]="Example_invoice_key";
request\["limit"\]="86";
request\["offset"\]="12";

var response = USAePay.API.Invoices.Payments.Get(request);

@GET/invoices/:invoice_key:/payments@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/invoices/bulk/send@

IDictionary<string, object> request = new Dictionary<string, object>();
    IList<IDictionary<string, object>> Keys = new List<IDictionary<string, object>>();  Keys.Add("Example_key");
request\["Keys"\]="Keys";

var response = USAePay.API.Invoices.Bulk.Send.Post(request);

@POST/invoices/bulk/send@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/paymentengine/devices/:devicekey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";

var response = USAePay.API.Paymentengine.Devices.Get(request);

@GET/paymentengine/devices/:devicekey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@GET/paymentengine/devices@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="55";
request\["offset"\]="100";

var response = USAePay.API.Paymentengine.Devices.Get(request);

@GET/paymentengine/devices@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="device";
        dataItem\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
        dataItem\["apikeyid"\]="ntC8nP31Moh0wtvYT";
        dataItem\["terminal_type"\]="standalone";
        dataItem\["status"\]="ntC8nP31Moh0wtvYT";
        dataItem\["name"\]="ntC8nP31Moh0wtvYT";
            IDictionary<string, object> settings = new Dictionary<string, object>();
            settings\["timeout"\]="30";
            settings\["enable_standalone"\]="false";
            settings\["share_device"\]="false";
            settings\["notify_update"\]="true";
            settings\["notify_update_next"\]="true";
            settings\["sleep_battery_device"\]="5";
            settings\["sleep_battery_display"\]="3";
            settings\["sleep_powered_device"\]="10";
            settings\["sleep_powered_display"\]="8";
        dataItem\["settings"\]="settings";
            IDictionary<string, object> terminal_info = new Dictionary<string, object>();
            terminal_info\["make"\]="Castle";
            terminal_info\["model"\]="Vega3000";
            terminal_info\["revision"\]="18043001-0055.00";
            terminal_info\["serial"\]="011118170300198";
            terminal_info\["key_pin"\]="FFFF5B04";
            terminal_info\["key_pan"\]="FF908A";
        dataItem\["terminal_info"\]="terminal_info";
            IDictionary<string, object> terminal_config = new Dictionary<string, object>();
            terminal_config\["enable_emv"\]="true";
            terminal_config\["enable_debit_msr"\]="true";
            terminal_config\["enable_tip_adjust"\]="true";
            terminal_config\["enable_contactless"\]="true";
        dataItem\["terminal_config"\]="terminal_config";
        dataItem\["pairing_code"\]="690520";
        dataItem\["expiration"\]="2019-10-29 11:59:28";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/paymentengine/devices@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["terminal_type"\]="standalone";
request\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
request\["settings"\]="settings";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
request\["terminal_config"\]="terminal_config";

var response = USAePay.API.Paymentengine.Devices.Post(request);

@POST/paymentengine/devices@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@DELETE/paymentengine/devices/:devicekey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";

var response = USAePay.API.Paymentengine.Devices.Delete(request);

@DELETE/paymentengine/devices/:devicekey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/paymentengine/devices/:devicekey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";
request\["terminal_type"\]="standalone";
request\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
request\["settings"\]="settings";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
request\["terminal_config"\]="terminal_config";

var response = USAePay.API.Paymentengine.Devices.Put(request);

@PUT/paymentengine/devices/:devicekey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@POST/paymentengine/payrequests@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="sa_YdebDV6I2q0MfWV8kPDvQkHEvUjpA";
request\["command"\]="sale";
request\["amount"\]="2.11";
    IDictionary<string, object> amount_detail = new Dictionary<string, object>();
    amount_detail\["subtotal"\]="40.00";
    amount_detail\["tax"\]="10.00";
    amount_detail\["enable_partialauth"\]="false";
request\["amount_detail"\]="amount_detail";
request\["timeout"\]="150";
request\["block_offline"\]="true";
request\["ignore_duplicate"\]="true";
request\["save_card"\]="true";
request\["manual_key"\]="true";
request\["prompt_tip"\]="true";
request\["invoice"\]="123456";
request\["ponum"\]="987654321";
request\["orderid"\]="12345678";
request\["description"\]="sample description";
    IDictionary<string, object> billing_address = new Dictionary<string, object>();
    billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    billing_address\["street"\]="123 Astronomy Tower";
    billing_address\["postalcode"\]="10005";
request\["billing_address"\]="billing_address";
    IDictionary<string, object> shipping_address = new Dictionary<string, object>();
    shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    shipping_address\["street"\]="123 Astronomy Tower";
    shipping_address\["postalcode"\]="10005";
request\["shipping_address"\]="shipping_address";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
request\["lineitems"\]="lineitems";

var response = USAePay.API.Paymentengine.Payrequests.Post(request);

@POST/paymentengine/payrequests@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="request";
response\["key"\]="pr_3mW7rstrdA0Sp32LW9MN3djCITAhx";
response\["expiration"\]="2020-07-08 16:40:48";
response\["status"\]="sent to device";
    IDictionary<string, object> transaction = new Dictionary<string, object>();
    transaction\["type"\]="transaction";
    transaction\["key"\]="dnfwxwhz5kvnbgb";
    transaction\["refnum"\]="100061";
    transaction\["created"\]="2018-12-04 10:48:44";
    transaction\["is_duplicate"\]="N";
    transaction\["result_code"\]="A";
    transaction\["result"\]="Approved";
    transaction\["authcode"\]="314407";
    transaction\["proc_refnum"\]="18120443975126";
        IDictionary<string, object> creditcard = new Dictionary<string, object>();
        creditcard\["cardholder"\]="Minerva McGonnegall";
        creditcard\["number"\]="4444xxxxxxxx1111";
        creditcard\["category_code"\]="A";
        creditcard\["entry_mode"\]="swiped";
        creditcard\["avs_street"\]="1234 Portkey Ave";
        creditcard\["avs_postalcode"\]="90006";
    transaction\["creditcard"\]="creditcard";
    transaction\["invoice"\]="98454685";
    transaction\["orderid"\]="4556432";
        IDictionary<string, object> avs = new Dictionary<string, object>();
        avs\["result_code"\]="YYY";
        avs\["result"\]="Address: Match & 5 Digit Zip: Match";
    transaction\["avs"\]="avs";
        IDictionary<string, object> cvc = new Dictionary<string, object>();
        cvc\["result_code"\]="N";
        cvc\["result"\]="No Match";
    transaction\["cvc"\]="cvc";
        IDictionary<string, object> batch = new Dictionary<string, object>();
        batch\["type"\]="batch";
        batch\["key"\]="ft1m9m5p9wgd9mb";
        batch\["batchrefnum"\]="12345678";
        batch\["sequence"\]="2902";
    transaction\["batch"\]="batch";
    transaction\["auth_amount"\]="500.00";
    transaction\["trantype"\]="Credit Card Sale";
    transaction\["iccdata"\]="";
        IDictionary<string, object> receipts = new Dictionary<string, object>();
        receipts\["customer"\]="Mail Sent Successfully";
        receipts\["merchant"\]="Mail Sent Successfully";
    transaction\["receipts"\]="receipts";
        IDictionary<string, object> customer = new Dictionary<string, object>();
        customer\["custkey"\]="ksddgpqgpbs5zkmb";
        customer\["custid"\]="10275538";
    transaction\["customer"\]="customer";
        IDictionary<string, object> savedcard = new Dictionary<string, object>();
        savedcard\["type"\]="Visa";
        savedcard\["key"\]="tyet-xk8x-vpj4-7swq";
        savedcard\["cardnumber"\]="4000xxxxxxxx2224";
    transaction\["savedcard"\]="savedcard";
response\["transaction"\]="transaction";
response\["complete"\]="sent to device";

@GET/paymentengine/payrequests/:requestkey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["requestkey"\]="Example_requestkey";

var response = USAePay.API.Paymentengine.Payrequests.Get(request);

@GET/paymentengine/payrequests/:requestkey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="request";
response\["key"\]="pr_3mW7rstrdA0Sp32LW9MN3djCITAhx";
response\["expiration"\]="2020-07-08 16:40:48";
response\["status"\]="sent to device";
    IDictionary<string, object> transaction = new Dictionary<string, object>();
    transaction\["type"\]="transaction";
    transaction\["key"\]="dnfwxwhz5kvnbgb";
    transaction\["refnum"\]="100061";
    transaction\["created"\]="2018-12-04 10:48:44";
    transaction\["is_duplicate"\]="N";
    transaction\["result_code"\]="A";
    transaction\["result"\]="Approved";
    transaction\["authcode"\]="314407";
    transaction\["proc_refnum"\]="18120443975126";
        IDictionary<string, object> creditcard = new Dictionary<string, object>();
        creditcard\["cardholder"\]="Minerva McGonnegall";
        creditcard\["number"\]="4444xxxxxxxx1111";
        creditcard\["category_code"\]="A";
        creditcard\["entry_mode"\]="swiped";
        creditcard\["avs_street"\]="1234 Portkey Ave";
        creditcard\["avs_postalcode"\]="90006";
    transaction\["creditcard"\]="creditcard";
    transaction\["invoice"\]="98454685";
    transaction\["orderid"\]="4556432";
        IDictionary<string, object> avs = new Dictionary<string, object>();
        avs\["result_code"\]="YYY";
        avs\["result"\]="Address: Match & 5 Digit Zip: Match";
    transaction\["avs"\]="avs";
        IDictionary<string, object> cvc = new Dictionary<string, object>();
        cvc\["result_code"\]="N";
        cvc\["result"\]="No Match";
    transaction\["cvc"\]="cvc";
        IDictionary<string, object> batch = new Dictionary<string, object>();
        batch\["type"\]="batch";
        batch\["key"\]="ft1m9m5p9wgd9mb";
        batch\["batchrefnum"\]="12345678";
        batch\["sequence"\]="2902";
    transaction\["batch"\]="batch";
    transaction\["auth_amount"\]="500.00";
    transaction\["trantype"\]="Credit Card Sale";
    transaction\["iccdata"\]="";
        IDictionary<string, object> receipts = new Dictionary<string, object>();
        receipts\["customer"\]="Mail Sent Successfully";
        receipts\["merchant"\]="Mail Sent Successfully";
    transaction\["receipts"\]="receipts";
        IDictionary<string, object> customer = new Dictionary<string, object>();
        customer\["custkey"\]="ksddgpqgpbs5zkmb";
        customer\["custid"\]="10275538";
    transaction\["customer"\]="customer";
        IDictionary<string, object> savedcard = new Dictionary<string, object>();
        savedcard\["type"\]="Visa";
        savedcard\["key"\]="tyet-xk8x-vpj4-7swq";
        savedcard\["cardnumber"\]="4000xxxxxxxx2224";
    transaction\["savedcard"\]="savedcard";
response\["transaction"\]="transaction";
response\["complete"\]="sent to device";

@DELETE/paymentengine/payrequests/:requestkey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["requestkey"\]="Example_requestkey";

var response = USAePay.API.Paymentengine.Payrequests.Delete(request);

@DELETE/paymentengine/payrequests/:requestkey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/paymentengine/devices/:devicekey:/settings@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";

var response = USAePay.API.Paymentengine.Devices.Settings.Get(request);

@GET/paymentengine/devices/:devicekey:/settings@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["timeout"\]="30";
response\["enable_standalone"\]="false";
response\["share_device"\]="false";
response\["notify_update"\]="true";
response\["notify_update_next"\]="true";
response\["sleep_battery_device"\]="5";
response\["sleep_battery_display"\]="3";
response\["sleep_powered_device"\]="10";
response\["sleep_powered_display"\]="8";

@PUT/paymentengine/devices/:devicekey:/settings@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";
request\["timeout"\]="30";
request\["enable_standalone"\]="false";
request\["share_device"\]="false";
request\["notify_update"\]="true";
request\["notify_update_next"\]="true";
request\["sleep_battery_device"\]="5";
request\["sleep_battery_display"\]="3";
request\["sleep_powered_device"\]="10";
request\["sleep_powered_display"\]="8";

var response = USAePay.API.Paymentengine.Devices.Settings.Put(request);

@PUT/paymentengine/devices/:devicekey:/settings@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@GET/paymentengine/devices/:devicekey:/terminal-config@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";

var response = USAePay.API.Paymentengine.Devices.Terminal-config.Get(request);

@GET/paymentengine/devices/:devicekey:/terminal-config@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["enable_emv"\]="true";
response\["enable_debit_msr"\]="true";
response\["enable_tip_adjust"\]="true";
response\["enable_contactless"\]="true";

@PUT/paymentengine/devices/:devicekey:/terminal-config@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";
request\["enable_emv"\]="true";
request\["enable_debit_msr"\]="true";
request\["enable_tip_adjust"\]="true";
request\["enable_contactless"\]="true";

var response = USAePay.API.Paymentengine.Devices.Terminal-config.Put(request);

@PUT/paymentengine/devices/:devicekey:/terminal-config@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@POST/paymentengine/devices/:devicekey:/kick@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["devicekey"\]="Example_devicekey";

var response = USAePay.API.Paymentengine.Devices.Kick.Post(request);

@POST/paymentengine/devices/:devicekey:/kick@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="device";
response\["key"\]="sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r";
response\["apikeyid"\]="ntC8nP31Moh0wtvYT";
response\["terminal_type"\]="standalone";
response\["status"\]="ntC8nP31Moh0wtvYT";
response\["name"\]="ntC8nP31Moh0wtvYT";
    IDictionary<string, object> settings = new Dictionary<string, object>();
    settings\["timeout"\]="30";
    settings\["enable_standalone"\]="false";
    settings\["share_device"\]="false";
    settings\["notify_update"\]="true";
    settings\["notify_update_next"\]="true";
    settings\["sleep_battery_device"\]="5";
    settings\["sleep_battery_display"\]="3";
    settings\["sleep_powered_device"\]="10";
    settings\["sleep_powered_display"\]="8";
response\["settings"\]="settings";
    IDictionary<string, object> terminal_info = new Dictionary<string, object>();
    terminal_info\["make"\]="Castle";
    terminal_info\["model"\]="Vega3000";
    terminal_info\["revision"\]="18043001-0055.00";
    terminal_info\["serial"\]="011118170300198";
    terminal_info\["key_pin"\]="FFFF5B04";
    terminal_info\["key_pan"\]="FF908A";
response\["terminal_info"\]="terminal_info";
    IDictionary<string, object> terminal_config = new Dictionary<string, object>();
    terminal_config\["enable_emv"\]="true";
    terminal_config\["enable_debit_msr"\]="true";
    terminal_config\["enable_tip_adjust"\]="true";
    terminal_config\["enable_contactless"\]="true";
response\["terminal_config"\]="terminal_config";
response\["pairing_code"\]="690520";
response\["expiration"\]="2019-10-29 11:59:28";

@GET/products/:product_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["product_key"\]="Example_product_key";

var response = USAePay.API.Products.Get(request);

@GET/products/:product_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product";
response\["key"\]="80v96p6rx2k6sktw";
response\["product_refnum"\]="2";
response\["name"\]="Botts Every Flavor Beans";
response\["price"\]="2.00";
response\["enabled"\]="True";
response\["taxable"\]="True";
response\["categoryid"\]="1238710";
response\["commodity_code"\]="3122";
response\["description"\]="Every flavor you can imagine and then some.";
response\["list_price"\]="3.00";
response\["manufacturer"\]="Jelly Belly";
response\["merch_productid"\]="EXA1234";
response\["physicalgood"\]="True";
response\["ship_weight"\]="1.2 oz";
response\["sku"\]="123456789";
response\["upc"\]="999999999";
response\["weight"\]="1.2 oz";
response\["wholesale_price"\]="3.22";
response\["created"\]="";
response\["modified"\]="";

@GET/products@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="37";
request\["offset"\]="50";

var response = USAePay.API.Products.Get(request);

@GET/products@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="product";
        dataItem\["key"\]="80v96p6rx2k6sktw";
        dataItem\["product_refnum"\]="2";
        dataItem\["name"\]="Botts Every Flavor Beans";
        dataItem\["price"\]="2.00";
        dataItem\["enabled"\]="True";
        dataItem\["taxable"\]="True";
        dataItem\["categoryid"\]="1238710";
        dataItem\["commodity_code"\]="3122";
        dataItem\["description"\]="Every flavor you can imagine and then some.";
        dataItem\["list_price"\]="3.00";
        dataItem\["manufacturer"\]="Jelly Belly";
        dataItem\["merch_productid"\]="EXA1234";
        dataItem\["physicalgood"\]="True";
        dataItem\["ship_weight"\]="1.2 oz";
        dataItem\["sku"\]="123456789";
        dataItem\["upc"\]="999999999";
        dataItem\["weight"\]="1.2 oz";
        dataItem\["wholesale_price"\]="3.22";
        dataItem\["created"\]="";
        dataItem\["modified"\]="";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/products@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["name"\]="Botts Every Flavor Beans";
request\["price"\]="2.00";
request\["enabled"\]="True";
request\["taxable"\]="True";
request\["categoryid"\]="1238710";
request\["commodity_code"\]="3122";
request\["description"\]="Every flavor you can imagine and then some.";
request\["list_price"\]="3.00";
request\["manufacturer"\]="Jelly Belly";
request\["merch_productid"\]="EXA1234";
request\["physicalgood"\]="True";
request\["ship_weight"\]="1.2 oz";
request\["sku"\]="123456789";
request\["upc"\]="999999999";
request\["weight"\]="1.2 oz";
request\["wholesale_price"\]="3.22";

var response = USAePay.API.Products.Post(request);

@POST/products@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product";
response\["key"\]="80v96p6rx2k6sktw";
response\["product_refnum"\]="2";
response\["name"\]="Botts Every Flavor Beans";
response\["price"\]="2.00";
response\["enabled"\]="True";
response\["taxable"\]="True";
response\["categoryid"\]="1238710";
response\["commodity_code"\]="3122";
response\["description"\]="Every flavor you can imagine and then some.";
response\["list_price"\]="3.00";
response\["manufacturer"\]="Jelly Belly";
response\["merch_productid"\]="EXA1234";
response\["physicalgood"\]="True";
response\["ship_weight"\]="1.2 oz";
response\["sku"\]="123456789";
response\["upc"\]="999999999";
response\["weight"\]="1.2 oz";
response\["wholesale_price"\]="3.22";
response\["created"\]="";
response\["modified"\]="";

@DELETE/products/:product_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["product_key"\]="Example_product_key";

var response = USAePay.API.Products.Delete(request);

@DELETE/products/:product_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/products/:product_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["product_key"\]="Example_product_key";
request\["name"\]="Botts Every Flavor Beans";
request\["price"\]="2.00";
request\["enabled"\]="True";
request\["taxable"\]="True";
request\["categoryid"\]="1238710";
request\["commodity_code"\]="3122";
request\["description"\]="Every flavor you can imagine and then some.";
request\["list_price"\]="3.00";
request\["manufacturer"\]="Jelly Belly";
request\["merch_productid"\]="EXA1234";
request\["physicalgood"\]="True";
request\["ship_weight"\]="1.2 oz";
request\["sku"\]="123456789";
request\["upc"\]="999999999";
request\["weight"\]="1.2 oz";
request\["wholesale_price"\]="3.22";

var response = USAePay.API.Products.Put(request);

@PUT/products/:product_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product";
response\["key"\]="80v96p6rx2k6sktw";
response\["product_refnum"\]="2";
response\["name"\]="Botts Every Flavor Beans";
response\["price"\]="2.00";
response\["enabled"\]="True";
response\["taxable"\]="True";
response\["categoryid"\]="1238710";
response\["commodity_code"\]="3122";
response\["description"\]="Every flavor you can imagine and then some.";
response\["list_price"\]="3.00";
response\["manufacturer"\]="Jelly Belly";
response\["merch_productid"\]="EXA1234";
response\["physicalgood"\]="True";
response\["ship_weight"\]="1.2 oz";
response\["sku"\]="123456789";
response\["upc"\]="999999999";
response\["weight"\]="1.2 oz";
response\["wholesale_price"\]="3.22";
response\["created"\]="";
response\["modified"\]="";

@GET/products/categories/:category_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["category_key"\]="Example_category_key";

var response = USAePay.API.Products.Categories.Get(request);

@GET/products/categories/:category_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product_category";
response\["key"\]="80v96p6rx2k6sktw";
response\["name"\]="Botts Every Flavor Beans";

@GET/products/categories@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="93";
request\["offset"\]="93";

var response = USAePay.API.Products.Categories.Get(request);

@GET/products/categories@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="product_category";
        dataItem\["key"\]="80v96p6rx2k6sktw";
        dataItem\["name"\]="Botts Every Flavor Beans";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/products/categories@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["name"\]="Botts Every Flavor Beans";

var response = USAePay.API.Products.Categories.Post(request);

@POST/products/categories@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product_category";
response\["key"\]="80v96p6rx2k6sktw";
response\["name"\]="Botts Every Flavor Beans";

@DELETE/products/categories/:category_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["category_key"\]="Example_category_key";

var response = USAePay.API.Products.Categories.Delete(request);

@DELETE/products/categories/:category_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@PUT/products/categories/:category_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["category_key"\]="Example_category_key";
request\["name"\]="Botts Every Flavor Beans";

var response = USAePay.API.Products.Categories.Put(request);

@PUT/products/categories/:category_key:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="product_category";
response\["key"\]="80v96p6rx2k6sktw";
response\["name"\]="Botts Every Flavor Beans";

@POST/tokens@

IDictionary<string, object> request = new Dictionary<string, object>();
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="Minerva McGonnegall";
    creditcard\["number"\]="4000100011112224";
    creditcard\["expiration"\]="0426"
request\["creditcard"\]="creditcard";
    IDictionary<string, object> customer = new Dictionary<string, object>();
    customer\["custkey"\]="9sddg0ccd915pdbq";
    customer\["paymethod_key"\]="2n02pc6k26jkfkh1b";
request\["customer"\]="customer";
    IList<IDictionary<string, object>> list = new List<IDictionary<string, object>>();
        IDictionary<string, object> listItem = new Dictionary<string, object>();
        listItem\["custkey"\]="9sddg0ccd915pdbq";
        listItem\["paymethod_key"\]="2n02pc6k26jkfkh1b";
    list.Add(listItem);
request\["list"\]="list";

var response = USAePay.API.Tokens.Post(request);

@POST/tokens@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="token";
response\["key"\]="p4xe-9ax3-26f4-pi6h";
    IDictionary<string, object> token = new Dictionary<string, object>();
    token\["type"\]="token";
    token\["key"\]="p4xe-9ax3-26f4-pi6h";
    token\["card_key"\]="p4xe-9ax3-26f4-pi6h";
    token\["cardref"\]="p4xe-9ax3-26f4-pi6h";
    token\["masked_card_number"\]="XXXXXXXXXXXX2226";
    token\["card_type"\]="Visa";
response\["token"\]="token";

@GET/tokens/:cardref:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["cardref"\]="Example_cardref";

var response = USAePay.API.Tokens.Get(request);

@GET/tokens/:cardref:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="token";
response\["key"\]="p4xe-9ax3-26f4-pi6h";
response\["card_key"\]="p4xe-9ax3-26f4-pi6h";
response\["cardref"\]="p4xe-9ax3-26f4-pi6h";
response\["masked_card_number"\]="XXXXXXXXXXXX2226";
response\["card_type"\]="Visa";

@GET/transactions/:trankey:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["trankey"\]="Example_trankey";

var response = USAePay.API.Transactions.Get(request);

@GET/transactions/:trankey:@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="transaction";
response\["key"\]="dnfwxwhz5kvnbgb";
response\["refnum"\]="100061";
response\["created"\]="2018-12-04 10:48:44";
response\["trantype_code"\]="S";
response\["trantype"\]="Credit Card Sale";
response\["result_code"\]="A";
response\["result"\]="Approved";
response\["error_code"\]="12";
response\["error"\]="Card Number was not between 13 and 16 digits";
response\["authcode"\]="314407";
response\["status_code"\]="P";
response\["status"\]="Authorized (Pending Settlement)";
response\["proc_refnum"\]="18120443975126";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="Minerva McGonnegall";
    creditcard\["number"\]="4444xxxxxxxx1111";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="swiped";
    creditcard\["avs_street"\]="1234 Portkey Ave";
    creditcard\["avs_postalcode"\]="90006";
response\["creditcard"\]="creditcard";
    IDictionary<string, object> check = new Dictionary<string, object>();
    check\["accountholder"\]="Remus Lupin";
    check\["routing"\]="123456789";
    check\["account"\]="324523524";
    check\["account_type"\]="checking";
response\["check"\]="check";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="N";
    cvc\["result"\]="No Match";
response\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="ft1m9m5p9wgd9mb";
    batch\["batchrefnum"\]="12345678";
    batch\["sequence"\]="2902";
response\["batch"\]="batch";
response\["amount"\]="50";
    IDictionary<string, object> amount_detail = new Dictionary<string, object>();
    amount_detail\["subtotal"\]="40.00";
    amount_detail\["tax"\]="10.00";
    amount_detail\["enable_partialauth"\]="false";
response\["amount_detail"\]="amount_detail";
response\["ponum"\]="af416fsd5";
response\["invoice"\]="98454685";
response\["orderid"\]="98454685";
response\["description"\]="Antique Pensieve";
    IDictionary<string, object> billing_address = new Dictionary<string, object>();
    billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    billing_address\["street"\]="123 Astronomy Tower";
    billing_address\["postalcode"\]="10005";
response\["billing_address"\]="billing_address";
    IDictionary<string, object> shipping_address = new Dictionary<string, object>();
    shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
    shipping_address\["street"\]="123 Astronomy Tower";
    shipping_address\["postalcode"\]="10005";
response\["shipping_address"\]="shipping_address";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["description"\]="See into your past...";
        lineitemsItem\["size"\]="Large";
        lineitemsItem\["color"\]="Bronze";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["list_price"\]="500.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["sku"\]="68453423";
        lineitemsItem\["commoditycode"\]="535";
        lineitemsItem\["discountamount"\]="0";
        lineitemsItem\["discountrate"\]="0";
        lineitemsItem\["taxable"\]="";
        lineitemsItem\["taxamount"\]="45.00";
        lineitemsItem\["taxclass"\]="NA";
        lineitemsItem\["taxrate"\]="10";
        lineitemsItem\["um"\]="EA";
        lineitemsItem\["category"\]="Antiques";
        lineitemsItem\["manufacturer"\]="The Ancients";
    lineitems.Add(lineitemsItem);
response\["lineitems"\]="lineitems";
response\["comments"\]="Powerful magical object. Use with caution.";
response\["tranterm"\]="multilane";
response\["clerk"\]="Madame Malkin";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response\["receipts"\]="receipts";
    IDictionary<string, object> customer = new Dictionary<string, object>();
    customer\["custkey"\]="ksddgpqgpbs5zkmb";
    customer\["custid"\]="10275538";
response\["customer"\]="customer";
response\["customer_email"\]="noreply@gmail.com";
    IDictionary<string, object> bin = new Dictionary<string, object>();
    bin\["bin"\]="444455";
    bin\["type"\]="Debit";
    bin\["issuer"\]="Visa";
    bin\["bank"\]="Chase Bank";
    bin\["country"\]="US";
    bin\["country_name"\]="United States";
    bin\["country_iso"\]="CA";
    bin\["location"\]="http://www.jpmorganchase.com";
    bin\["phone"\]="USA";
    bin\["category"\]="";
response\["bin"\]="bin";
response\["clientip"\]="Madame Malkin";
response\["source_name"\]="Madame Malkin";

@GET/transactions@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["limit"\]="86";
request\["offset"\]="78";
request\["fuzzy"\]="32";
request\["filters"\]="exampleFilter";

var response = USAePay.API.Transactions.Get(request);

@GET/transactions@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="list";
response\["limit"\]="0";
response\["offset"\]="20";
    IList<IDictionary<string, object>> data = new List<IDictionary<string, object>>();
        IDictionary<string, object> dataItem = new Dictionary<string, object>();
        dataItem\["type"\]="transaction";
        dataItem\["key"\]="dnfwxwhz5kvnbgb";
        dataItem\["refnum"\]="100061";
        dataItem\["created"\]="2018-12-04 10:48:44";
        dataItem\["trantype_code"\]="S";
        dataItem\["trantype"\]="Credit Card Sale";
        dataItem\["result_code"\]="A";
        dataItem\["result"\]="Approved";
        dataItem\["error_code"\]="12";
        dataItem\["error"\]="Card Number was not between 13 and 16 digits";
        dataItem\["authcode"\]="314407";
        dataItem\["status_code"\]="P";
        dataItem\["status"\]="Authorized (Pending Settlement)";
        dataItem\["proc_refnum"\]="18120443975126";
            IDictionary<string, object> creditcard = new Dictionary<string, object>();
            creditcard\["cardholder"\]="Minerva McGonnegall";
            creditcard\["number"\]="4444xxxxxxxx1111";
            creditcard\["category_code"\]="A";
            creditcard\["entry_mode"\]="swiped";
            creditcard\["avs_street"\]="1234 Portkey Ave";
            creditcard\["avs_postalcode"\]="90006";
        dataItem\["creditcard"\]="creditcard";
            IDictionary<string, object> check = new Dictionary<string, object>();
            check\["accountholder"\]="Remus Lupin";
            check\["routing"\]="123456789";
            check\["account"\]="324523524";
            check\["account_type"\]="checking";
        dataItem\["check"\]="check";
            IDictionary<string, object> avs = new Dictionary<string, object>();
            avs\["result_code"\]="YYY";
            avs\["result"\]="Address: Match & 5 Digit Zip: Match";
        dataItem\["avs"\]="avs";
            IDictionary<string, object> cvc = new Dictionary<string, object>();
            cvc\["result_code"\]="N";
            cvc\["result"\]="No Match";
        dataItem\["cvc"\]="cvc";
            IDictionary<string, object> batch = new Dictionary<string, object>();
            batch\["type"\]="batch";
            batch\["key"\]="ft1m9m5p9wgd9mb";
            batch\["batchrefnum"\]="12345678";
            batch\["sequence"\]="2902";
        dataItem\["batch"\]="batch";
        dataItem\["amount"\]="50";
            IDictionary<string, object> amount_detail = new Dictionary<string, object>();
            amount_detail\["subtotal"\]="40.00";
            amount_detail\["tax"\]="10.00";
            amount_detail\["enable_partialauth"\]="false";
        dataItem\["amount_detail"\]="amount_detail";
        dataItem\["ponum"\]="af416fsd5";
        dataItem\["invoice"\]="98454685";
        dataItem\["orderid"\]="98454685";
        dataItem\["description"\]="Antique Pensieve";
            IDictionary<string, object> billing_address = new Dictionary<string, object>();
            billing_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            billing_address\["street"\]="123 Astronomy Tower";
            billing_address\["postalcode"\]="10005";
        dataItem\["billing_address"\]="billing_address";
            IDictionary<string, object> shipping_address = new Dictionary<string, object>();
            shipping_address\["company"\]="Hogwarts School of Witchcraft and Wizardry";
            shipping_address\["street"\]="123 Astronomy Tower";
            shipping_address\["postalcode"\]="10005";
        dataItem\["shipping_address"\]="shipping_address";
            IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
                IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
                lineitemsItem\["name"\]="Antique Pensieve";
                lineitemsItem\["description"\]="See into your past...";
                lineitemsItem\["size"\]="Large";
                lineitemsItem\["color"\]="Bronze";
                lineitemsItem\["cost"\]="450.00";
                lineitemsItem\["list_price"\]="500.00";
                lineitemsItem\["qty"\]="1";
                lineitemsItem\["sku"\]="68453423";
                lineitemsItem\["commoditycode"\]="535";
                lineitemsItem\["discountamount"\]="0";
                lineitemsItem\["discountrate"\]="0";
                lineitemsItem\["taxable"\]="";
                lineitemsItem\["taxamount"\]="45.00";
                lineitemsItem\["taxclass"\]="NA";
                lineitemsItem\["taxrate"\]="10";
                lineitemsItem\["um"\]="EA";
                lineitemsItem\["category"\]="Antiques";
                lineitemsItem\["manufacturer"\]="The Ancients";
            lineitems.Add(lineitemsItem);
        dataItem\["lineitems"\]="lineitems";
        dataItem\["comments"\]="Powerful magical object. Use with caution.";
        dataItem\["tranterm"\]="multilane";
        dataItem\["clerk"\]="Madame Malkin";
            IDictionary<string, object> receipts = new Dictionary<string, object>();
            receipts\["customer"\]="Mail Sent Successfully";
            receipts\["merchant"\]="Mail Sent Successfully";
        dataItem\["receipts"\]="receipts";
            IDictionary<string, object> customer = new Dictionary<string, object>();
            customer\["custkey"\]="ksddgpqgpbs5zkmb";
            customer\["custid"\]="10275538";
        dataItem\["customer"\]="customer";
        dataItem\["customer_email"\]="noreply@gmail.com";
            IDictionary<string, object> bin = new Dictionary<string, object>();
            bin\["bin"\]="444455";
            bin\["type"\]="Debit";
            bin\["issuer"\]="Visa";
            bin\["bank"\]="Chase Bank";
            bin\["country"\]="US";
            bin\["country_name"\]="United States";
            bin\["country_iso"\]="CA";
            bin\["location"\]="http://www.jpmorganchase.com";
            bin\["phone"\]="USA";
            bin\["category"\]="";
        dataItem\["bin"\]="bin";
        dataItem\["clientip"\]="Madame Malkin";
        dataItem\["source_name"\]="Madame Malkin";
    data.Add(dataItem);
response\["data"\]="data";
response\["total"\]="42";

@POST/transactions@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["command"\]="sale";
request\["invoice"\]="98454685";
request\["ponum"\]="af416fsd5";
request\["description"\]="Antique Pensieve";
request\["comments"\]="Powerful magical object. Use with caution.";
request\["email"\]="brian@hogwarts.com";
request\["send_receipt"\]="1";
request\["ignore_duplicate"\]="1";
request\["merchemailaddr"\]="receipts@fandb.net";
request\["amount"\]="500.00";
    IDictionary<string, object> amount_detail = new Dictionary<string, object>();
    amount_detail\["subtotal"\]="450.00";
    amount_detail\["tax"\]="45.00";
    amount_detail\["tip"\]="5.00";
    amount_detail\["discount"\]="50.00";
    amount_detail\["shipping"\]="50.00";
request\["amount_detail"\]="amount_detail";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["number"\]="4444333322221111";
    creditcard\["expiration"\]="0426"
    creditcard\["cvc"\]="123";
    creditcard\["avs_street"\]="1234 Portkey Ave";
    creditcard\["avs_zip"\]="12345";
request\["creditcard"\]="creditcard";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["is_debt"\]="";
    traits\["is_bill_pay"\]="";
    traits\["is_recurring"\]="";
    traits\["is_healthcare"\]="";
    traits\["is_cash_advance"\]="";
request\["traits"\]="traits";
request\["custkey"\]="ksddgpqgpbs5zkmb";
    IDictionary<string, object> billing_address = new Dictionary<string, object>();
    billing_address\["firstname"\]="Albus";
    billing_address\["lastname"\]="Dumbledore";
    billing_address\["street"\]="123 Astronomy Tower";
    billing_address\["street2"\]="Suite 1";
    billing_address\["city"\]="Phoenix";
    billing_address\["state"\]="CA";
    billing_address\["postalcode"\]="10005";
    billing_address\["country"\]="USA";
    billing_address\["phone"\]="555-253-3673";
    billing_address\["fax"\]="666-253-3673";
request\["billing_address"\]="billing_address";
    IDictionary<string, object> shipping_address = new Dictionary<string, object>();
    shipping_address\["firstname"\]="Aberforth";
    shipping_address\["lastname"\]="Dumbledore";
    shipping_address\["street"\]="987 HogsHead St";
    shipping_address\["city"\]="Hogsmead";
    shipping_address\["state"\]="WY";
    shipping_address\["postalcode"\]="30005";
    shipping_address\["country"\]="USA";
    shipping_address\["phone"\]="555-253-3673";
request\["shipping_address"\]="shipping_address";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["product_key"\]="ds4bb5ckg059vdn8";
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["tax_amount"\]="50.00";
        lineitemsItem\["location_key"\]="dnyyjc8s2vbz8hb33";
        lineitemsItem\["list_price"\]="500.00";
    lineitems.Add(lineitemsItem);
request\["lineitems"\]="lineitems";
    IDictionary<string, object> custom_fields = new Dictionary<string, object>();
    custom_fields\["1"\]="Gryffindor";
    custom_fields\["2"\]="Headmaster";
request\["custom_fields"\]="custom_fields";

var response = USAePay.API.Transactions.Post(request);

@POST/transactions@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["type"\]="transaction";
response\["key"\]="dnfwxwhz5kvnbgb";
response\["refnum"\]="100061";
response\["is_duplicate"\]="N";
response\["result_code"\]="A";
response\["result"\]="Approved";
response\["authcode"\]="314407";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx1111";
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response\["creditcard"\]="creditcard";
response\["invoice"\]="98454685";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="N";
    cvc\["result"\]="No Match";
response\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response\["batch"\]="batch";
response\["auth_amount"\]="500.00";
response\["trantype"\]="Credit Card Sale";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> request_token_sale = new Dictionary<string, object>();
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="dx0c3ns6xips28h3";
    creditcard\["cvc"\]="123";
request_token_sale\["creditcard"\]="creditcard";
request_token_sale\["command"\]="sale";
request_token_sale\["invoice"\]="101";
request_token_sale\["ponum"\]="af416fsd5";
request_token_sale\["description"\]="Woolen Socks";
request_token_sale\["comments"\]="Best socks in the world.";
request_token_sale\["amount"\]="17.99";

var response = USAePay.API.Transactions.Post(request_token_sale);

@POST/transactions@

IDictionary<string, object> response_token_sale = new Dictionary<string, object>();
response_token_sale\["type"\]="transaction";
response_token_sale\["key"\]="nnfkg4y0452kztm";
response_token_sale\["refnum"\]="100071";
response_token_sale\["is_duplicate"\]="N";
response_token_sale\["result_code"\]="A";
response_token_sale\["result"\]="Approved";
response_token_sale\["authcode"\]="329045";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx7779";
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_token_sale\["creditcard"\]="creditcard";
response_token_sale\["invoice"\]="101";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response_token_sale\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="N";
    cvc\["result"\]="No Match";
response_token_sale\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_token_sale\["batch"\]="batch";
response_token_sale\["auth_amount"\]="17.99";
response_token_sale\["trantype"\]="Credit Card Sale";

@POST/transactions@

IDictionary<string, object> request_paymentkey_sale = new Dictionary<string, object>();
request_paymentkey_sale\["payment_key"\]="02zxfg87ty824";
request_paymentkey_sale\["command"\]="sale";
request_paymentkey_sale\["invoice"\]="101";
request_paymentkey_sale\["ponum"\]="af416fsd5";
request_paymentkey_sale\["description"\]="Woolen Socks";
request_paymentkey_sale\["comments"\]="Best socks in the world.";
request_paymentkey_sale\["amount"\]="17.99";

var response = USAePay.API.Transactions.Post(request_paymentkey_sale);

@POST/transactions@

IDictionary<string, object> response_paymentkey_sale = new Dictionary<string, object>();
response_paymentkey_sale\["type"\]="transaction";
response_paymentkey_sale\["key"\]="nnfkg4y0452kztm";
response_paymentkey_sale\["refnum"\]="100071";
response_paymentkey_sale\["is_duplicate"\]="N";
response_paymentkey_sale\["result_code"\]="A";
response_paymentkey_sale\["result"\]="Approved";
response_paymentkey_sale\["authcode"\]="329045";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx7779";
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_paymentkey_sale\["creditcard"\]="creditcard";
response_paymentkey_sale\["invoice"\]="101";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response_paymentkey_sale\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="N";
    cvc\["result"\]="No Match";
response_paymentkey_sale\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_paymentkey_sale\["batch"\]="batch";
response_paymentkey_sale\["auth_amount"\]="17.99";
response_paymentkey_sale\["trantype"\]="Credit Card Sale";

@POST/transactions@

IDictionary<string, object> request_check_sale = new Dictionary<string, object>();
request_check_sale\["command"\]="check:sale";
request_check_sale\["invoice"\]="101";
request_check_sale\["ponum"\]="af416fsd5";
request_check_sale\["description"\]="Wolfsbane Potion";
request_check_sale\["amount"\]="75.00";
    IDictionary<string, object> check = new Dictionary<string, object>();
    check\["accountholder"\]="Remus Lupin";
    check\["routing"\]="123456789";
    check\["account"\]="324523524";
    check\["account_type"\]="checking";
    check\["number"\]="101";
    check\["format"\]="WEB";
request_check_sale\["check"\]="check";

var response = USAePay.API.Transactions.Post(request_check_sale);

@POST/transactions@

IDictionary<string, object> response_check_sale = new Dictionary<string, object>();
response_check_sale\["command"\]="check:sale";
response_check_sale\["invoice"\]="101";
response_check_sale\["ponum"\]="af416fsd5";
response_check_sale\["description"\]="Wolfsbane Potion";
response_check_sale\["amount"\]="75.00";
    IDictionary<string, object> check = new Dictionary<string, object>();
    check\["accountholder"\]="Remus Lupin";
    check\["routing"\]="123456789";
    check\["account"\]="324523524";
    check\["account_type"\]="checking";
    check\["number"\]="101";
    check\["format"\]="WEB";
response_check_sale\["check"\]="check";

@POST/transactions@

IDictionary<string, object> request_cash_sale = new Dictionary<string, object>();
request_cash_sale\["command"\]="cash:sale";
request_cash_sale\["amount"\]="5.00";
    IDictionary<string, object> amount_detail = new Dictionary<string, object>();
    amount_detail\["tax"\]="1.00";
    amount_detail\["tip"\]="0.50";
request_cash_sale\["amount_detail"\]="amount_detail";

var response = USAePay.API.Transactions.Post(request_cash_sale);

@POST/transactions@

IDictionary<string, object> response_cash_sale = new Dictionary<string, object>();
response_cash_sale\["type"\]="transaction";
response_cash_sale\["key"\]="3nft52wn1wy7rx8";
response_cash_sale\["refnum"\]="100077";
response_cash_sale\["is_duplicate"\]="N";
response_cash_sale\["result_code"\]="A";
response_cash_sale\["result"\]="Approved";
response_cash_sale\["authcode"\]="";

@POST/transactions@

IDictionary<string, object> request_quicksale = new Dictionary<string, object>();
request_quicksale\["command"\]="quicksale";
request_quicksale\["trankey"\]="gnfkd12yhsr7mbs";
request_quicksale\["amount"\]="5.00";

var response = USAePay.API.Transactions.Post(request_quicksale);

@POST/transactions@

IDictionary<string, object> response_quicksale_cc = new Dictionary<string, object>();
response_quicksale_cc\["type"\]="transaction";
response_quicksale_cc\["key"\]="mnfwvcf1thnvrgb";
response_quicksale_cc\["refnum"\]="100070";
response_quicksale_cc\["is_duplicate"\]="N";
response_quicksale_cc\["result_code"\]="A";
response_quicksale_cc\["result"\]="Approved";
response_quicksale_cc\["authcode"\]="328906";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response_quicksale_cc\["avs"\]="avs";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["category_code"\]="A";
response_quicksale_cc\["creditcard"\]="creditcard";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="P";
    cvc\["result"\]="Not Processed";
response_quicksale_cc\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_quicksale_cc\["batch"\]="batch";
response_quicksale_cc\["auth_amount"\]="5.00";
response_quicksale_cc\["trantype"\]="Credit Card Sale";

@POST/transactions@

IDictionary<string, object> response_quicksale_check = new Dictionary<string, object>();
response_quicksale_check\["type"\]="transaction";
response_quicksale_check\["key"\]="5nfty0s5m91vb3b";
response_quicksale_check\["refnum"\]="100079";
response_quicksale_check\["is_duplicate"\]="N";
response_quicksale_check\["result_code"\]="A";
response_quicksale_check\["result"\]="Approved";
response_quicksale_check\["authcode"\]="TM9406";
response_quicksale_check\["proc_refnum"\]="18120443978215";
response_quicksale_check\["trantype"\]="Check Sale";

@POST/transactions@

IDictionary<string, object> request_authonly = new Dictionary<string, object>();
request_authonly\["command"\]="authonly";
request_authonly\["invoice"\]="98454685";
request_authonly\["ponum"\]="af416fsd5";
request_authonly\["description"\]="Antique Pensieve";
request_authonly\["comments"\]="Powerful magical object. Use with caution.";
request_authonly\["email"\]="brian@hogwarts.com";
request_authonly\["send_receipt"\]="1";
request_authonly\["ignore_duplicate"\]="1";
request_authonly\["merchemailaddr"\]="receipts@fandb.net";
request_authonly\["amount"\]="500.00";
    IDictionary<string, object> amount_detail = new Dictionary<string, object>();
    amount_detail\["subtotal"\]="450.00";
    amount_detail\["tax"\]="45.00";
    amount_detail\["tip"\]="5.00";
    amount_detail\["discount"\]="50.00";
    amount_detail\["shipping"\]="50.00";
request_authonly\["amount_detail"\]="amount_detail";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["number"\]="4444333322221111";
    creditcard\["expiration"\]="0426"
    creditcard\["cvc"\]="123";
    creditcard\["avs_street"\]="1234 Portkey Ave";
    creditcard\["avs_zip"\]="12345";
request_authonly\["creditcard"\]="creditcard";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["is_debt"\]="";
    traits\["is_bill_pay"\]="";
    traits\["is_recurring"\]="";
    traits\["is_healthcare"\]="";
    traits\["is_cash_advance"\]="";
request_authonly\["traits"\]="traits";
request_authonly\["custkey"\]="ksddgpqgpbs5zkmb";
    IDictionary<string, object> billing_address = new Dictionary<string, object>();
    billing_address\["firstname"\]="Albus";
    billing_address\["lastname"\]="Dumbledore";
    billing_address\["street"\]="123 Astronomy Tower";
    billing_address\["street2"\]="Suite 1";
    billing_address\["city"\]="Phoenix";
    billing_address\["state"\]="CA";
    billing_address\["postalcode"\]="10005";
    billing_address\["country"\]="USA";
    billing_address\["phone"\]="555-253-3673";
    billing_address\["fax"\]="666-253-3673";
request_authonly\["billing_address"\]="billing_address";
    IDictionary<string, object> shipping_address = new Dictionary<string, object>();
    shipping_address\["firstname"\]="Aberforth";
    shipping_address\["lastname"\]="Dumbledore";
    shipping_address\["street"\]="987 HogsHead St";
    shipping_address\["city"\]="Hogsmead";
    shipping_address\["state"\]="WY";
    shipping_address\["postalcode"\]="30005";
    shipping_address\["country"\]="USA";
    shipping_address\["phone"\]="555-253-3673";
request_authonly\["shipping_address"\]="shipping_address";
    IList<IDictionary<string, object>> lineitems = new List<IDictionary<string, object>>();
        IDictionary<string, object> lineitemsItem = new Dictionary<string, object>();
        lineitemsItem\["product_key"\]="ds4bb5ckg059vdn8";
        lineitemsItem\["name"\]="Antique Pensieve";
        lineitemsItem\["cost"\]="450.00";
        lineitemsItem\["qty"\]="1";
        lineitemsItem\["tax_amount"\]="50.00";
        lineitemsItem\["location_key"\]="dnyyjc8s2vbz8hb33";
        lineitemsItem\["list_price"\]="500.00";
    lineitems.Add(lineitemsItem);
request_authonly\["lineitems"\]="lineitems";
    IDictionary<string, object> custom_fields = new Dictionary<string, object>();
    custom_fields\["1"\]="Gryffindor";
    custom_fields\["2"\]="Headmaster";
request_authonly\["custom_fields"\]="custom_fields";

var response = USAePay.API.Transactions.Post(request_authonly);

@POST/transactions@

IDictionary<string, object> response_authonly = new Dictionary<string, object>();
response_authonly\["type"\]="transaction";
response_authonly\["key"\]="dnfwxwhz5kvnbgb";
response_authonly\["refnum"\]="100061";
response_authonly\["is_duplicate"\]="N";
response_authonly\["result_code"\]="A";
response_authonly\["result"\]="Approved";
response_authonly\["authcode"\]="314407";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx1111";
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_authonly\["creditcard"\]="creditcard";
response_authonly\["invoice"\]="98454685";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response_authonly\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="N";
    cvc\["result"\]="No Match";
response_authonly\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_authonly\["batch"\]="batch";
response_authonly\["auth_amount"\]="500.00";
response_authonly\["trantype"\]="Credit Card Sale";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_authonly\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> request_refund_cc_open = new Dictionary<string, object>();
request_refund_cc_open\["command"\]="cc:credit";
request_refund_cc_open\["amount"\]="100.00";
request_refund_cc_open\["invoice"\]="3579864532";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="Remus Lupin";
    creditcard\["number"\]="4444333322221111";
    creditcard\["expiration"\]="0426"
request_refund_cc_open\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_refund_cc_open);

@POST/transactions@

IDictionary<string, object> response_refund_cc_open = new Dictionary<string, object>();
response_refund_cc_open\["type"\]="transaction";
response_refund_cc_open\["key"\]="lnftkz3fqjc2682";
response_refund_cc_open\["refnum"\]="100095";
response_refund_cc_open\["is_duplicate"\]="N";
response_refund_cc_open\["result_code"\]="A";
response_refund_cc_open\["result"\]="Approved";
response_refund_cc_open\["authcode"\]="110118";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx1111";
    creditcard\["cardholder"\]="Remus Lupin";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_refund_cc_open\["creditcard"\]="creditcard";
response_refund_cc_open\["invoice"\]="3579864532";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="   ";
    avs\["result"\]="Unmapped AVS response (   )";
response_refund_cc_open\["avs"\]="avs";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1k3yx5xs37cvb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_refund_cc_open\["batch"\]="batch";
response_refund_cc_open\["auth_amount"\]="100.00";
response_refund_cc_open\["trantype"\]="Credit Card Refund (Credit)";

@POST/transactions@

IDictionary<string, object> request_refund_check_open = new Dictionary<string, object>();
request_refund_check_open\["command"\]="check:credit";
    IDictionary<string, object> check = new Dictionary<string, object>();
    check\["accountholder"\]="Remus Lupin";
    check\["account"\]="324523524";
    check\["routing"\]="123456789";
    check\["account_type"\]="checking";
    check\["number"\]="101";
    check\["format"\]="WEB";
request_refund_check_open\["check"\]="check";
request_refund_check_open\["amount"\]="5.00";

var response = USAePay.API.Transactions.Post(request_refund_check_open);

@POST/transactions@

IDictionary<string, object> response_refund_check_open = new Dictionary<string, object>();
response_refund_check_open\["type"\]="transaction";
response_refund_check_open\["key"\]="6nfj34qh3n8qbhw";
response_refund_check_open\["refnum"\]="21726542";
response_refund_check_open\["is_duplicate"\]="N";
response_refund_check_open\["result_code"\]="A";
response_refund_check_open\["result"\]="Approved";
response_refund_check_open\["authcode"\]="TM5CA5";
response_refund_check_open\["proc_refnum"\]="17092106017626";
response_refund_check_open\["auth_amount"\]="5.00";

@POST/transactions@

IDictionary<string, object> request_refund_cash_open = new Dictionary<string, object>();
request_refund_cash_open\["command"\]="cash:refund";
request_refund_cash_open\["amount"\]="5.00";

var response = USAePay.API.Transactions.Post(request_refund_cash_open);

@POST/transactions@

IDictionary<string, object> response_refund_cash_open = new Dictionary<string, object>();
response_refund_cash_open\["type"\]="transaction";
response_refund_cash_open\["key"\]="onfwht4cdb21r58";
response_refund_cash_open\["refnum"\]="100098";
response_refund_cash_open\["is_duplicate"\]="N";
response_refund_cash_open\["result_code"\]="A";
response_refund_cash_open\["result"\]="Approved";
response_refund_cash_open\["authcode"\]="";
response_refund_cash_open\["invoice"\]="98454685";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_refund_cash_open\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> request_refund_connected = new Dictionary<string, object>();
request_refund_connected\["command"\]="refund";
request_refund_connected\["trankey"\]="hnftkyjj2r93ft2";

var response = USAePay.API.Transactions.Post(request_refund_connected);

@POST/transactions@

IDictionary<string, object> response_refund_connected_cc = new Dictionary<string, object>();
response_refund_connected_cc\["type"\]="transaction";
response_refund_connected_cc\["key"\]="2nf57pywqh09zjs";
response_refund_connected_cc\["refnum"\]="124445986";
response_refund_connected_cc\["is_duplicate"\]="N";
response_refund_connected_cc\["result_code"\]="A";
response_refund_connected_cc\["result"\]="Approved";
response_refund_connected_cc\["authcode"\]="445986";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="   ";
    avs\["result"\]="Unmapped AVS response (   )";
response_refund_connected_cc\["avs"\]="avs";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1k3yx5xs37cvb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_refund_connected_cc\["batch"\]="batch";

@POST/transactions@

IDictionary<string, object> response_refund_connected_check = new Dictionary<string, object>();
response_refund_connected_check\["type"\]="transaction";
response_refund_connected_check\["key"\]="anf0cybmfqt9c63";
response_refund_connected_check\["refnum"\]="100084";
response_refund_connected_check\["is_duplicate"\]="N";
response_refund_connected_check\["result_code"\]="A";
response_refund_connected_check\["result"\]="Approved";
response_refund_connected_check\["authcode"\]="TM3670";

@POST/transactions@

IDictionary<string, object> request_quickrefund = new Dictionary<string, object>();
request_quickrefund\["command"\]="quickrefund";
request_quickrefund\["trankey"\]="dnfwxwhz5kvnbgb";
request_quickrefund\["amount"\]="5.00";

var response = USAePay.API.Transactions.Post(request_quickrefund);

@POST/transactions@

IDictionary<string, object> response_quickrefund_cc = new Dictionary<string, object>();
response_quickrefund_cc\["type"\]="transaction";
response_quickrefund_cc\["key"\]="pnftkk568yskw30";
response_quickrefund_cc\["refnum"\]="100099";
response_quickrefund_cc\["is_duplicate"\]="N";
response_quickrefund_cc\["result_code"\]="A";
response_quickrefund_cc\["result"\]="Approved";
response_quickrefund_cc\["authcode"\]="110122";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx1111";
response_quickrefund_cc\["creditcard"\]="creditcard";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="   ";
    avs\["result"\]="Unmapped AVS response (   )";
response_quickrefund_cc\["avs"\]="avs";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="pt1qxpnx0f5303d";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_quickrefund_cc\["batch"\]="batch";
response_quickrefund_cc\["trantype"\]="Credit Card Refund (Credit)";
response_quickrefund_cc\["auth_amount"\]="5.00";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_quickrefund_cc\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> response_quickrefund_check = new Dictionary<string, object>();
response_quickrefund_check\["type"\]="transaction";
response_quickrefund_check\["key"\]="0nftkkdy9v0kgbb";
response_quickrefund_check\["refnum"\]="100100";
response_quickrefund_check\["is_duplicate"\]="N";
response_quickrefund_check\["result_code"\]="A";
response_quickrefund_check\["result"\]="Approved";
response_quickrefund_check\["authcode"\]="TMF291";
response_quickrefund_check\["proc_refnum"\]="18120544051570";
response_quickrefund_check\["trantype"\]="Reverse ACH";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_quickrefund_check\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> request_creditvoid = new Dictionary<string, object>();
request_creditvoid\["command"\]="creditvoid";
request_creditvoid\["trankey"\]="dnfwxwhz5kvnbgb";

var response = USAePay.API.Transactions.Post(request_creditvoid);

@POST/transactions@

IDictionary<string, object> response_creditvoid_cc = new Dictionary<string, object>();
response_creditvoid_cc\["type"\]="transaction";
response_creditvoid_cc\["key"\]="pnftkk568yskw30";
response_creditvoid_cc\["refnum"\]="100099";
response_creditvoid_cc\["is_duplicate"\]="N";
response_creditvoid_cc\["result_code"\]="A";
response_creditvoid_cc\["result"\]="Approved";
response_creditvoid_cc\["authcode"\]="110122";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx1111";
response_creditvoid_cc\["creditcard"\]="creditcard";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="   ";
    avs\["result"\]="Unmapped AVS response (   )";
response_creditvoid_cc\["avs"\]="avs";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="pt1qxpnx0f5303d";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_creditvoid_cc\["batch"\]="batch";
response_creditvoid_cc\["trantype"\]="Credit Card Refund (Credit)";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_creditvoid_cc\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> response_creditvoid_check = new Dictionary<string, object>();
response_creditvoid_check\["type"\]="transaction";
response_creditvoid_check\["key"\]="0nftkkdy9v0kgbb";
response_creditvoid_check\["refnum"\]="100100";
response_creditvoid_check\["is_duplicate"\]="N";
response_creditvoid_check\["result_code"\]="A";
response_creditvoid_check\["result"\]="Approved";
response_creditvoid_check\["authcode"\]="TMF291";
response_creditvoid_check\["proc_refnum"\]="18120544051570";
response_creditvoid_check\["trantype"\]="Reverse ACH";
    IDictionary<string, object> receipts = new Dictionary<string, object>();
    receipts\["customer"\]="Mail Sent Successfully";
    receipts\["merchant"\]="Mail Sent Successfully";
response_creditvoid_check\["receipts"\]="receipts";

@POST/transactions@

IDictionary<string, object> request_capture = new Dictionary<string, object>();
request_capture\["command"\]="cc:capture";
request_capture\["trankey"\]="4nftw5kqd7bjy82";

var response = USAePay.API.Transactions.Post(request_capture);

@POST/transactions@

IDictionary<string, object> response_capture = new Dictionary<string, object>();
response_capture\["type"\]="transaction";
response_capture\["key"\]="4nftw5kqd7bjy82";
response_capture\["refnum"\]="100104";
response_capture\["is_duplicate"\]="N";
response_capture\["result_code"\]="A";
response_capture\["result"\]="Approved";
response_capture\["authcode"\]="326349";
response_capture\["invoice"\]="98454685";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="pt1qxpnx0f5303d";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_capture\["batch"\]="batch";
response_capture\["auth_amount"\]="500.00";

@POST/transactions@

IDictionary<string, object> request_adjust = new Dictionary<string, object>();
request_adjust\["command"\]="cc:adjust";
request_adjust\["trankey"\]="4nftw5kqd7bjy82";
request_adjust\["amount"\]="3.00";

var response = USAePay.API.Transactions.Post(request_adjust);

@POST/transactions@

IDictionary<string, object> response_adjust = new Dictionary<string, object>();
response_adjust\["type"\]="transaction";
response_adjust\["key"\]="2nfmnj4fxj13b3q";
response_adjust\["refnum"\]="21726798";
response_adjust\["is_duplicate"\]="N";
response_adjust\["result_code"\]="A";
response_adjust\["result"\]="Approved";
response_adjust\["authcode"\]="002048";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_adjust\["batch"\]="batch";
response_adjust\["auth_amount"\]="3.00";

@POST/transactions@

IDictionary<string, object> request_refund_adjust = new Dictionary<string, object>();
request_refund_adjust\["command"\]="refund:adjust";
request_refund_adjust\["refnum"\]="21726766";
request_refund_adjust\["amount"\]="3.00";

var response = USAePay.API.Transactions.Post(request_refund_adjust);

@POST/transactions@

IDictionary<string, object> response_refund_adjust = new Dictionary<string, object>();
response_refund_adjust\["type"\]="transaction";
response_refund_adjust\["key"\]="mnfky8s1mz0gmbd";
response_refund_adjust\["refnum"\]="21726766";
response_refund_adjust\["is_duplicate"\]="N";
response_refund_adjust\["result_code"\]="A";
response_refund_adjust\["result"\]="Approved";
response_refund_adjust\["authcode"\]="002035";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="0t1jyndn769q1vb";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="1";
response_refund_adjust\["batch"\]="batch";
response_refund_adjust\["auth_amount"\]="97.00";

@POST/transactions@

IDictionary<string, object> request_post_authorization = new Dictionary<string, object>();
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4000100611112228";
    creditcard\["expiration"\]="0426"
    creditcard\["cvc"\]="123";
    creditcard\["avs_street"\]="1234 Portkey Ave";
    creditcard\["avs_zip"\]="12345";
request_post_authorization\["creditcard"\]="creditcard";
request_post_authorization\["command"\]="cc:postauth";
request_post_authorization\["authcode"\]="684538";
request_post_authorization\["invoice"\]="101";
request_post_authorization\["ponum"\]="af416fsd5";
request_post_authorization\["description"\]="Woolen Socks";
request_post_authorization\["comments"\]="Best socks in the world.";
request_post_authorization\["send_receipt"\]="1";
request_post_authorization\["amount"\]="17.99";

var response = USAePay.API.Transactions.Post(request_post_authorization);

@POST/transactions@

IDictionary<string, object> response_post_authorization = new Dictionary<string, object>();
response_post_authorization\["type"\]="transaction";
response_post_authorization\["key"\]="inftypr7p2fwxr2";
response_post_authorization\["refnum"\]="100170";
response_post_authorization\["is_duplicate"\]="N";
response_post_authorization\["result_code"\]="A";
response_post_authorization\["result"\]="Approved";
response_post_authorization\["authcode"\]="684538";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4000xxxxxxxx2228";
    creditcard\["cardholder"\]="Hogwarts School of Witchcraft and Wizardry";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_post_authorization\["creditcard"\]="creditcard";
response_post_authorization\["invoice"\]="101";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="ft1m9m5p9wgd9mb";
    batch\["sequence"\]="2902";
response_post_authorization\["batch"\]="batch";
response_post_authorization\["auth_amount"\]="17.99";

@POST/transactions@

IDictionary<string, object> request_void = new Dictionary<string, object>();
request_void\["command"\]="void";
request_void\["trankey"\]="bnfkqy54w4qwtmq";

var response = USAePay.API.Transactions.Post(request_void);

@POST/transactions@

IDictionary<string, object> response_void = new Dictionary<string, object>();
response_void\["type"\]="transaction";
response_void\["key"\]="bnfkqy54w4qwtmq";
response_void\["refnum"\]="21725793";
response_void\["is_duplicate"\]="N";
response_void\["result_code"\]="A";
response_void\["result"\]="Approved";
response_void\["authcode"\]="000973";

@POST/transactions@

IDictionary<string, object> request_void_release = new Dictionary<string, object>();
request_void_release\["command"\]="cc:void:release";
request_void_release\["trankey"\]="dnft1yqgm9rh6b0";

var response = USAePay.API.Transactions.Post(request_void_release);

@POST/transactions@

IDictionary<string, object> response_void_release = new Dictionary<string, object>();
response_void_release\["type"\]="transaction";
response_void_release\["key"\]="dnft1yqgm9rh6b0";
response_void_release\["refnum"\]="21726107";
response_void_release\["is_duplicate"\]="N";
response_void_release\["result_code"\]="A";
response_void_release\["result"\]="Approved";
response_void_release\["authcode"\]="001788";

@POST/transactions@

IDictionary<string, object> request_unvoid = new Dictionary<string, object>();
request_unvoid\["command"\]="unvoid";
request_unvoid\["trankey"\]="bnfkqy54w4qwtmq";

var response = USAePay.API.Transactions.Post(request_unvoid);

@POST/transactions@

IDictionary<string, object> response_unvoid = new Dictionary<string, object>();
response_unvoid\["type"\]="transaction";
response_unvoid\["key"\]="bnfkqy54w4qwtmq";
response_unvoid\["refnum"\]="21725793";
response_unvoid\["is_duplicate"\]="N";
response_unvoid\["result_code"\]="A";
response_unvoid\["result"\]="Approved";
response_unvoid\["authcode"\]="000973";

@POST/transactions@

IDictionary<string, object> request_create_token = new Dictionary<string, object>();
request_create_token\["command"\]="cc:save";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["cardholder"\]="John Doe";
    creditcard\["number"\]="4000100011112224";
    creditcard\["expiration"\]="0426"
    creditcard\["cvc"\]="123";
    creditcard\["avs_street"\]="1234 Main";
    creditcard\["avs_postalcode"\]="12345";
request_create_token\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_create_token);

@POST/transactions@

IDictionary<string, object> response_create_token = new Dictionary<string, object>();
response_create_token\["type"\]="transaction";
response_create_token\["key"\]="";
response_create_token\["refnum"\]="";
response_create_token\["is_duplicate"\]="N";
response_create_token\["result_code"\]="A";
response_create_token\["result"\]="Approved";
response_create_token\["authcode"\]="";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4000xxxxxxxx2224";
    creditcard\["cardholder"\]="John Doe";
response_create_token\["creditcard"\]="creditcard";
    IDictionary<string, object> savedcard = new Dictionary<string, object>();
    savedcard\["type"\]="Visa";
    savedcard\["key"\]="tqb9-o076-tpfk-lb8l";
    savedcard\["cardnumber"\]="4000xxxxxxxx2224";
response_create_token\["savedcard"\]="savedcard";

@POST/transactions@

IDictionary<string, object> request_customer_transaction = new Dictionary<string, object>();
request_customer_transaction\["command"\]="customer:sale";
request_customer_transaction\["custkey"\]="lsddntp1p7hdthms";
request_customer_transaction\["paymethod_key"\]="in02p9swwbnqmcs4s";
request_customer_transaction\["invoice"\]="101";
request_customer_transaction\["ponum"\]="af416fsd5";
request_customer_transaction\["description"\]="Wolfsbane Potion";
request_customer_transaction\["amount"\]="75.00";

var response = USAePay.API.Transactions.Post(request_customer_transaction);

@POST/transactions@

IDictionary<string, object> response_customer_transaction = new Dictionary<string, object>();
response_customer_transaction\["type"\]="transaction";
response_customer_transaction\["key"\]="fnf0c8975sr76rb";
response_customer_transaction\["refnum"\]="100349";
response_customer_transaction\["is_duplicate"\]="N";
response_customer_transaction\["result_code"\]="A";
response_customer_transaction\["result"\]="Approved";
response_customer_transaction\["authcode"\]="351293";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx7779";
    creditcard\["category_code"\]="A";
    creditcard\["entry_mode"\]="Card Not Present, Manually Keyed";
response_customer_transaction\["creditcard"\]="creditcard";
response_customer_transaction\["invoice"\]="101";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="YYY";
    avs\["result"\]="Address: Match & 5 Digit Zip: Match";
response_customer_transaction\["avs"\]="avs";
    IDictionary<string, object> cvc = new Dictionary<string, object>();
    cvc\["result_code"\]="P";
    cvc\["result"\]="Not Processed";
response_customer_transaction\["cvc"\]="cvc";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="et1m9h57b4m26rt";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="2516";
response_customer_transaction\["batch"\]="batch";
response_customer_transaction\["auth_amount"\]="75.00";
response_customer_transaction\["trantype"\]="Credit Card Sale";

@POST/transactions@

IDictionary<string, object> request_customer_refund = new Dictionary<string, object>();
request_customer_refund\["command"\]="customer:refund";
request_customer_refund\["invoice"\]="101";
request_customer_refund\["ponum"\]="af416fsd5";
request_customer_refund\["description"\]="Wolfsbane Potion";
request_customer_refund\["amount"\]="5.00";
request_customer_refund\["custkey"\]="lsddntp1p7hdthms";
request_customer_refund\["paymethod_key"\]="in02p9swwbnqmcs4s";

var response = USAePay.API.Transactions.Post(request_customer_refund);

@POST/transactions@

IDictionary<string, object> response_customer_refund = new Dictionary<string, object>();
response_customer_refund\["type"\]="transaction";
response_customer_refund\["key"\]="gnfkd12kcxh7ng2";
response_customer_refund\["refnum"\]="100350";
response_customer_refund\["is_duplicate"\]="N";
response_customer_refund\["result_code"\]="A";
response_customer_refund\["result"\]="Approved";
response_customer_refund\["authcode"\]="110373";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="4444xxxxxxxx7779";
response_customer_refund\["creditcard"\]="creditcard";
response_customer_refund\["invoice"\]="101";
    IDictionary<string, object> avs = new Dictionary<string, object>();
    avs\["result_code"\]="   ";
    avs\["result"\]="Unmapped AVS response (   )";
response_customer_refund\["avs"\]="avs";
    IDictionary<string, object> batch = new Dictionary<string, object>();
    batch\["type"\]="batch";
    batch\["key"\]="et1m9h57b4m26rt";
    batch\["batchrefnum"\]="409384";
    batch\["sequence"\]="2516";
response_customer_refund\["batch"\]="batch";
response_customer_refund\["trantype"\]="Credit Card Refund (Credit)";

@POST/transactions@

IDictionary<string, object> request_stored_credential_recurring = new Dictionary<string, object>();
request_stored_credential_recurring\["command"\]="sale";
request_stored_credential_recurring\["amount"\]="20";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["stored_credential"\]="recurring";
request_stored_credential_recurring\["traits"\]="traits";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="tyet-xk8x-vpj4-7swq";
    creditcard\["expiration"\]="0426"
request_stored_credential_recurring\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_stored_credential_recurring);

@POST/transactions@

IDictionary<string, object> request_stored_credential_installment = new Dictionary<string, object>();
request_stored_credential_installment\["command"\]="sale";
request_stored_credential_installment\["amount"\]="20";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["stored_credential"\]="installment";
request_stored_credential_installment\["traits"\]="traits";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="tyet-xk8x-vpj4-7swq";
    creditcard\["expiration"\]="0426"
request_stored_credential_installment\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_stored_credential_installment);

@POST/transactions@

IDictionary<string, object> request_stored_credential_ucof = new Dictionary<string, object>();
request_stored_credential_ucof\["command"\]="sale";
request_stored_credential_ucof\["amount"\]="20";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["stored_credential"\]="ucof";
request_stored_credential_ucof\["traits"\]="traits";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="tyet-xk8x-vpj4-7swq";
    creditcard\["expiration"\]="0426"
request_stored_credential_ucof\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_stored_credential_ucof);

@POST/transactions@

IDictionary<string, object> request_stored_credential_customer_intitiated = new Dictionary<string, object>();
request_stored_credential_customer_intitiated\["command"\]="sale";
request_stored_credential_customer_intitiated\["amount"\]="20";
    IDictionary<string, object> traits = new Dictionary<string, object>();
    traits\["stored_credential"\]="customer_intitiated";
request_stored_credential_customer_intitiated\["traits"\]="traits";
    IDictionary<string, object> creditcard = new Dictionary<string, object>();
    creditcard\["number"\]="tyet-xk8x-vpj4-7swq";
    creditcard\["expiration"\]="0426"
request_stored_credential_customer_intitiated\["creditcard"\]="creditcard";

var response = USAePay.API.Transactions.Post(request_stored_credential_customer_intitiated);

@POST/transactions/:trankey:/send@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["trankey"\]="Example_trankey";
request\["toemail"\]="wulfric@hogwarts.com";
request\["template"\]="vterm_customer";

var response = USAePay.API.Transactions.Send.Post(request);

@POST/transactions/:trankey:/send@

IDictionary<string, object> response = new Dictionary<string, object>();
response\["status"\]="success";

@GET/transactions/:trankey:/receipts/:receipt_key:@

IDictionary<string, object> request = new Dictionary<string, object>();
request\["trankey"\]="Example_trankey";
request\["receipt_key"\]="Example_receipt_key";

var response = USAePay.API.Transactions.Receipts.Get(request);

@GET/transactions/:trankey:/receipts/:receipt_key:@

var response = "PGh0bWw+Cgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5OZXcgT3JkZXIgKEN1c3RvbWVyKSBSZWNlaXB0PC90aXRsZT4KICAgIDxzdHlsZT4KCQkjTWFpblJlY2VpcHRCb2R5IHsKCQkJbWF4LXdpZHRoOiA3NTBweDsKCQkJbWFyZ2luOiAwIGF1dG87CgkJfQogICAgICAgIC5iYWNrZ3JvdW5kY29sb3IgewogICAgICAgICAgICBib3JkZXItY29sb3I6ICMwMDM4NUQ7CiAgICAgICAgfQoKICAgICAgICAuZm9yZWdyb3VuZGNvbG9yIHsKICAgICAgICAgICAgYmFja2dyb3VuZDogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvciB7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICMwMDcyQkQ7CiAgICAgICAgfQoKICAgICAgICAuYWNjZW50Y29sb3J0eHQgewogICAgICAgICAgICBjb2xvcjogIzAwNzJCRDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcmhlYWQgewogICAgICAgICAgICBjb2xvcjogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcjIgdGggc3BhbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDA3MkJEICFpbXBvcnRhbnQ7CiAgICAgICAgfQoKICAgICAgIAoKICAgICAgICAuYm9keS1wYWQgewogICAgICAgICAgICBwYWRkaW5nOiAyMHB4IDUwcHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1ib2R5IHsKICAgICAgICAgICAgYm9yZGVyOiA0cHggc29saWQgIzAwMzg1RDsKICAgICAgICAgICAgcGFkZGluZzogMjBweCA1MHB4OwogICAgICAgIH0KCiAgICAgICAgLmZvbnRfdGhpbiB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGxldHRlci1zcGFjaW5nOiAxcHg7CiAgICAgICAgfQoKICAgICAgICAucGFkZGluZy1idDAgewogICAgICAgICAgICBwYWRkaW5nLXRvcDogMHB4OwogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbXBhbnktbmFtZS10ZXh0IHsKICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1uYW1lLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDI1cHggIWltcG9ydGFudDsKICAgICAgICAgICAgdGV4dC1zaGFkb3c6IDFweCAwcHggMXB4IHJnYmEoMTUwLCAxNTAsIDE1MCwgMSk7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIH0KCiAgICAgICAgLnRvdGFsLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1zZWN0aW9uLXRhYmxlIHsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgICB9CgogICAgICAgCiAgICAgICAgdGhlYWQgdGggewogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMTBweDsKICAgICAgICB9CgogICAgICAgIHRoZWFkIHRoIHNwYW4gewogICAgICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuNSk7CiAgICAgICAgfQoKICAgICAgICB0Ym9keSB0ZCB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICAgICAgcGFkZGluZzogMnB4IDA7CiAgICAgICAgfQoKICAgICAgICAuaGVhZGVyewogICAgICAgICAgICBkaXNwbGF5OiBpbmhlcml0OwogICAgICAgIH0KCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KICAgIDx0YWJsZSBpZD0iTWFpblJlY2VpcHRCb2R5IiBjbGFzcz0icmVjZWlwdC1ib2R5IGJvZHktcGFkIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgPHRib2R5PgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSIiIGlkPSJyZWNlaXB0cy1lbWFpbC1pbmZvIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keSBhbGlnbj0iY2VudGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS08dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGNsYXNzPSJsb2dvLWltZyIgc3JjPSIgICIgd2lkdGg9IjE1MCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4tLT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMiBjbGFzcz0icmVjZWlwdF9uYW1lIGNvbXBhbnktbmFtZS10ZXh0IGZvbnRfdGhpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3VyIGNhcmQgaGFzIGJlZW4gY2hhcmdlZCBieSBGbG91cmlzaCAmYW1wOyBCbG90dHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMyBjbGFzcz0icmVjZWlwdC1uYW1lLXRleHQgYWNjZW50Y29sb3J0eHQiIHN0eWxlPSJmb250LXNpemU6IDMwcHg7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlY2VpcHQgb2YgUGF5bWVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2gzPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIGNsYXNzPSJ0b3RhbC10ZXh0Ij5Ub3RhbCAgNTAwLjAwPC9oMj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGg0IGNsYXNzPSJ0b3RhbC10ZXh0Ij5UYXggNDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+U2hpcHBpbmcgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+VGlwIDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+RGlzY291bnQgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+CiAgICAgICAgICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0ie3sjZW1haWxpY29ufX0gYWNjZW50Y29sb3IyIHt7L2VtYWlsaWNvbn19Ij4KICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InRhYmxlIHJlY2VpcHQtZWRpdC10YWJsZSByZWNlaXB0LXNlY3Rpb24tdGFibGUgICIgaWQ9ImNjLXRhYmxlIiAgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+Q3JlZGl0IENhcmQgSW5mb3JtYXRpb248L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHkgaWQ9ImNjLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iY3VzdG9tZXItcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FyZCBIb2xkZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaW5lcnZhIE1jR29ubmVnYWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9ImNjbnVtNC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVkaXQgQ2FyZCAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeHh4eCB4eHh4IHh4eHggIDExMTEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSJ0YWJsZSAgcmVjZWlwdC1lZGl0LXRhYmxlIHJlY2VpcHQtc2VjdGlvbi10YWJsZSAgIiBpZD0iZGV0YWlscy10YWJsZSIgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+RGV0YWlsIEluZm9ybWF0aW9uPC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5IGlkPSJkZXRhaWxzLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iZGF0ZS1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMDEvMjQvMTkgMDQ6MjEgcG0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibWVyY2hhbnQtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVmcmVuY2UgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEwMDExNgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyIGlkPSJtZXJjaGFudC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUcmFuc2FjdGlvbiBLZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbmZrZDEybXFrenRiZzIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iYXV0aGNvZGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbiAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMTA2OTA3CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imludm9pY2Utcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSW52b2ljZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDk4NDU0Njg1CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9InR5cGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWRpdCBDYXJkIFNhbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibGluZWl0ZW0tcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExpbmUgSXRlbXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9ImxpbmVpdGVtcy10YmwiPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWhlYWRlci1yb3ciPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXNrdSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItc2t1Ij5TS1U8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLW5hbWUiIGlkPSJsaW5laXRlbXMtaGVhZGVyLW5hbWUiPk5hbWU8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLWNvc3QiIGlkPSJsaW5laXRlbXMtaGVhZGVyLWNvc3QiPkNvc3Q8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXF0eSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItcXR5Ij5RdHk8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXN1YnRvdGFsIiBpZD0ibGluZWl0ZW1zLWhlYWRlci1zdWJ0b3RhbCI+U3ViVG90YWw8L3RoPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXJvdyI+IDx0ZCBjbGFzcz0ibGluZWl0ZW1zLWNlbGwgbGluZWl0ZW1zLXNrdSBsaW5laXRlbXMtc2t1LWNlbGwiPjY4NDUzNDIzPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtbmFtZS1jZWxsIj5BbnRpcXVlIFBlbnNpZXZlPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtY29zdCBsaW5laXRlbXMtY29zdC1jZWxsIj40NTAuMDA8L3RkPiA8dGQgY2xhc3M9ImxpbmVpdGVtcy1jZWxsIGxpbmVpdGVtcy1xdHkgbGluZWl0ZW1zLXF0eS1jZWxsIj4xPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtc3VidG90YWwgbGluZWl0ZW1zLXN1YnRvdGFsLWNlbGwiPiQ0NTAuMDA8L3RkPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXN1YnRvdGFsLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXN1YnRvdGFsLWxhYmxlIj5TdWJ0b3RhbDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItc3VidG90YWwtdmFsdWUiPiQ0NTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdGlwLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXRpcC1sYWJlbCI+VGlwPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10aXAtdmFsdWUiPiQ1LjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLXRheC1yb3ciPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXNrdSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1uYW1lIGxpbmVpdGVtcy1mb290ZXItbGFiZWwgbGluZWl0ZW1zLWZvb3Rlci10YXgtbGFiZWwiPlRheDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItdGF4LXZhbHVlIj4kNDUuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtc2hpcHBpbmctcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItc2hpcHBpbmctbGFiZWwiPlNoaXBwaW5nPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci1zaGlwcGluZy12YWx1ZSI+JDUwLjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWRpc2NvdW50LXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLWRpc2NvdW50LWxhYmVsIj5EaXNjb3VudDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItZGlzY291bnQtdmFsdWUiPi0kNTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdG90YWwtcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItdG90YWwtbGFiZWwiPlRvdGFsPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10b3RhbC12YWx1ZSI+JDUwMC4wMDwvdGQ+PC90cj48L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICA8L3Rib2R5PgogICAgPC90YWJsZT4KICAKPC9ib2R5PgoKPC9odG1sPgo="

@GET/batches/:batch_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("batch_key","Example_batch_key");

String response = "";
response = USAePay.Batches.get(request);

@GET/batches/:batch_key:@

{
"type": "batch",
"key": "ft1m9m5p9wgd9mb",
"opened": "2019-01-28 17:02:22",
"status": "closed",
"closed": "2019-01-28 17:02:36",
"scheduled": "2019-01-28 17:02:36",
"total_amount": "3042.48",
"total_count": "29",
"sales_amount": "4755.48",
"sales_count": "18",
"voids_amount": "17.99",
"voids_count": "1",
"refunds_amount": "1713",
"refunds_count": "10"
}

@GET/batches@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","52");
request.put("offset","76");
request.put("openedlt","67");
request.put("openedgt","9");
request.put("closedlt","45");
request.put("closedgt","67");
request.put("openedle","48");
request.put("openedge","45");
request.put("closedle","21");
request.put("closedge","38");

String response = "";
response = USAePay.Batches.get(request);

@GET/batches@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "batch",
        "key": "ft1m9m5p9wgd9mb",
        "batchnum": "2412",
        "opened": "2018-11-24 11:02:02",
        "closed": "2018-11-24 12:01:01"
        }
    ],
"total": "1"
}

@GET/batches/current@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Batches.Current.get(request);

@GET/batches/current@

{
"type": "batch",
"key": "ft1m9m5p9wgd9mb",
"opened": "2019-01-28 17:02:22",
"status": "closed",
"closed": "2019-01-28 17:02:36",
"scheduled": "2019-01-28 17:02:36",
"total_amount": "3042.48",
"total_count": "29",
"sales_amount": "4755.48",
"sales_count": "18",
"voids_amount": "17.99",
"voids_count": "1",
"refunds_amount": "1713",
"refunds_count": "10"
}

@GET/batches/:batch_key:/transactions@

Map<String, Object> request = new HashMap<String, Object>();
request.put("batch_key","Example_batch_key");
request.put("limit","44");
request.put("offset","71");
request.put("return_bin","4");

String response = "";
response = USAePay.Batches.Transactions.get(request);

@GET/batches/:batch_key:/transactions@

{
"type": "list",
"limit": "20",
"offset": "0",
"data": [
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                },
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        },
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                },
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        }
    ],
"total": "1"
}

@GET/batches/current/transactions@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","93");
request.put("offset","70");
request.put("return_bin","85");

String response = "";
response = USAePay.Batches.Current.Transactions.get(request);

@GET/batches/current/transactions@

{
"type": "list",
"limit": "20",
"offset": "0",
"data23": [
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                },
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        },
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                },
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        }
    ],
"total": "1"
}

@POST/batches/current/close@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Batches.Current.Close.post(request);

@POST/batches/current/close@

{
"type": "batch",
"key": "ft1m9m5p9wgd9mb",
"batchnum": "2412",
"opened": "2018-11-24 11:02:02",
"closed": "2018-11-24 12:01:01"
}

@GET/customers/:custkey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");

String response = "";
response = USAePay.Customers.get(request);

@GET/customers/:custkey:@

{
"type": "customer",
"key": "nsds9yd1h5kb9y5h",
"custid": "123456",
"company": "Weasleys Wizard Wheezes",
"first_name": "George",
"last_name": "Weasley",
"description": "Mischief Managed.",
"payment_methods": [
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        },
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        }
    ],
"billing_schedules": [
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        },
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        }
    ]
}

@GET/customers@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","1");
request.put("offset","77");

String response = "";
response = USAePay.Customers.get(request);

@GET/customers@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "customer",
        "key": "nsds9yd1h5kb9y5h",
        "custid": "123456",
        "company": "Weasleys Wizard Wheezes",
        "first_name": "George",
        "last_name": "Weasley",
        "address": "93 Diagon Alley",
        "address2": "Apartment 2",
        "city": "London",
        "state": "Greater London",
        "postalcode": "WC2H 0AW",
        "country": "Great Britain",
        "phone": "747-3733",
        "fax": "584-4537",
        "email": "noreply@mugglenet.com",
        "url": "https://www.pottermore.com/",
        "notes": "Born on April fools day.",
        "description": "Mischief Managed."
        }
    ],
"total": "1"
}

@POST/customers@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custid","123456");
request.put("company","Weasleys Wizard Wheezes");
request.put("first_name","George");
request.put("last_name","Weasley");
request.put("description","Mischief Managed.");List<Map> payment_methods = new ArrayList<Map>();
        Map<String, Object> payment_methods_item = new HashMap<String, Object>();
        payment_methods_item.put("cardholder","Fillius Flitwick");
        payment_methods_item.put("expiration","0426");
        payment_methods_item.put("number","4000100011112224");
        payment_methods_item.put("pay_type","cc");
    payment_methods.add(payment_methods_item);
        Map<String, Object> payment_methods_item1 = new HashMap<String, Object>();
        payment_methods_item1.put("cardholder","Fillius Flitwick");
        payment_methods_item1.put("expiration","0426");
        payment_methods_item1.put("number","4000100011112224");
        payment_methods_item1.put("pay_type","cc");
    payment_methods.add(payment_methods_item1);
request.put("payment_methods",(payment_methods);List<Map> billing_schedules = new ArrayList<Map>();
        Map<String, Object> billing_schedules_item = new HashMap<String, Object>();
        billing_schedules_item.put("amount","8");
        billing_schedules_item.put("enabled","1");List<Map> rules69 = new ArrayList<Map>();
                Map<String, Object> rules69_item = new HashMap<String, Object>();
                rules69_item.put("day_offset","3");
                rules69_item.put("subject","Day");
            rules69.add(rules69_item);
                Map<String, Object> rules69_item2 = new HashMap<String, Object>();
                rules69_item2.put("day_offset","3");
                rules69_item2.put("subject","Day");
            rules69.add(rules69_item2);
        billing_schedules_item.put("rules69",(rules69);
    billing_schedules.add(billing_schedules_item);
        Map<String, Object> billing_schedules_item3 = new HashMap<String, Object>();
        billing_schedules_item3.put("amount","8");
        billing_schedules_item3.put("enabled","1");List<Map> rules = new ArrayList<Map>();
                Map<String, Object> rules_item = new HashMap<String, Object>();
                rules_item.put("day_offset","3");
                rules_item.put("subject","Day");
            rules.add(rules_item);
                Map<String, Object> rules_item4 = new HashMap<String, Object>();
                rules_item4.put("day_offset","3");
                rules_item4.put("subject","Day");
            rules.add(rules_item4);
        billing_schedules_item3.put("rules",(rules);
    billing_schedules.add(billing_schedules_item3);
request.put("billing_schedules",(billing_schedules);

String response = "";
response = USAePay.Customers.post(request);

@POST/customers@

{
"type": "customer",
"key": "nsds9yd1h5kb9y5h",
"custid": "123456",
"company": "Weasleys Wizard Wheezes",
"first_name": "George",
"last_name": "Weasley",
"description": "Mischief Managed.",
"payment_methods": [
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        },
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        }
    ],
"billing_schedules": [
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        },
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        }
    ]
}

@DELETE/customers/:custkey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");

String response = "";
response = USAePay.Customers.delete(request);

@DELETE/customers/:custkey:@

{
"status": "success"
}

@PUT/customers/:custkey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("custid","123456");
request.put("company","Weasleys Wizard Wheezes");
request.put("first_name","George");
request.put("last_name","Weasley");
request.put("description","Mischief Managed.");List<Map> payment_methods = new ArrayList<Map>();
        Map<String, Object> payment_methods_item = new HashMap<String, Object>();
        payment_methods_item.put("cardholder","Fillius Flitwick");
        payment_methods_item.put("expiration","0426");
        payment_methods_item.put("number","4000100011112224");
        payment_methods_item.put("pay_type","cc");
    payment_methods.add(payment_methods_item);
        Map<String, Object> payment_methods_item1 = new HashMap<String, Object>();
        payment_methods_item1.put("cardholder","Fillius Flitwick");
        payment_methods_item1.put("expiration","0426");
        payment_methods_item1.put("number","4000100011112224");
        payment_methods_item1.put("pay_type","cc");
    payment_methods.add(payment_methods_item1);
request.put("payment_methods",(payment_methods);List<Map> billing_schedules = new ArrayList<Map>();
        Map<String, Object> billing_schedules_item = new HashMap<String, Object>();
        billing_schedules_item.put("amount","8");
        billing_schedules_item.put("enabled","1");List<Map> rules = new ArrayList<Map>();
                Map<String, Object> rules_item = new HashMap<String, Object>();
                rules_item.put("day_offset","3");
                rules_item.put("subject","Day");
            rules.add(rules_item);
                Map<String, Object> rules_item2 = new HashMap<String, Object>();
                rules_item2.put("day_offset","3");
                rules_item2.put("subject","Day");
            rules.add(rules_item2);
        billing_schedules_item.put("rules",(rules);
    billing_schedules.add(billing_schedules_item);
        Map<String, Object> billing_schedules_item3 = new HashMap<String, Object>();
        billing_schedules_item3.put("amount","8");
        billing_schedules_item3.put("enabled","1");List<Map> rules = new ArrayList<Map>();
                Map<String, Object> rules_item4 = new HashMap<String, Object>();
                rules_item4.put("day_offset","3");
                rules_item4.put("subject","Day");
            rules.add(rules_item4);
                Map<String, Object> rules_item5 = new HashMap<String, Object>();
                rules_item5.put("day_offset","3");
                rules_item5.put("subject","Day");
            rules.add(rules_item5);
        billing_schedules_item3.put("rules",(rules);
    billing_schedules.add(billing_schedules_item3);
request.put("billing_schedules",(billing_schedules);

String response = "";
response = USAePay.Customers.put(request);

@PUT/customers/:custkey:@

{
"type": "customer",
"key": "nsds9yd1h5kb9y5h",
"custid": "123456",
"company": "Weasleys Wizard Wheezes",
"first_name": "George",
"last_name": "Weasley",
"description": "Mischief Managed.",
"payment_methods": [
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        },
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        }
    ],
"billing_schedules": [
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        },
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        }
    ]
}

@POST/customers/enable@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Customers.Enable.post(request);

@POST/customers/enable@

{
"status": "success"
}

@POST/customers/disable@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Customers.Disable.post(request);

@POST/customers/disable@

{
"status": "success"
}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");

String response = "";
response = USAePay.Customers.Billing_schedules.get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

{
"type": "billingschedule",
"rules": [
        {
        "type": "billingschedulerule"
        },
        {
        "type": "billingschedulerule"
        }
    ]
}

@GET/customers/:custkey:/billing_schedules@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");

String response = "";
response = USAePay.Customers.Billing_schedules.get(request);

@GET/customers/:custkey:/billing_schedules@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "billingschedule",
        "rules": [
                {
                "type": "billingschedulerule"
                },
                {
                "type": "billingschedulerule"
                }
            ]
        }
    ],
"total": "1"
}

@POST/customers/:custkey:/billing_schedules@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");List<Map> CustomerSchedules = new ArrayList<Map>();
        Map<String, Object> CustomerSchedules_item = new HashMap<String, Object>();
        CustomerSchedules_item.put("type","billingschedule");List<Map> rules = new ArrayList<Map>();
                Map<String, Object> rules_item = new HashMap<String, Object>();
                rules_item.put("type","billingschedulerule");
            rules.add(rules_item);
                Map<String, Object> rules_item1 = new HashMap<String, Object>();
                rules_item1.put("type","billingschedulerule");
            rules.add(rules_item1);
        CustomerSchedules_item.put("rules",(rules);
    CustomerSchedules.add(CustomerSchedules_item);
request.put("CustomerSchedules",(CustomerSchedules);

String response = "";
response = USAePay.Customers.Billing_schedules.post(request);

@POST/customers/:custkey:/billing_schedules@

    {
    "type": "billingschedule",
    "rules": [
            {
            "type": "billingschedulerule"
            },
            {
            "type": "billingschedulerule"
            }
        ]
    }
]

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");

String response = "";
response = USAePay.Customers.Billing_schedules.delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

{
"status": "success"
}

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");
request.put("type","billingschedule");List<Map> rules = new ArrayList<Map>();
        Map<String, Object> rules_item = new HashMap<String, Object>();
        rules_item.put("type","billingschedulerule");
    rules.add(rules_item);
        Map<String, Object> rules_item1 = new HashMap<String, Object>();
        rules_item1.put("type","billingschedulerule");
    rules.add(rules_item1);
request.put("rules",(rules);

String response = "";
response = USAePay.Customers.Billing_schedules.put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

{
"type": "billingschedule",
"rules": [
        {
        "type": "billingschedulerule"
        },
        {
        "type": "billingschedulerule"
        }
    ]
}

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("paymethod_key","Example_paymethod_key");

String response = "";
response = USAePay.Customers.Payment_methods.get(request);

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

{
"key": "x8KccrxeydHJ4MmT",
"type": "customerpaymentmethod",
"method_name": "Example method",
"cardholder": "Testor Jones",
"expiration": "0426",
"ccnum4last": "xxxxxxxxxxxxxx7779",
"card_type": "Visa"
}

@GET/customers/:custkey:/payment_methods@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");

String response = "";
response = USAePay.Customers.Payment_methods.get(request);

@GET/customers/:custkey:/payment_methods@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa"
        }
    ],
"total": "1"
}

@POST/customers/:custkey:/payment_methods@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");List<Map> CustomerPaymentMethodRequests = new ArrayList<Map>();
        Map<String, Object> CustomerPaymentMethodRequests_item = new HashMap<String, Object>();
        CustomerPaymentMethodRequests_item.put("cardholder","Fillius Flitwick");
        CustomerPaymentMethodRequests_item.put("expiration","0426");
        CustomerPaymentMethodRequests_item.put("number","4000100011112224");
        CustomerPaymentMethodRequests_item.put("pay_type","cc");
    CustomerPaymentMethodRequests.add(CustomerPaymentMethodRequests_item);
request.put("CustomerPaymentMethodRequests",(CustomerPaymentMethodRequests);

String response = "";
response = USAePay.Customers.Payment_methods.post(request);

@POST/customers/:custkey:/payment_methods@

    {
    "key": "x8KccrxeydHJ4MmT",
    "type": "customerpaymentmethod",
    "method_name": "Example method",
    "cardholder": "Testor Jones",
    "expiration": "0426",
    "ccnum4last": "xxxxxxxxxxxxxx7779",
    "card_type": "Visa"
    }
]

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("paymethod_key","Example_paymethod_key");

String response = "";
response = USAePay.Customers.Payment_methods.delete(request);

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

{
"status": "success"
}

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("paymethod_key","Example_paymethod_key");
request.put("cardholder","Fillius Flitwick");
request.put("expiration","0426");
request.put("number","40001000111^date:MMYY,+4Y4");
request.put("pay_type","cc");

String response = "";
response = USAePay.Customers.Payment_methods.put(request);

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

{
"key": "x8KccrxeydHJ4MmT",
"type": "customerpaymentmethod",
"method_name": "Example method",
"cardholder": "Testor Jones",
"expiration": "0426",
"ccnum4last": "xxxxxxxxxxxxxx7779",
"card_type": "Visa"
}

@GET/customers/:custkey:/transactions@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");

String response = "";
response = USAePay.Customers.Transactions.get(request);

@GET/customers/:custkey:/transactions@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        }
    ],
"total": "42"
}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");
request.put("billing_rule_key","Example_billing_rule_key");

String response = "";
response = USAePay.Customers.Billing_schedules.Billing_schedule_rules.get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

{
"type": "billingschedulerule"
}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");

String response = "";
response = USAePay.Customers.Billing_schedules.Billing_schedule_rules.get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "billingschedulerule"
        }
    ],
"total": "1"
}

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");
request.put("billing_rule_key","Example_billing_rule_key");

String response = "";
response = USAePay.Customers.Billing_schedules.Billing_schedule_rules.delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

{
"status": "success"
}

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");
request.put("billing_rule_key","Example_billing_rule_key");
request.put("type","billingschedulerule");

String response = "";
response = USAePay.Customers.Billing_schedules.Billing_schedule_rules.put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

{
"type": "billingschedulerule"
}

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

Map<String, Object> request = new HashMap<String, Object>();
request.put("custkey","Example_custkey");
request.put("billing_schedule_key","Example_billing_schedule_key");List<Map> Keys = new ArrayList<Map>();   Keys.add("Example_delKey");
request.put("Keys",(Keys);

String response = "";
response = USAePay.Customers.Billing_schedules.Billing_schedule_rules.Bulk.delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

{
"status": "success"
}

@GET/invoices/:invoice_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");

String response = "";
response = USAePay.Invoices.get(request);

@GET/invoices/:invoice_key:@

{
"type": "invoice",
"status": "Q",
"invoice_number": "abc1234",
"invoice_date": "2019-10-02",
"due_date": "2020-10-11",
"nontaxable": "true",
"customer_email": "example@test.com",
"customer_billing": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"customer_shipping": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"merchant_email": "Example@test.com",
"merchant_address": "123 Main St",
"merchant_phone": "111-222-3333",
"lineitems": [
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        },
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        }
    ]
}

@GET/invoices@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","78");
request.put("offset","37");

String response = "";
response = USAePay.Invoices.get(request);

@GET/invoices@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "invoice",
        "status": "Q",
        "invoice_number": "abc1234",
        "invoice_date": "2019-10-02",
        "due_date": "2020-10-11",
        "nontaxable": "true",
        "customer_email": "example@test.com",
        "customer_billing": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "customer_shipping": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "merchant_email": "Example@test.com",
        "merchant_address": "123 Main St",
        "merchant_phone": "111-222-3333",
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                },
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ]
        }
    ],
"total": "42"
}

@POST/invoices@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_number","abc1234");
request.put("due_date","2020-10-11");
request.put("nontaxable","true");
request.put("customer_email","example@test.com");
    Map<String, Object> customer_billing = new HashMap<String, Object>();
    customer_billing.put("company","Hogwarts School of Witchcraft and Wizardry");
    customer_billing.put("street","123 Astronomy Tower");
    customer_billing.put("postalcode","10005");
request.put("customer_billing",(customer_billing);
    Map<String, Object> customer_shipping = new HashMap<String, Object>();
    customer_shipping.put("company","Hogwarts School of Witchcraft and Wizardry");
    customer_shipping.put("street","123 Astronomy Tower");
    customer_shipping.put("postalcode","10005");
request.put("customer_shipping",(customer_shipping);
request.put("merchant_email","Example@test.com");
request.put("merchant_address","123 Main St");
request.put("merchant_phone","111-222-3333");List<Map> lineitems = new ArrayList<Map>();
        Map<String, Object> lineitems_item = new HashMap<String, Object>();
        lineitems_item.put("name","Antique Pensieve");
        lineitems_item.put("description","See into your past...");
        lineitems_item.put("size","Large");
        lineitems_item.put("color","Bronze");
        lineitems_item.put("cost","450.00");
        lineitems_item.put("list_price","500.00");
        lineitems_item.put("qty","1");
        lineitems_item.put("sku","68453423");
        lineitems_item.put("commoditycode","535");
        lineitems_item.put("discountamount","0");
        lineitems_item.put("discountrate","0");
        lineitems_item.put("taxable","");
        lineitems_item.put("taxamount","45.00");
        lineitems_item.put("taxclass","NA");
        lineitems_item.put("taxrate","10");
        lineitems_item.put("um","EA");
        lineitems_item.put("category","Antiques");
        lineitems_item.put("manufacturer","The Ancients");
    lineitems.add(lineitems_item);
        Map<String, Object> lineitems_item1 = new HashMap<String, Object>();
        lineitems_item1.put("name","Antique Pensieve");
        lineitems_item1.put("description","See into your past...");
        lineitems_item1.put("size","Large");
        lineitems_item1.put("color","Bronze");
        lineitems_item1.put("cost","450.00");
        lineitems_item1.put("list_price","500.00");
        lineitems_item1.put("qty","1");
        lineitems_item1.put("sku","68453423");
        lineitems_item1.put("commoditycode","535");
        lineitems_item1.put("discountamount","0");
        lineitems_item1.put("discountrate","0");
        lineitems_item1.put("taxable","");
        lineitems_item1.put("taxamount","45.00");
        lineitems_item1.put("taxclass","NA");
        lineitems_item1.put("taxrate","10");
        lineitems_item1.put("um","EA");
        lineitems_item1.put("category","Antiques");
        lineitems_item1.put("manufacturer","The Ancients");
    lineitems.add(lineitems_item1);
request.put("lineitems",(lineitems);

String response = "";
response = USAePay.Invoices.post(request);

@POST/invoices@

{
"type": "invoice",
"status": "Q",
"invoice_number": "abc1234",
"invoice_date": "2019-10-02",
"due_date": "2020-10-11",
"nontaxable": "true",
"customer_email": "example@test.com",
"customer_billing": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"customer_shipping": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"merchant_email": "Example@test.com",
"merchant_address": "123 Main St",
"merchant_phone": "111-222-3333",
"lineitems": [
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        },
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        }
    ]
}

@DELETE/invoices/:invoice_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");

String response = "";
response = USAePay.Invoices.delete(request);

@DELETE/invoices/:invoice_key:@

{
"status": "success"
}

@PUT/invoices/:invoice_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");
request.put("invoice_number","abc1234");
request.put("due_date","2020-10-11");
request.put("nontaxable","true");
request.put("customer_email","example@test.com");
    Map<String, Object> customer_billing = new HashMap<String, Object>();
    customer_billing.put("company","Hogwarts School of Witchcraft and Wizardry");
    customer_billing.put("street","123 Astronomy Tower");
    customer_billing.put("postalcode","10005");
request.put("customer_billing",(customer_billing);
    Map<String, Object> customer_shipping = new HashMap<String, Object>();
    customer_shipping.put("company","Hogwarts School of Witchcraft and Wizardry");
    customer_shipping.put("street","123 Astronomy Tower");
    customer_shipping.put("postalcode","10005");
request.put("customer_shipping",(customer_shipping);
request.put("merchant_email","Example@test.com");
request.put("merchant_address","123 Main St");
request.put("merchant_phone","111-222-3333");List<Map> lineitems = new ArrayList<Map>();
        Map<String, Object> lineitems_item = new HashMap<String, Object>();
        lineitems_item.put("name","Antique Pensieve");
        lineitems_item.put("description","See into your past...");
        lineitems_item.put("size","Large");
        lineitems_item.put("color","Bronze");
        lineitems_item.put("cost","450.00");
        lineitems_item.put("list_price","500.00");
        lineitems_item.put("qty","1");
        lineitems_item.put("sku","68453423");
        lineitems_item.put("commoditycode","535");
        lineitems_item.put("discountamount","0");
        lineitems_item.put("discountrate","0");
        lineitems_item.put("taxable","");
        lineitems_item.put("taxamount","45.00");
        lineitems_item.put("taxclass","NA");
        lineitems_item.put("taxrate","10");
        lineitems_item.put("um","EA");
        lineitems_item.put("category","Antiques");
        lineitems_item.put("manufacturer","The Ancients");
    lineitems.add(lineitems_item);
        Map<String, Object> lineitems_item1 = new HashMap<String, Object>();
        lineitems_item1.put("name","Antique Pensieve");
        lineitems_item1.put("description","See into your past...");
        lineitems_item1.put("size","Large");
        lineitems_item1.put("color","Bronze");
        lineitems_item1.put("cost","450.00");
        lineitems_item1.put("list_price","500.00");
        lineitems_item1.put("qty","1");
        lineitems_item1.put("sku","68453423");
        lineitems_item1.put("commoditycode","535");
        lineitems_item1.put("discountamount","0");
        lineitems_item1.put("discountrate","0");
        lineitems_item1.put("taxable","");
        lineitems_item1.put("taxamount","45.00");
        lineitems_item1.put("taxclass","NA");
        lineitems_item1.put("taxrate","10");
        lineitems_item1.put("um","EA");
        lineitems_item1.put("category","Antiques");
        lineitems_item1.put("manufacturer","The Ancients");
    lineitems.add(lineitems_item1);
request.put("lineitems",(lineitems);

String response = "";
response = USAePay.Invoices.put(request);

@PUT/invoices/:invoice_key:@

{
"type": "invoice",
"status": "Q",
"invoice_number": "abc1234",
"invoice_date": "2019-10-02",
"due_date": "2020-10-11",
"nontaxable": "true",
"customer_email": "example@test.com",
"customer_billing": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"customer_shipping": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"merchant_email": "Example@test.com",
"merchant_address": "123 Main St",
"merchant_phone": "111-222-3333",
"lineitems": [
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        },
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        }
    ]
}

@DELETE/invoices/bulk@

Map<String, Object> request = new HashMap<String, Object>();List<Map> Keys = new ArrayList<Map>();  Keys.add("example_key");
request.put("Keys",(Keys);

String response = "";
response = USAePay.Invoices.Bulk.delete(request);

@DELETE/invoices/bulk@

{
"status": "success"
}

@GET/invoices/defaults@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Invoices.Defaults.get(request);

@GET/invoices/defaults@

{
"merchant_email": "Example@test.com",
"merchant_address": "123 Main St",
"merchant_phone": "111-222-3333"
}

@GET/invoices/nextnum@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Invoices.Nextnum.get(request);

@GET/invoices/nextnum@


}

@GET/invoices/columns@

Map<String, Object> request = new HashMap<String, Object>();

String response = "";
response = USAePay.Invoices.Columns.get(request);

@GET/invoices/columns@


}

@POST/invoices/:invoice_key:/send@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");

String response = "";
response = USAePay.Invoices.Send.post(request);

@POST/invoices/:invoice_key:/send@

{
"status": "success"
}

@POST/invoices/:invoice_key:/cancel@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");

String response = "";
response = USAePay.Invoices.Cancel.post(request);

@POST/invoices/:invoice_key:/cancel@

{
"status": "success"
}

@GET/invoices/:invoice_key:/payments@

Map<String, Object> request = new HashMap<String, Object>();
request.put("invoice_key","Example_invoice_key");
request.put("limit","86");
request.put("offset","12");

String response = "";
response = USAePay.Invoices.Payments.get(request);

@GET/invoices/:invoice_key:/payments@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [

        }
    ],
"total": "42"
}

@POST/invoices/bulk/send@

Map<String, Object> request = new HashMap<String, Object>();List<Map> Keys = new ArrayList<Map>();  Keys.add("Example_key");
request.put("Keys",(Keys);

String response = "";
response = USAePay.Invoices.Bulk.Send.post(request);

@POST/invoices/bulk/send@

{
"status": "success"
}

@GET/paymentengine/devices/:devicekey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");

String response = "";
response = USAePay.Paymentengine.Devices.get(request);

@GET/paymentengine/devices/:devicekey:@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@GET/paymentengine/devices@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","55");
request.put("offset","100");

String response = "";
response = USAePay.Paymentengine.Devices.get(request);

@GET/paymentengine/devices@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "device",
        "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
        "apikeyid": "ntC8nP31Moh0wtvYT",
        "terminal_type": "standalone",
        "status": "ntC8nP31Moh0wtvYT",
        "name": "ntC8nP31Moh0wtvYT",
        "settings": 
            {
            "timeout": "30",
            "enable_standalone": "false",
            "share_device": "false",
            "notify_update": "true",
            "notify_update_next": "true",
            "sleep_battery_device": "5",
            "sleep_battery_display": "3",
            "sleep_powered_device": "10",
            "sleep_powered_display": "8"
            },
        "terminal_info": 
            {
            "make": "Castle",
            "model": "Vega3000",
            "revision": "18043001-0055.00",
            "serial": "011118170300198",
            "key_pin": "FFFF5B04",
            "key_pan": "FF908A"
            },
        "terminal_config": 
            {
            "enable_emv": "true",
            "enable_debit_msr": "true",
            "enable_tip_adjust": "true",
            "enable_contactless": "true"
            },
        "pairing_code": "690520",
        "expiration": "2019-10-29 11:59:28"
        }
    ],
"total": "42"
}

@POST/paymentengine/devices@

Map<String, Object> request = new HashMap<String, Object>();
request.put("terminal_type","standalone");
request.put("name","ntC8nP31Moh0wtvYT");
    Map<String, Object> settings = new HashMap<String, Object>();
    settings.put("timeout","30");
    settings.put("enable_standalone","false");
    settings.put("share_device","false");
    settings.put("notify_update","true");
    settings.put("notify_update_next","true");
    settings.put("sleep_battery_device","5");
    settings.put("sleep_battery_display","3");
    settings.put("sleep_powered_device","10");
    settings.put("sleep_powered_display","8");
request.put("settings",(settings);
    Map<String, Object> terminal_config = new HashMap<String, Object>();
    terminal_config.put("enable_emv","true");
    terminal_config.put("enable_debit_msr","true");
    terminal_config.put("enable_tip_adjust","true");
    terminal_config.put("enable_contactless","true");
request.put("terminal_config",(terminal_config);

String response = "";
response = USAePay.Paymentengine.Devices.post(request);

@POST/paymentengine/devices@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@DELETE/paymentengine/devices/:devicekey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");

String response = "";
response = USAePay.Paymentengine.Devices.delete(request);

@DELETE/paymentengine/devices/:devicekey:@

{
"status": "success"
}

@PUT/paymentengine/devices/:devicekey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");
request.put("terminal_type","standalone");
request.put("name","ntC8nP31Moh0wtvYT");
    Map<String, Object> settings = new HashMap<String, Object>();
    settings.put("timeout","30");
    settings.put("enable_standalone","false");
    settings.put("share_device","false");
    settings.put("notify_update","true");
    settings.put("notify_update_next","true");
    settings.put("sleep_battery_device","5");
    settings.put("sleep_battery_display","3");
    settings.put("sleep_powered_device","10");
    settings.put("sleep_powered_display","8");
request.put("settings",(settings);
    Map<String, Object> terminal_config = new HashMap<String, Object>();
    terminal_config.put("enable_emv","true");
    terminal_config.put("enable_debit_msr","true");
    terminal_config.put("enable_tip_adjust","true");
    terminal_config.put("enable_contactless","true");
request.put("terminal_config",(terminal_config);

String response = "";
response = USAePay.Paymentengine.Devices.put(request);

@PUT/paymentengine/devices/:devicekey:@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@POST/paymentengine/payrequests@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","sa_YdebDV6I2q0MfWV8kPDvQkHEvUjpA");
request.put("command","sale");
request.put("amount","2.11");
    Map<String, Object> amount_detail = new HashMap<String, Object>();
    amount_detail.put("subtotal","40.00");
    amount_detail.put("tax","10.00");
    amount_detail.put("enable_partialauth","false");
request.put("amount_detail",(amount_detail);
request.put("timeout","150");
request.put("block_offline","true");
request.put("ignore_duplicate","true");
request.put("save_card","true");
request.put("manual_key","true");
request.put("prompt_tip","true");
request.put("invoice","123456");
request.put("ponum","987654321");
request.put("orderid","12345678");
request.put("description","sample description");
    Map<String, Object> billing_address = new HashMap<String, Object>();
    billing_address.put("company","Hogwarts School of Witchcraft and Wizardry");
    billing_address.put("street","123 Astronomy Tower");
    billing_address.put("postalcode","10005");
request.put("billing_address",(billing_address);
    Map<String, Object> shipping_address = new HashMap<String, Object>();
    shipping_address.put("company","Hogwarts School of Witchcraft and Wizardry");
    shipping_address.put("street","123 Astronomy Tower");
    shipping_address.put("postalcode","10005");
request.put("shipping_address",(shipping_address);List<Map> lineitems = new ArrayList<Map>();
        Map<String, Object> lineitems_item = new HashMap<String, Object>();
        lineitems_item.put("name","Antique Pensieve");
        lineitems_item.put("description","See into your past...");
        lineitems_item.put("size","Large");
        lineitems_item.put("color","Bronze");
        lineitems_item.put("cost","450.00");
        lineitems_item.put("list_price","500.00");
        lineitems_item.put("qty","1");
        lineitems_item.put("sku","68453423");
        lineitems_item.put("commoditycode","535");
        lineitems_item.put("discountamount","0");
        lineitems_item.put("discountrate","0");
        lineitems_item.put("taxable","");
        lineitems_item.put("taxamount","45.00");
        lineitems_item.put("taxclass","NA");
        lineitems_item.put("taxrate","10");
        lineitems_item.put("um","EA");
        lineitems_item.put("category","Antiques");
        lineitems_item.put("manufacturer","The Ancients");
    lineitems.add(lineitems_item);
request.put("lineitems",(lineitems);

String response = "";
response = USAePay.Paymentengine.Payrequests.post(request);

@POST/paymentengine/payrequests@

{
"type": "request",
"key": "pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
"expiration": "2020-07-08 16:40:48",
"status": "sent to device",
"transaction": 
    {
    "type": "transaction",
    "key": "dnfwxwhz5kvnbgb",
    "refnum": "100061",
    "created": "2018-12-04 10:48:44",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "314407",
    "proc_refnum": "18120443975126",
    "creditcard": 
        {
        "cardholder": "Minerva McGonnegall",
        "number": "4444xxxxxxxx1111",
        "category_code": "A",
        "entry_mode": "swiped",
        "avs_street": "1234 Portkey Ave",
        "avs_postalcode": "90006"
        },
    "invoice": "98454685",
    "orderid": "4556432",
    "avs": 
        {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match"
        },
    "cvc": 
        {
        "result_code": "N",
        "result": "No Match"
        },
    "batch": 
        {
        "type": "batch",
        "key": "ft1m9m5p9wgd9mb",
        "batchrefnum": "12345678",
        "sequence": "2902"
        },
    "auth_amount": "500.00",
    "trantype": "Credit Card Sale",
    "iccdata": "",
    "receipts": 
        {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully"
        },
    "customer": 
        {
        "custkey": "ksddgpqgpbs5zkmb",
        "custid": "10275538"
        },
    "savedcard": 
        {
        "type": "Visa",
        "key": "tyet-xk8x-vpj4-7swq",
        "cardnumber": "4000xxxxxxxx2224"
        }
    },
"complete": "sent to device"
}

@GET/paymentengine/payrequests/:requestkey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("requestkey","Example_requestkey");

String response = "";
response = USAePay.Paymentengine.Payrequests.get(request);

@GET/paymentengine/payrequests/:requestkey:@

{
"type": "request",
"key": "pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
"expiration": "2020-07-08 16:40:48",
"status": "sent to device",
"transaction": 
    {
    "type": "transaction",
    "key": "dnfwxwhz5kvnbgb",
    "refnum": "100061",
    "created": "2018-12-04 10:48:44",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "314407",
    "proc_refnum": "18120443975126",
    "creditcard": 
        {
        "cardholder": "Minerva McGonnegall",
        "number": "4444xxxxxxxx1111",
        "category_code": "A",
        "entry_mode": "swiped",
        "avs_street": "1234 Portkey Ave",
        "avs_postalcode": "90006"
        },
    "invoice": "98454685",
    "orderid": "4556432",
    "avs": 
        {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match"
        },
    "cvc": 
        {
        "result_code": "N",
        "result": "No Match"
        },
    "batch": 
        {
        "type": "batch",
        "key": "ft1m9m5p9wgd9mb",
        "batchrefnum": "12345678",
        "sequence": "2902"
        },
    "auth_amount": "500.00",
    "trantype": "Credit Card Sale",
    "iccdata": "",
    "receipts": 
        {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully"
        },
    "customer": 
        {
        "custkey": "ksddgpqgpbs5zkmb",
        "custid": "10275538"
        },
    "savedcard": 
        {
        "type": "Visa",
        "key": "tyet-xk8x-vpj4-7swq",
        "cardnumber": "4000xxxxxxxx2224"
        }
    },
"complete": "sent to device"
}

@DELETE/paymentengine/payrequests/:requestkey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("requestkey","Example_requestkey");

String response = "";
response = USAePay.Paymentengine.Payrequests.delete(request);

@DELETE/paymentengine/payrequests/:requestkey:@

{
"status": "success"
}

@GET/paymentengine/devices/:devicekey:/settings@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");

String response = "";
response = USAePay.Paymentengine.Devices.Settings.get(request);

@GET/paymentengine/devices/:devicekey:/settings@

{
"timeout": "30",
"enable_standalone": "false",
"share_device": "false",
"notify_update": "true",
"notify_update_next": "true",
"sleep_battery_device": "5",
"sleep_battery_display": "3",
"sleep_powered_device": "10",
"sleep_powered_display": "8"
}

@PUT/paymentengine/devices/:devicekey:/settings@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");
request.put("timeout","30");
request.put("enable_standalone","false");
request.put("share_device","false");
request.put("notify_update","true");
request.put("notify_update_next","true");
request.put("sleep_battery_device","5");
request.put("sleep_battery_display","3");
request.put("sleep_powered_device","10");
request.put("sleep_powered_display","8");

String response = "";
response = USAePay.Paymentengine.Devices.Settings.put(request);

@PUT/paymentengine/devices/:devicekey:/settings@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@GET/paymentengine/devices/:devicekey:/terminal-config@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");

String response = "";
response = USAePay.Paymentengine.Devices.Terminal-config.get(request);

@GET/paymentengine/devices/:devicekey:/terminal-config@

{
"enable_emv": "true",
"enable_debit_msr": "true",
"enable_tip_adjust": "true",
"enable_contactless": "true"
}

@PUT/paymentengine/devices/:devicekey:/terminal-config@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");
request.put("enable_emv","true");
request.put("enable_debit_msr","true");
request.put("enable_tip_adjust","true");
request.put("enable_contactless","true");

String response = "";
response = USAePay.Paymentengine.Devices.Terminal-config.put(request);

@PUT/paymentengine/devices/:devicekey:/terminal-config@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@POST/paymentengine/devices/:devicekey:/kick@

Map<String, Object> request = new HashMap<String, Object>();
request.put("devicekey","Example_devicekey");

String response = "";
response = USAePay.Paymentengine.Devices.Kick.post(request);

@POST/paymentengine/devices/:devicekey:/kick@

{
"type": "device",
"key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
"apikeyid": "ntC8nP31Moh0wtvYT",
"terminal_type": "standalone",
"status": "ntC8nP31Moh0wtvYT",
"name": "ntC8nP31Moh0wtvYT",
"settings": 
    {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8"
    },
"terminal_info": 
    {
    "make": "Castle",
    "model": "Vega3000",
    "revision": "18043001-0055.00",
    "serial": "011118170300198",
    "key_pin": "FFFF5B04",
    "key_pan": "FF908A"
    },
"terminal_config": 
    {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true"
    },
"pairing_code": "690520",
"expiration": "2019-10-29 11:59:28"
}

@GET/products/:product_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("product_key","Example_product_key");

String response = "";
response = USAePay.Products.get(request);

@GET/products/:product_key:@

{
"type": "product",
"key": "80v96p6rx2k6sktw",
"product_refnum": "2",
"name": "Botts Every Flavor Beans",
"price": "2.00",
"enabled": "True",
"taxable": "True",
"categoryid": "1238710",
"commodity_code": "3122",
"description": "Every flavor you can imagine and then some.",
"list_price": "3.00",
"manufacturer": "Jelly Belly",
"merch_productid": "EXA1234",
"physicalgood": "True",
"ship_weight": "1.2 oz",
"sku": "123456789",
"upc": "999999999",
"weight": "1.2 oz",
"wholesale_price": "3.22",
"created": "",
"modified": ""
}

@GET/products@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","37");
request.put("offset","50");

String response = "";
response = USAePay.Products.get(request);

@GET/products@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "product",
        "key": "80v96p6rx2k6sktw",
        "product_refnum": "2",
        "name": "Botts Every Flavor Beans",
        "price": "2.00",
        "enabled": "True",
        "taxable": "True",
        "categoryid": "1238710",
        "commodity_code": "3122",
        "description": "Every flavor you can imagine and then some.",
        "list_price": "3.00",
        "manufacturer": "Jelly Belly",
        "merch_productid": "EXA1234",
        "physicalgood": "True",
        "ship_weight": "1.2 oz",
        "sku": "123456789",
        "upc": "999999999",
        "weight": "1.2 oz",
        "wholesale_price": "3.22",
        "created": "",
        "modified": ""
        }
    ],
"total": "42"
}

@POST/products@

Map<String, Object> request = new HashMap<String, Object>();
request.put("name","Botts Every Flavor Beans");
request.put("price","2.00");
request.put("enabled","True");
request.put("taxable","True");
request.put("categoryid","1238710");
request.put("commodity_code","3122");
request.put("description","Every flavor you can imagine and then some.");
request.put("list_price","3.00");
request.put("manufacturer","Jelly Belly");
request.put("merch_productid","EXA1234");
request.put("physicalgood","True");
request.put("ship_weight","1.2 oz");
request.put("sku","123456789");
request.put("upc","999999999");
request.put("weight","1.2 oz");
request.put("wholesale_price","3.22");

String response = "";
response = USAePay.Products.post(request);

@POST/products@

{
"type": "product",
"key": "80v96p6rx2k6sktw",
"product_refnum": "2",
"name": "Botts Every Flavor Beans",
"price": "2.00",
"enabled": "True",
"taxable": "True",
"categoryid": "1238710",
"commodity_code": "3122",
"description": "Every flavor you can imagine and then some.",
"list_price": "3.00",
"manufacturer": "Jelly Belly",
"merch_productid": "EXA1234",
"physicalgood": "True",
"ship_weight": "1.2 oz",
"sku": "123456789",
"upc": "999999999",
"weight": "1.2 oz",
"wholesale_price": "3.22",
"created": "",
"modified": ""
}

@DELETE/products/:product_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("product_key","Example_product_key");

String response = "";
response = USAePay.Products.delete(request);

@DELETE/products/:product_key:@

{
"status": "success"
}

@PUT/products/:product_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("product_key","Example_product_key");
request.put("name","Botts Every Flavor Beans");
request.put("price","2.00");
request.put("enabled","True");
request.put("taxable","True");
request.put("categoryid","1238710");
request.put("commodity_code","3122");
request.put("description","Every flavor you can imagine and then some.");
request.put("list_price","3.00");
request.put("manufacturer","Jelly Belly");
request.put("merch_productid","EXA1234");
request.put("physicalgood","True");
request.put("ship_weight","1.2 oz");
request.put("sku","123456789");
request.put("upc","999999999");
request.put("weight","1.2 oz");
request.put("wholesale_price","3.22");

String response = "";
response = USAePay.Products.put(request);

@PUT/products/:product_key:@

{
"type": "product",
"key": "80v96p6rx2k6sktw",
"product_refnum": "2",
"name": "Botts Every Flavor Beans",
"price": "2.00",
"enabled": "True",
"taxable": "True",
"categoryid": "1238710",
"commodity_code": "3122",
"description": "Every flavor you can imagine and then some.",
"list_price": "3.00",
"manufacturer": "Jelly Belly",
"merch_productid": "EXA1234",
"physicalgood": "True",
"ship_weight": "1.2 oz",
"sku": "123456789",
"upc": "999999999",
"weight": "1.2 oz",
"wholesale_price": "3.22",
"created": "",
"modified": ""
}

@GET/products/categories/:category_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("category_key","Example_category_key");

String response = "";
response = USAePay.Products.Categories.get(request);

@GET/products/categories/:category_key:@

{
"type": "product_category",
"key": "80v96p6rx2k6sktw",
"name": "Botts Every Flavor Beans"
}

@GET/products/categories@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","93");
request.put("offset","93");

String response = "";
response = USAePay.Products.Categories.get(request);

@GET/products/categories@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "product_category",
        "key": "80v96p6rx2k6sktw",
        "name": "Botts Every Flavor Beans"
        }
    ],
"total": "42"
}

@POST/products/categories@

Map<String, Object> request = new HashMap<String, Object>();
request.put("name","Botts Every Flavor Beans");

String response = "";
response = USAePay.Products.Categories.post(request);

@POST/products/categories@

{
"type": "product_category",
"key": "80v96p6rx2k6sktw",
"name": "Botts Every Flavor Beans"
}

@DELETE/products/categories/:category_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("category_key","Example_category_key");

String response = "";
response = USAePay.Products.Categories.delete(request);

@DELETE/products/categories/:category_key:@

{
"status": "success"
}

@PUT/products/categories/:category_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("category_key","Example_category_key");
request.put("name","Botts Every Flavor Beans");

String response = "";
response = USAePay.Products.Categories.put(request);

@PUT/products/categories/:category_key:@

{
"type": "product_category",
"key": "80v96p6rx2k6sktw",
"name": "Botts Every Flavor Beans"
}

@POST/tokens@

Map<String, Object> request = new HashMap<String, Object>();
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("cardholder","Minerva McGonnegall");
    creditcard.put("number","4000100011112224");
    creditcard.put("expiration","0426");
request.put("creditcard",(creditcard);
    Map<String, Object> customer = new HashMap<String, Object>();
    customer.put("custkey","9sddg0ccd915pdbq");
    customer.put("paymethod_key","2n02pc6k26jkfkh1b");
request.put("customer",(customer);List<Map> list = new ArrayList<Map>();
        Map<String, Object> list_item = new HashMap<String, Object>();
        list_item.put("custkey","9sddg0ccd915pdbq");
        list_item.put("paymethod_key","2n02pc6k26jkfkh1b");
    list.add(list_item);
request.put("list",(list);

String response = "";
response = USAePay.Tokens.post(request);

@POST/tokens@

{
"type": "token",
"key": "p4xe-9ax3-26f4-pi6h",
"token": 
    {
    "type": "token",
    "key": "p4xe-9ax3-26f4-pi6h",
    "card_key": "p4xe-9ax3-26f4-pi6h",
    "cardref": "p4xe-9ax3-26f4-pi6h",
    "masked_card_number": "XXXXXXXXXXXX2226",
    "card_type": "Visa"
    }
}

@GET/tokens/:cardref:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("cardref","Example_cardref");

String response = "";
response = USAePay.Tokens.get(request);

@GET/tokens/:cardref:@

{
"type": "token",
"key": "p4xe-9ax3-26f4-pi6h",
"card_key": "p4xe-9ax3-26f4-pi6h",
"cardref": "p4xe-9ax3-26f4-pi6h",
"masked_card_number": "XXXXXXXXXXXX2226",
"card_type": "Visa"
}

@GET/transactions/:trankey:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("trankey","Example_trankey");

String response = "";
response = USAePay.Transactions.get(request);

@GET/transactions/:trankey:@

{
"type": "transaction",
"key": "dnfwxwhz5kvnbgb",
"refnum": "100061",
"created": "2018-12-04 10:48:44",
"trantype_code": "S",
"trantype": "Credit Card Sale",
"result_code": "A",
"result": "Approved",
"error_code": "12",
"error": "Card Number was not between 13 and 16 digits",
"authcode": "314407",
"status_code": "P",
"status": "Authorized (Pending Settlement)",
"proc_refnum": "18120443975126",
"creditcard": 
    {
    "cardholder": "Minerva McGonnegall",
    "number": "4444xxxxxxxx1111",
    "category_code": "A",
    "entry_mode": "swiped",
    "avs_street": "1234 Portkey Ave",
    "avs_postalcode": "90006"
    },
"check": 
    {
    "accountholder": "Remus Lupin",
    "routing": "123456789",
    "account": "324523524",
    "account_type": "checking"
    },
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "N",
    "result": "No Match"
    },
"batch": 
    {
    "type": "batch",
    "key": "ft1m9m5p9wgd9mb",
    "batchrefnum": "12345678",
    "sequence": "2902"
    },
"amount": "50",
"amount_detail": 
    {
    "subtotal": "40.00",
    "tax": "10.00",
    "enable_partialauth": "false"
    },
"ponum": "af416fsd5",
"invoice": "98454685",
"orderid": "98454685",
"description": "Antique Pensieve",
"billing_address": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"shipping_address": 
    {
    "company": "Hogwarts School of Witchcraft and Wizardry",
    "street": "123 Astronomy Tower",
    "postalcode": "10005"
    },
"lineitems": [
        {
        "name": "Antique Pensieve",
        "description": "See into your past...",
        "size": "Large",
        "color": "Bronze",
        "cost": "450.00",
        "list_price": "500.00",
        "qty": "1",
        "sku": "68453423",
        "commoditycode": "535",
        "discountamount": "0",
        "discountrate": "0",
        "taxable": "",
        "taxamount": "45.00",
        "taxclass": "NA",
        "taxrate": "10",
        "um": "EA",
        "category": "Antiques",
        "manufacturer": "The Ancients"
        }
    ],
"comments": "Powerful magical object. Use with caution.",
"tranterm": "multilane",
"clerk": "Madame Malkin",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    },
"customer": 
    {
    "custkey": "ksddgpqgpbs5zkmb",
    "custid": "10275538"
    },
"customer_email": "noreply@gmail.com",
"bin": 
    {
    "bin": "444455",
    "type": "Debit",
    "issuer": "Visa",
    "bank": "Chase Bank",
    "country": "US",
    "country_name": "United States",
    "country_iso": "CA",
    "location": "http://www.jpmorganchase.com",
    "phone": "USA",
    "category": ""
    },
"clientip": "Madame Malkin",
"source_name": "Madame Malkin"
}

@GET/transactions@

Map<String, Object> request = new HashMap<String, Object>();
request.put("limit","86");
request.put("offset","78");
request.put("fuzzy","32");
request.put("filters","exampleFilter");

String response = "";
response = USAePay.Transactions.get(request);

@GET/transactions@

{
"type": "list",
"limit": "0",
"offset": "20",
"data": [
        {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "trantype_code": "S",
        "trantype": "Credit Card Sale",
        "result_code": "A",
        "result": "Approved",
        "error_code": "12",
        "error": "Card Number was not between 13 and 16 digits",
        "authcode": "314407",
        "status_code": "P",
        "status": "Authorized (Pending Settlement)",
        "proc_refnum": "18120443975126",
        "creditcard": 
            {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006"
            },
        "check": 
            {
            "accountholder": "Remus Lupin",
            "routing": "123456789",
            "account": "324523524",
            "account_type": "checking"
            },
        "avs": 
            {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match"
            },
        "cvc": 
            {
            "result_code": "N",
            "result": "No Match"
            },
        "batch": 
            {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902"
            },
        "amount": "50",
        "amount_detail": 
            {
            "subtotal": "40.00",
            "tax": "10.00",
            "enable_partialauth": "false"
            },
        "ponum": "af416fsd5",
        "invoice": "98454685",
        "orderid": "98454685",
        "description": "Antique Pensieve",
        "billing_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "shipping_address": 
            {
            "company": "Hogwarts School of Witchcraft and Wizardry",
            "street": "123 Astronomy Tower",
            "postalcode": "10005"
            },
        "lineitems": [
                {
                "name": "Antique Pensieve",
                "description": "See into your past...",
                "size": "Large",
                "color": "Bronze",
                "cost": "450.00",
                "list_price": "500.00",
                "qty": "1",
                "sku": "68453423",
                "commoditycode": "535",
                "discountamount": "0",
                "discountrate": "0",
                "taxable": "",
                "taxamount": "45.00",
                "taxclass": "NA",
                "taxrate": "10",
                "um": "EA",
                "category": "Antiques",
                "manufacturer": "The Ancients"
                }
            ],
        "comments": "Powerful magical object. Use with caution.",
        "tranterm": "multilane",
        "clerk": "Madame Malkin",
        "receipts": 
            {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully"
            },
        "customer": 
            {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538"
            },
        "customer_email": "noreply@gmail.com",
        "bin": 
            {
            "bin": "444455",
            "type": "Debit",
            "issuer": "Visa",
            "bank": "Chase Bank",
            "country": "US",
            "country_name": "United States",
            "country_iso": "CA",
            "location": "http://www.jpmorganchase.com",
            "phone": "USA",
            "category": ""
            },
        "clientip": "Madame Malkin",
        "source_name": "Madame Malkin"
        }
    ],
"total": "42"
}

@POST/transactions@

Map<String, Object> request = new HashMap<String, Object>();
request.put("command","sale");
request.put("invoice","98454685");
request.put("ponum","af416fsd5");
request.put("description","Antique Pensieve");
request.put("comments","Powerful magical object. Use with caution.");
request.put("email","brian@hogwarts.com");
request.put("send_receipt","1");
request.put("ignore_duplicate","1");
request.put("merchemailaddr","receipts@fandb.net");
request.put("amount","500.00");
    Map<String, Object> amount_detail = new HashMap<String, Object>();
    amount_detail.put("subtotal","450.00");
    amount_detail.put("tax","45.00");
    amount_detail.put("tip","5.00");
    amount_detail.put("discount","50.00");
    amount_detail.put("shipping","50.00");
request.put("amount_detail",(amount_detail);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("cardholder","Hogwarts School of Witchcraft and Wizardry");
    creditcard.put("number","4444333322221111");
    creditcard.put("expiration","0426");
    creditcard.put("cvc","123");
    creditcard.put("avs_street","1234 Portkey Ave");
    creditcard.put("avs_zip","12345");
request.put("creditcard",(creditcard);
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("is_debt","");
    traits.put("is_bill_pay","");
    traits.put("is_recurring","");
    traits.put("is_healthcare","");
    traits.put("is_cash_advance","");
request.put("traits",(traits);
request.put("custkey","ksddgpqgpbs5zkmb");
    Map<String, Object> billing_address = new HashMap<String, Object>();
    billing_address.put("firstname","Albus");
    billing_address.put("lastname","Dumbledore");
    billing_address.put("street","123 Astronomy Tower");
    billing_address.put("street2","Suite 1");
    billing_address.put("city","Phoenix");
    billing_address.put("state","CA");
    billing_address.put("postalcode","10005");
    billing_address.put("country","USA");
    billing_address.put("phone","555-253-3673");
    billing_address.put("fax","666-253-3673");
request.put("billing_address",(billing_address);
    Map<String, Object> shipping_address = new HashMap<String, Object>();
    shipping_address.put("firstname","Aberforth");
    shipping_address.put("lastname","Dumbledore");
    shipping_address.put("street","987 HogsHead St");
    shipping_address.put("city","Hogsmead");
    shipping_address.put("state","WY");
    shipping_address.put("postalcode","30005");
    shipping_address.put("country","USA");
    shipping_address.put("phone","555-253-3673");
request.put("shipping_address",(shipping_address);List<Map> lineitems = new ArrayList<Map>();
        Map<String, Object> lineitems_item = new HashMap<String, Object>();
        lineitems_item.put("product_key","ds4bb5ckg059vdn8");
        lineitems_item.put("name","Antique Pensieve");
        lineitems_item.put("cost","450.00");
        lineitems_item.put("qty","1");
        lineitems_item.put("tax_amount","50.00");
        lineitems_item.put("location_key","dnyyjc8s2vbz8hb33");
        lineitems_item.put("list_price","500.00");
    lineitems.add(lineitems_item);
request.put("lineitems",(lineitems);
    Map<String, Object> custom_fields = new HashMap<String, Object>();
    custom_fields.put("1","Gryffindor");
    custom_fields.put("2","Headmaster");
request.put("custom_fields",(custom_fields);

String response = "";
response = USAePay.Transactions.post(request);

@POST/transactions@

{
"type": "transaction",
"key": "dnfwxwhz5kvnbgb",
"refnum": "100061",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "314407",
"creditcard": 
    {
    "number": "4444xxxxxxxx1111",
    "cardholder": "Hogwarts School of Witchcraft and Wizardry",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "98454685",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "N",
    "result": "No Match"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "500.00",
"trantype": "Credit Card Sale",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

Map<String, Object> request_token_sale = new HashMap<String, Object>();
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","dx0c3ns6xips28h3");
    creditcard.put("cvc","123");
request_token_sale.put("creditcard",(creditcard);
request_token_sale.put("command","sale");
request_token_sale.put("invoice","101");
request_token_sale.put("ponum","af416fsd5");
request_token_sale.put("description","Woolen Socks");
request_token_sale.put("comments","Best socks in the world.");
request_token_sale.put("amount","17.99");

String response = "";
response = USAePay.Transactions.post(request_token_sale);

@POST/transactions@

{
"type": "transaction",
"key": "nnfkg4y0452kztm",
"refnum": "100071",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "329045",
"creditcard": 
    {
    "number": "4444xxxxxxxx7779",
    "cardholder": "Hogwarts School of Witchcraft and Wizardry",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "101",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "N",
    "result": "No Match"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "17.99",
"trantype": "Credit Card Sale"
}

@POST/transactions@

Map<String, Object> request_paymentkey_sale = new HashMap<String, Object>();
request_paymentkey_sale.put("payment_key","02zxfg87ty824");
request_paymentkey_sale.put("command","sale");
request_paymentkey_sale.put("invoice","101");
request_paymentkey_sale.put("ponum","af416fsd5");
request_paymentkey_sale.put("description","Woolen Socks");
request_paymentkey_sale.put("comments","Best socks in the world.");
request_paymentkey_sale.put("amount","17.99");

String response = "";
response = USAePay.Transactions.post(request_paymentkey_sale);

@POST/transactions@

{
"type": "transaction",
"key": "nnfkg4y0452kztm",
"refnum": "100071",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "329045",
"creditcard": 
    {
    "number": "4444xxxxxxxx7779",
    "cardholder": "Hogwarts School of Witchcraft and Wizardry",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "101",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "N",
    "result": "No Match"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "17.99",
"trantype": "Credit Card Sale"
}

@POST/transactions@

Map<String, Object> request_check_sale = new HashMap<String, Object>();
request_check_sale.put("command","check:sale");
request_check_sale.put("invoice","101");
request_check_sale.put("ponum","af416fsd5");
request_check_sale.put("description","Wolfsbane Potion");
request_check_sale.put("amount","75.00");
    Map<String, Object> check = new HashMap<String, Object>();
    check.put("accountholder","Remus Lupin");
    check.put("routing","123456789");
    check.put("account","324523524");
    check.put("account_type","checking");
    check.put("number","101");
    check.put("format","WEB");
request_check_sale.put("check",(check);

String response = "";
response = USAePay.Transactions.post(request_check_sale);

@POST/transactions@

{
"command": "check:sale",
"invoice": "101",
"ponum": "af416fsd5",
"description": "Wolfsbane Potion",
"amount": "75.00",
"check": 
    {
    "accountholder": "Remus Lupin",
    "routing": "123456789",
    "account": "324523524",
    "account_type": "checking",
    "number": "101",
    "format": "WEB"
    }
}

@POST/transactions@

Map<String, Object> request_cash_sale = new HashMap<String, Object>();
request_cash_sale.put("command","cash:sale");
request_cash_sale.put("amount","5.00");
    Map<String, Object> amount_detail = new HashMap<String, Object>();
    amount_detail.put("tax","1.00");
    amount_detail.put("tip","0.50");
request_cash_sale.put("amount_detail",(amount_detail);

String response = "";
response = USAePay.Transactions.post(request_cash_sale);

@POST/transactions@

{
"type": "transaction",
"key": "3nft52wn1wy7rx8",
"refnum": "100077",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": ""
}

@POST/transactions@

Map<String, Object> request_quicksale = new HashMap<String, Object>();
request_quicksale.put("command","quicksale");
request_quicksale.put("trankey","gnfkd12yhsr7mbs");
request_quicksale.put("amount","5.00");

String response = "";
response = USAePay.Transactions.post(request_quicksale);

@POST/transactions@

{
"type": "transaction",
"key": "mnfwvcf1thnvrgb",
"refnum": "100070",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "328906",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"creditcard": 
    {
    "category_code": "A"
    },
"cvc": 
    {
    "result_code": "P",
    "result": "Not Processed"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "5.00",
"trantype": "Credit Card Sale"
}

@POST/transactions@

{
"type": "transaction",
"key": "5nfty0s5m91vb3b",
"refnum": "100079",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "TM9406",
"proc_refnum": "18120443978215",
"trantype": "Check Sale"
}

@POST/transactions@

Map<String, Object> request_authonly = new HashMap<String, Object>();
request_authonly.put("command","authonly");
request_authonly.put("invoice","98454685");
request_authonly.put("ponum","af416fsd5");
request_authonly.put("description","Antique Pensieve");
request_authonly.put("comments","Powerful magical object. Use with caution.");
request_authonly.put("email","brian@hogwarts.com");
request_authonly.put("send_receipt","1");
request_authonly.put("ignore_duplicate","1");
request_authonly.put("merchemailaddr","receipts@fandb.net");
request_authonly.put("amount","500.00");
    Map<String, Object> amount_detail = new HashMap<String, Object>();
    amount_detail.put("subtotal","450.00");
    amount_detail.put("tax","45.00");
    amount_detail.put("tip","5.00");
    amount_detail.put("discount","50.00");
    amount_detail.put("shipping","50.00");
request_authonly.put("amount_detail",(amount_detail);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("cardholder","Hogwarts School of Witchcraft and Wizardry");
    creditcard.put("number","4444333322221111");
    creditcard.put("expiration","0426");
    creditcard.put("cvc","123");
    creditcard.put("avs_street","1234 Portkey Ave");
    creditcard.put("avs_zip","12345");
request_authonly.put("creditcard",(creditcard);
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("is_debt","");
    traits.put("is_bill_pay","");
    traits.put("is_recurring","");
    traits.put("is_healthcare","");
    traits.put("is_cash_advance","");
request_authonly.put("traits",(traits);
request_authonly.put("custkey","ksddgpqgpbs5zkmb");
    Map<String, Object> billing_address = new HashMap<String, Object>();
    billing_address.put("firstname","Albus");
    billing_address.put("lastname","Dumbledore");
    billing_address.put("street","123 Astronomy Tower");
    billing_address.put("street2","Suite 1");
    billing_address.put("city","Phoenix");
    billing_address.put("state","CA");
    billing_address.put("postalcode","10005");
    billing_address.put("country","USA");
    billing_address.put("phone","555-253-3673");
    billing_address.put("fax","666-253-3673");
request_authonly.put("billing_address",(billing_address);
    Map<String, Object> shipping_address = new HashMap<String, Object>();
    shipping_address.put("firstname","Aberforth");
    shipping_address.put("lastname","Dumbledore");
    shipping_address.put("street","987 HogsHead St");
    shipping_address.put("city","Hogsmead");
    shipping_address.put("state","WY");
    shipping_address.put("postalcode","30005");
    shipping_address.put("country","USA");
    shipping_address.put("phone","555-253-3673");
request_authonly.put("shipping_address",(shipping_address);List<Map> lineitems = new ArrayList<Map>();
        Map<String, Object> lineitems_item = new HashMap<String, Object>();
        lineitems_item.put("product_key","ds4bb5ckg059vdn8");
        lineitems_item.put("name","Antique Pensieve");
        lineitems_item.put("cost","450.00");
        lineitems_item.put("qty","1");
        lineitems_item.put("tax_amount","50.00");
        lineitems_item.put("location_key","dnyyjc8s2vbz8hb33");
        lineitems_item.put("list_price","500.00");
    lineitems.add(lineitems_item);
request_authonly.put("lineitems",(lineitems);
    Map<String, Object> custom_fields = new HashMap<String, Object>();
    custom_fields.put("1","Gryffindor");
    custom_fields.put("2","Headmaster");
request_authonly.put("custom_fields",(custom_fields);

String response = "";
response = USAePay.Transactions.post(request_authonly);

@POST/transactions@

{
"type": "transaction",
"key": "dnfwxwhz5kvnbgb",
"refnum": "100061",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "314407",
"creditcard": 
    {
    "number": "4444xxxxxxxx1111",
    "cardholder": "Hogwarts School of Witchcraft and Wizardry",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "98454685",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "N",
    "result": "No Match"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "500.00",
"trantype": "Credit Card Sale",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

Map<String, Object> request_refund_cc_open = new HashMap<String, Object>();
request_refund_cc_open.put("command","cc:credit");
request_refund_cc_open.put("amount","100.00");
request_refund_cc_open.put("invoice","3579864532");
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("cardholder","Remus Lupin");
    creditcard.put("number","4444333322221111");
    creditcard.put("expiration","0426");
request_refund_cc_open.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_refund_cc_open);

@POST/transactions@

{
"type": "transaction",
"key": "lnftkz3fqjc2682",
"refnum": "100095",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "110118",
"creditcard": 
    {
    "number": "4444xxxxxxxx1111",
    "cardholder": "Remus Lupin",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "3579864532",
"avs": 
    {
    "result_code": "   ",
    "result": "Unmapped AVS response (   )"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1k3yx5xs37cvb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "100.00",
"trantype": "Credit Card Refund (Credit)"
}

@POST/transactions@

Map<String, Object> request_refund_check_open = new HashMap<String, Object>();
request_refund_check_open.put("command","check:credit");
    Map<String, Object> check = new HashMap<String, Object>();
    check.put("accountholder","Remus Lupin");
    check.put("account","324523524");
    check.put("routing","123456789");
    check.put("account_type","checking");
    check.put("number","101");
    check.put("format","WEB");
request_refund_check_open.put("check",(check);
request_refund_check_open.put("amount","5.00");

String response = "";
response = USAePay.Transactions.post(request_refund_check_open);

@POST/transactions@

{
"type": "transaction",
"key": "6nfj34qh3n8qbhw",
"refnum": "21726542",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "TM5CA5",
"proc_refnum": "17092106017626",
"auth_amount": "5.00"
}

@POST/transactions@

Map<String, Object> request_refund_cash_open = new HashMap<String, Object>();
request_refund_cash_open.put("command","cash:refund");
request_refund_cash_open.put("amount","5.00");

String response = "";
response = USAePay.Transactions.post(request_refund_cash_open);

@POST/transactions@

{
"type": "transaction",
"key": "onfwht4cdb21r58",
"refnum": "100098",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "",
"invoice": "98454685",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

Map<String, Object> request_refund_connected = new HashMap<String, Object>();
request_refund_connected.put("command","refund");
request_refund_connected.put("trankey","hnftkyjj2r93ft2");

String response = "";
response = USAePay.Transactions.post(request_refund_connected);

@POST/transactions@

{
"type": "transaction",
"key": "2nf57pywqh09zjs",
"refnum": "124445986",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "445986",
"avs": 
    {
    "result_code": "   ",
    "result": "Unmapped AVS response (   )"
    },
"batch": 
    {
    "type": "batch",
    "key": "0t1k3yx5xs37cvb",
    "batchrefnum": "409384",
    "sequence": "1"
    }
}

@POST/transactions@

{
"type": "transaction",
"key": "anf0cybmfqt9c63",
"refnum": "100084",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "TM3670"
}

@POST/transactions@

Map<String, Object> request_quickrefund = new HashMap<String, Object>();
request_quickrefund.put("command","quickrefund");
request_quickrefund.put("trankey","dnfwxwhz5kvnbgb");
request_quickrefund.put("amount","5.00");

String response = "";
response = USAePay.Transactions.post(request_quickrefund);

@POST/transactions@

{
"type": "transaction",
"key": "pnftkk568yskw30",
"refnum": "100099",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "110122",
"creditcard": 
    {
    "number": "4444xxxxxxxx1111"
    },
"avs": 
    {
    "result_code": "   ",
    "result": "Unmapped AVS response (   )"
    },
"batch": 
    {
    "type": "batch",
    "key": "pt1qxpnx0f5303d",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"trantype": "Credit Card Refund (Credit)",
"auth_amount": "5.00",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

{
"type": "transaction",
"key": "0nftkkdy9v0kgbb",
"refnum": "100100",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "TMF291",
"proc_refnum": "18120544051570",
"trantype": "Reverse ACH",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

Map<String, Object> request_creditvoid = new HashMap<String, Object>();
request_creditvoid.put("command","creditvoid");
request_creditvoid.put("trankey","dnfwxwhz5kvnbgb");

String response = "";
response = USAePay.Transactions.post(request_creditvoid);

@POST/transactions@

{
"type": "transaction",
"key": "pnftkk568yskw30",
"refnum": "100099",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "110122",
"creditcard": 
    {
    "number": "4444xxxxxxxx1111"
    },
"avs": 
    {
    "result_code": "   ",
    "result": "Unmapped AVS response (   )"
    },
"batch": 
    {
    "type": "batch",
    "key": "pt1qxpnx0f5303d",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"trantype": "Credit Card Refund (Credit)",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

{
"type": "transaction",
"key": "0nftkkdy9v0kgbb",
"refnum": "100100",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "TMF291",
"proc_refnum": "18120544051570",
"trantype": "Reverse ACH",
"receipts": 
    {
    "customer": "Mail Sent Successfully",
    "merchant": "Mail Sent Successfully"
    }
}

@POST/transactions@

Map<String, Object> request_capture = new HashMap<String, Object>();
request_capture.put("command","cc:capture");
request_capture.put("trankey","4nftw5kqd7bjy82");

String response = "";
response = USAePay.Transactions.post(request_capture);

@POST/transactions@

{
"type": "transaction",
"key": "4nftw5kqd7bjy82",
"refnum": "100104",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "326349",
"invoice": "98454685",
"batch": 
    {
    "type": "batch",
    "key": "pt1qxpnx0f5303d",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "500.00"
}

@POST/transactions@

Map<String, Object> request_adjust = new HashMap<String, Object>();
request_adjust.put("command","cc:adjust");
request_adjust.put("trankey","4nftw5kqd7bjy82");
request_adjust.put("amount","3.00");

String response = "";
response = USAePay.Transactions.post(request_adjust);

@POST/transactions@

{
"type": "transaction",
"key": "2nfmnj4fxj13b3q",
"refnum": "21726798",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "002048",
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "3.00"
}

@POST/transactions@

Map<String, Object> request_refund_adjust = new HashMap<String, Object>();
request_refund_adjust.put("command","refund:adjust");
request_refund_adjust.put("refnum","21726766");
request_refund_adjust.put("amount","3.00");

String response = "";
response = USAePay.Transactions.post(request_refund_adjust);

@POST/transactions@

{
"type": "transaction",
"key": "mnfky8s1mz0gmbd",
"refnum": "21726766",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "002035",
"batch": 
    {
    "type": "batch",
    "key": "0t1jyndn769q1vb",
    "batchrefnum": "409384",
    "sequence": "1"
    },
"auth_amount": "97.00"
}

@POST/transactions@

Map<String, Object> request_post_authorization = new HashMap<String, Object>();
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","4000100611112228");
    creditcard.put("expiration","0426");
    creditcard.put("cvc","123");
    creditcard.put("avs_street","1234 Portkey Ave");
    creditcard.put("avs_zip","12345");
request_post_authorization.put("creditcard",(creditcard);
request_post_authorization.put("command","cc:postauth");
request_post_authorization.put("authcode","684538");
request_post_authorization.put("invoice","101");
request_post_authorization.put("ponum","af416fsd5");
request_post_authorization.put("description","Woolen Socks");
request_post_authorization.put("comments","Best socks in the world.");
request_post_authorization.put("send_receipt","1");
request_post_authorization.put("amount","17.99");

String response = "";
response = USAePay.Transactions.post(request_post_authorization);

@POST/transactions@

{
"type": "transaction",
"key": "inftypr7p2fwxr2",
"refnum": "100170",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "684538",
"creditcard": 
    {
    "number": "4000xxxxxxxx2228",
    "cardholder": "Hogwarts School of Witchcraft and Wizardry",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "101",
"batch": 
    {
    "type": "batch",
    "key": "ft1m9m5p9wgd9mb",
    "sequence": "2902"
    },
"auth_amount": "17.99"
}

@POST/transactions@

Map<String, Object> request_void = new HashMap<String, Object>();
request_void.put("command","void");
request_void.put("trankey","bnfkqy54w4qwtmq");

String response = "";
response = USAePay.Transactions.post(request_void);

@POST/transactions@

{
"type": "transaction",
"key": "bnfkqy54w4qwtmq",
"refnum": "21725793",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "000973"
}

@POST/transactions@

Map<String, Object> request_void_release = new HashMap<String, Object>();
request_void_release.put("command","cc:void:release");
request_void_release.put("trankey","dnft1yqgm9rh6b0");

String response = "";
response = USAePay.Transactions.post(request_void_release);

@POST/transactions@

{
"type": "transaction",
"key": "dnft1yqgm9rh6b0",
"refnum": "21726107",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "001788"
}

@POST/transactions@

Map<String, Object> request_unvoid = new HashMap<String, Object>();
request_unvoid.put("command","unvoid");
request_unvoid.put("trankey","bnfkqy54w4qwtmq");

String response = "";
response = USAePay.Transactions.post(request_unvoid);

@POST/transactions@

{
"type": "transaction",
"key": "bnfkqy54w4qwtmq",
"refnum": "21725793",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "000973"
}

@POST/transactions@

Map<String, Object> request_create_token = new HashMap<String, Object>();
request_create_token.put("command","cc:save");
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("cardholder","John Doe");
    creditcard.put("number","4000100011112224");
    creditcard.put("expiration","0426");
    creditcard.put("cvc","123");
    creditcard.put("avs_street","1234 Main");
    creditcard.put("avs_postalcode","12345");
request_create_token.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_create_token);

@POST/transactions@

{
"type": "transaction",
"key": "",
"refnum": "",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "",
"creditcard": 
    {
    "number": "4000xxxxxxxx2224",
    "cardholder": "John Doe"
    },
"savedcard": 
    {
    "type": "Visa",
    "key": "tqb9-o076-tpfk-lb8l",
    "cardnumber": "4000xxxxxxxx2224"
    }
}

@POST/transactions@

Map<String, Object> request_customer_transaction = new HashMap<String, Object>();
request_customer_transaction.put("command","customer:sale");
request_customer_transaction.put("custkey","lsddntp1p7hdthms");
request_customer_transaction.put("paymethod_key","in02p9swwbnqmcs4s");
request_customer_transaction.put("invoice","101");
request_customer_transaction.put("ponum","af416fsd5");
request_customer_transaction.put("description","Wolfsbane Potion");
request_customer_transaction.put("amount","75.00");

String response = "";
response = USAePay.Transactions.post(request_customer_transaction);

@POST/transactions@

{
"type": "transaction",
"key": "fnf0c8975sr76rb",
"refnum": "100349",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "351293",
"creditcard": 
    {
    "number": "4444xxxxxxxx7779",
    "category_code": "A",
    "entry_mode": "Card Not Present, Manually Keyed"
    },
"invoice": "101",
"avs": 
    {
    "result_code": "YYY",
    "result": "Address: Match & 5 Digit Zip: Match"
    },
"cvc": 
    {
    "result_code": "P",
    "result": "Not Processed"
    },
"batch": 
    {
    "type": "batch",
    "key": "et1m9h57b4m26rt",
    "batchrefnum": "409384",
    "sequence": "2516"
    },
"auth_amount": "75.00",
"trantype": "Credit Card Sale"
}

@POST/transactions@

Map<String, Object> request_customer_refund = new HashMap<String, Object>();
request_customer_refund.put("command","customer:refund");
request_customer_refund.put("invoice","101");
request_customer_refund.put("ponum","af416fsd5");
request_customer_refund.put("description","Wolfsbane Potion");
request_customer_refund.put("amount","5.00");
request_customer_refund.put("custkey","lsddntp1p7hdthms");
request_customer_refund.put("paymethod_key","in02p9swwbnqmcs4s");

String response = "";
response = USAePay.Transactions.post(request_customer_refund);

@POST/transactions@

{
"type": "transaction",
"key": "gnfkd12kcxh7ng2",
"refnum": "100350",
"is_duplicate": "N",
"result_code": "A",
"result": "Approved",
"authcode": "110373",
"creditcard": 
    {
    "number": "4444xxxxxxxx7779"
    },
"invoice": "101",
"avs": 
    {
    "result_code": "   ",
    "result": "Unmapped AVS response (   )"
    },
"batch": 
    {
    "type": "batch",
    "key": "et1m9h57b4m26rt",
    "batchrefnum": "409384",
    "sequence": "2516"
    },
"trantype": "Credit Card Refund (Credit)"
}

@POST/transactions@

Map<String, Object> request_stored_credential_recurring = new HashMap<String, Object>();
request_stored_credential_recurring.put("command","sale");
request_stored_credential_recurring.put("amount","20");
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("stored_credential","recurring");
request_stored_credential_recurring.put("traits",(traits);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","tyet-xk8x-vpj4-7swq");
    creditcard.put("expiration","0426");
request_stored_credential_recurring.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_stored_credential_recurring);

@POST/transactions@

Map<String, Object> request_stored_credential_installment = new HashMap<String, Object>();
request_stored_credential_installment.put("command","sale");
request_stored_credential_installment.put("amount","20");
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("stored_credential","installment");
request_stored_credential_installment.put("traits",(traits);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","tyet-xk8x-vpj4-7swq");
    creditcard.put("expiration","0426");
request_stored_credential_installment.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_stored_credential_installment);

@POST/transactions@

Map<String, Object> request_stored_credential_ucof = new HashMap<String, Object>();
request_stored_credential_ucof.put("command","sale");
request_stored_credential_ucof.put("amount","20");
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("stored_credential","ucof");
request_stored_credential_ucof.put("traits",(traits);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","tyet-xk8x-vpj4-7swq");
    creditcard.put("expiration","0426");
request_stored_credential_ucof.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_stored_credential_ucof);

@POST/transactions@

Map<String, Object> request_stored_credential_customer_intitiated = new HashMap<String, Object>();
request_stored_credential_customer_intitiated.put("command","sale");
request_stored_credential_customer_intitiated.put("amount","20");
    Map<String, Object> traits = new HashMap<String, Object>();
    traits.put("stored_credential","customer_intitiated");
request_stored_credential_customer_intitiated.put("traits",(traits);
    Map<String, Object> creditcard = new HashMap<String, Object>();
    creditcard.put("number","tyet-xk8x-vpj4-7swq");
    creditcard.put("expiration","0426");
request_stored_credential_customer_intitiated.put("creditcard",(creditcard);

String response = "";
response = USAePay.Transactions.post(request_stored_credential_customer_intitiated);

@POST/transactions/:trankey:/send@

Map<String, Object> request = new HashMap<String, Object>();
request.put("trankey","Example_trankey");
request.put("toemail","wulfric@hogwarts.com");
request.put("template","vterm_customer");

String response = "";
response = USAePay.Transactions.Send.post(request);

@POST/transactions/:trankey:/send@

{
"status": "success"
}

@GET/transactions/:trankey:/receipts/:receipt_key:@

Map<String, Object> request = new HashMap<String, Object>();
request.put("trankey","Example_trankey");
request.put("receipt_key","Example_receipt_key");

String response = "";
response = USAePay.Transactions.Receipts.get(request);

@GET/transactions/:trankey:/receipts/:receipt_key:@

String response = "PGh0bWw+Cgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5OZXcgT3JkZXIgKEN1c3RvbWVyKSBSZWNlaXB0PC90aXRsZT4KICAgIDxzdHlsZT4KCQkjTWFpblJlY2VpcHRCb2R5IHsKCQkJbWF4LXdpZHRoOiA3NTBweDsKCQkJbWFyZ2luOiAwIGF1dG87CgkJfQogICAgICAgIC5iYWNrZ3JvdW5kY29sb3IgewogICAgICAgICAgICBib3JkZXItY29sb3I6ICMwMDM4NUQ7CiAgICAgICAgfQoKICAgICAgICAuZm9yZWdyb3VuZGNvbG9yIHsKICAgICAgICAgICAgYmFja2dyb3VuZDogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvciB7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICMwMDcyQkQ7CiAgICAgICAgfQoKICAgICAgICAuYWNjZW50Y29sb3J0eHQgewogICAgICAgICAgICBjb2xvcjogIzAwNzJCRDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcmhlYWQgewogICAgICAgICAgICBjb2xvcjogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcjIgdGggc3BhbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDA3MkJEICFpbXBvcnRhbnQ7CiAgICAgICAgfQoKICAgICAgIAoKICAgICAgICAuYm9keS1wYWQgewogICAgICAgICAgICBwYWRkaW5nOiAyMHB4IDUwcHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1ib2R5IHsKICAgICAgICAgICAgYm9yZGVyOiA0cHggc29saWQgIzAwMzg1RDsKICAgICAgICAgICAgcGFkZGluZzogMjBweCA1MHB4OwogICAgICAgIH0KCiAgICAgICAgLmZvbnRfdGhpbiB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGxldHRlci1zcGFjaW5nOiAxcHg7CiAgICAgICAgfQoKICAgICAgICAucGFkZGluZy1idDAgewogICAgICAgICAgICBwYWRkaW5nLXRvcDogMHB4OwogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbXBhbnktbmFtZS10ZXh0IHsKICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1uYW1lLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDI1cHggIWltcG9ydGFudDsKICAgICAgICAgICAgdGV4dC1zaGFkb3c6IDFweCAwcHggMXB4IHJnYmEoMTUwLCAxNTAsIDE1MCwgMSk7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIH0KCiAgICAgICAgLnRvdGFsLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1zZWN0aW9uLXRhYmxlIHsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgICB9CgogICAgICAgCiAgICAgICAgdGhlYWQgdGggewogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMTBweDsKICAgICAgICB9CgogICAgICAgIHRoZWFkIHRoIHNwYW4gewogICAgICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuNSk7CiAgICAgICAgfQoKICAgICAgICB0Ym9keSB0ZCB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICAgICAgcGFkZGluZzogMnB4IDA7CiAgICAgICAgfQoKICAgICAgICAuaGVhZGVyewogICAgICAgICAgICBkaXNwbGF5OiBpbmhlcml0OwogICAgICAgIH0KCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KICAgIDx0YWJsZSBpZD0iTWFpblJlY2VpcHRCb2R5IiBjbGFzcz0icmVjZWlwdC1ib2R5IGJvZHktcGFkIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgPHRib2R5PgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSIiIGlkPSJyZWNlaXB0cy1lbWFpbC1pbmZvIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keSBhbGlnbj0iY2VudGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS08dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGNsYXNzPSJsb2dvLWltZyIgc3JjPSIgICIgd2lkdGg9IjE1MCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4tLT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMiBjbGFzcz0icmVjZWlwdF9uYW1lIGNvbXBhbnktbmFtZS10ZXh0IGZvbnRfdGhpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3VyIGNhcmQgaGFzIGJlZW4gY2hhcmdlZCBieSBGbG91cmlzaCAmYW1wOyBCbG90dHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMyBjbGFzcz0icmVjZWlwdC1uYW1lLXRleHQgYWNjZW50Y29sb3J0eHQiIHN0eWxlPSJmb250LXNpemU6IDMwcHg7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlY2VpcHQgb2YgUGF5bWVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2gzPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIGNsYXNzPSJ0b3RhbC10ZXh0Ij5Ub3RhbCAgNTAwLjAwPC9oMj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGg0IGNsYXNzPSJ0b3RhbC10ZXh0Ij5UYXggNDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+U2hpcHBpbmcgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+VGlwIDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+RGlzY291bnQgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+CiAgICAgICAgICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0ie3sjZW1haWxpY29ufX0gYWNjZW50Y29sb3IyIHt7L2VtYWlsaWNvbn19Ij4KICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InRhYmxlIHJlY2VpcHQtZWRpdC10YWJsZSByZWNlaXB0LXNlY3Rpb24tdGFibGUgICIgaWQ9ImNjLXRhYmxlIiAgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+Q3JlZGl0IENhcmQgSW5mb3JtYXRpb248L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHkgaWQ9ImNjLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iY3VzdG9tZXItcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FyZCBIb2xkZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaW5lcnZhIE1jR29ubmVnYWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9ImNjbnVtNC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVkaXQgQ2FyZCAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeHh4eCB4eHh4IHh4eHggIDExMTEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSJ0YWJsZSAgcmVjZWlwdC1lZGl0LXRhYmxlIHJlY2VpcHQtc2VjdGlvbi10YWJsZSAgIiBpZD0iZGV0YWlscy10YWJsZSIgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+RGV0YWlsIEluZm9ybWF0aW9uPC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5IGlkPSJkZXRhaWxzLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iZGF0ZS1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMDEvMjQvMTkgMDQ6MjEgcG0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibWVyY2hhbnQtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVmcmVuY2UgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEwMDExNgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyIGlkPSJtZXJjaGFudC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUcmFuc2FjdGlvbiBLZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbmZrZDEybXFrenRiZzIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iYXV0aGNvZGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbiAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMTA2OTA3CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imludm9pY2Utcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSW52b2ljZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDk4NDU0Njg1CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9InR5cGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWRpdCBDYXJkIFNhbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibGluZWl0ZW0tcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExpbmUgSXRlbXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9ImxpbmVpdGVtcy10YmwiPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWhlYWRlci1yb3ciPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXNrdSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItc2t1Ij5TS1U8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLW5hbWUiIGlkPSJsaW5laXRlbXMtaGVhZGVyLW5hbWUiPk5hbWU8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLWNvc3QiIGlkPSJsaW5laXRlbXMtaGVhZGVyLWNvc3QiPkNvc3Q8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXF0eSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItcXR5Ij5RdHk8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXN1YnRvdGFsIiBpZD0ibGluZWl0ZW1zLWhlYWRlci1zdWJ0b3RhbCI+U3ViVG90YWw8L3RoPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXJvdyI+IDx0ZCBjbGFzcz0ibGluZWl0ZW1zLWNlbGwgbGluZWl0ZW1zLXNrdSBsaW5laXRlbXMtc2t1LWNlbGwiPjY4NDUzNDIzPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtbmFtZS1jZWxsIj5BbnRpcXVlIFBlbnNpZXZlPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtY29zdCBsaW5laXRlbXMtY29zdC1jZWxsIj40NTAuMDA8L3RkPiA8dGQgY2xhc3M9ImxpbmVpdGVtcy1jZWxsIGxpbmVpdGVtcy1xdHkgbGluZWl0ZW1zLXF0eS1jZWxsIj4xPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtc3VidG90YWwgbGluZWl0ZW1zLXN1YnRvdGFsLWNlbGwiPiQ0NTAuMDA8L3RkPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXN1YnRvdGFsLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXN1YnRvdGFsLWxhYmxlIj5TdWJ0b3RhbDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItc3VidG90YWwtdmFsdWUiPiQ0NTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdGlwLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXRpcC1sYWJlbCI+VGlwPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10aXAtdmFsdWUiPiQ1LjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLXRheC1yb3ciPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXNrdSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1uYW1lIGxpbmVpdGVtcy1mb290ZXItbGFiZWwgbGluZWl0ZW1zLWZvb3Rlci10YXgtbGFiZWwiPlRheDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItdGF4LXZhbHVlIj4kNDUuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtc2hpcHBpbmctcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItc2hpcHBpbmctbGFiZWwiPlNoaXBwaW5nPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci1zaGlwcGluZy12YWx1ZSI+JDUwLjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWRpc2NvdW50LXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLWRpc2NvdW50LWxhYmVsIj5EaXNjb3VudDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItZGlzY291bnQtdmFsdWUiPi0kNTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdG90YWwtcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItdG90YWwtbGFiZWwiPlRvdGFsPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10b3RhbC12YWx1ZSI+JDUwMC4wMDwvdGQ+PC90cj48L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICA8L3Rib2R5PgogICAgPC90YWJsZT4KICAKPC9ib2R5PgoKPC9odG1sPgo="
"PGh0bWw+Cgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5OZXcgT3JkZXIgKEN1c3RvbWVyKSBSZWNlaXB0PC90aXRsZT4KICAgIDxzdHlsZT4KCQkjTWFpblJlY2VpcHRCb2R5IHsKCQkJbWF4LXdpZHRoOiA3NTBweDsKCQkJbWFyZ2luOiAwIGF1dG87CgkJfQogICAgICAgIC5iYWNrZ3JvdW5kY29sb3IgewogICAgICAgICAgICBib3JkZXItY29sb3I6ICMwMDM4NUQ7CiAgICAgICAgfQoKICAgICAgICAuZm9yZWdyb3VuZGNvbG9yIHsKICAgICAgICAgICAgYmFja2dyb3VuZDogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvciB7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICMwMDcyQkQ7CiAgICAgICAgfQoKICAgICAgICAuYWNjZW50Y29sb3J0eHQgewogICAgICAgICAgICBjb2xvcjogIzAwNzJCRDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcmhlYWQgewogICAgICAgICAgICBjb2xvcjogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcjIgdGggc3BhbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDA3MkJEICFpbXBvcnRhbnQ7CiAgICAgICAgfQoKICAgICAgIAoKICAgICAgICAuYm9keS1wYWQgewogICAgICAgICAgICBwYWRkaW5nOiAyMHB4IDUwcHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1ib2R5IHsKICAgICAgICAgICAgYm9yZGVyOiA0cHggc29saWQgIzAwMzg1RDsKICAgICAgICAgICAgcGFkZGluZzogMjBweCA1MHB4OwogICAgICAgIH0KCiAgICAgICAgLmZvbnRfdGhpbiB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGxldHRlci1zcGFjaW5nOiAxcHg7CiAgICAgICAgfQoKICAgICAgICAucGFkZGluZy1idDAgewogICAgICAgICAgICBwYWRkaW5nLXRvcDogMHB4OwogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbXBhbnktbmFtZS10ZXh0IHsKICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1uYW1lLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDI1cHggIWltcG9ydGFudDsKICAgICAgICAgICAgdGV4dC1zaGFkb3c6IDFweCAwcHggMXB4IHJnYmEoMTUwLCAxNTAsIDE1MCwgMSk7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIH0KCiAgICAgICAgLnRvdGFsLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1zZWN0aW9uLXRhYmxlIHsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgICB9CgogICAgICAgCiAgICAgICAgdGhlYWQgdGggewogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMTBweDsKICAgICAgICB9CgogICAgICAgIHRoZWFkIHRoIHNwYW4gewogICAgICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuNSk7CiAgICAgICAgfQoKICAgICAgICB0Ym9keSB0ZCB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICAgICAgcGFkZGluZzogMnB4IDA7CiAgICAgICAgfQoKICAgICAgICAuaGVhZGVyewogICAgICAgICAgICBkaXNwbGF5OiBpbmhlcml0OwogICAgICAgIH0KCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KICAgIDx0YWJsZSBpZD0iTWFpblJlY2VpcHRCb2R5IiBjbGFzcz0icmVjZWlwdC1ib2R5IGJvZHktcGFkIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgPHRib2R5PgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSIiIGlkPSJyZWNlaXB0cy1lbWFpbC1pbmZvIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keSBhbGlnbj0iY2VudGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS08dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGNsYXNzPSJsb2dvLWltZyIgc3JjPSIgICIgd2lkdGg9IjE1MCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4tLT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMiBjbGFzcz0icmVjZWlwdF9uYW1lIGNvbXBhbnktbmFtZS10ZXh0IGZvbnRfdGhpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3VyIGNhcmQgaGFzIGJlZW4gY2hhcmdlZCBieSBGbG91cmlzaCAmYW1wOyBCbG90dHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMyBjbGFzcz0icmVjZWlwdC1uYW1lLXRleHQgYWNjZW50Y29sb3J0eHQiIHN0eWxlPSJmb250LXNpemU6IDMwcHg7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlY2VpcHQgb2YgUGF5bWVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2gzPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIGNsYXNzPSJ0b3RhbC10ZXh0Ij5Ub3RhbCAgNTAwLjAwPC9oMj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGg0IGNsYXNzPSJ0b3RhbC10ZXh0Ij5UYXggNDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+U2hpcHBpbmcgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+VGlwIDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+RGlzY291bnQgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+CiAgICAgICAgICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0ie3sjZW1haWxpY29ufX0gYWNjZW50Y29sb3IyIHt7L2VtYWlsaWNvbn19Ij4KICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InRhYmxlIHJlY2VpcHQtZWRpdC10YWJsZSByZWNlaXB0LXNlY3Rpb24tdGFibGUgICIgaWQ9ImNjLXRhYmxlIiAgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+Q3JlZGl0IENhcmQgSW5mb3JtYXRpb248L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHkgaWQ9ImNjLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iY3VzdG9tZXItcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FyZCBIb2xkZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaW5lcnZhIE1jR29ubmVnYWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9ImNjbnVtNC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVkaXQgQ2FyZCAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeHh4eCB4eHh4IHh4eHggIDExMTEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSJ0YWJsZSAgcmVjZWlwdC1lZGl0LXRhYmxlIHJlY2VpcHQtc2VjdGlvbi10YWJsZSAgIiBpZD0iZGV0YWlscy10YWJsZSIgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+RGV0YWlsIEluZm9ybWF0aW9uPC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5IGlkPSJkZXRhaWxzLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iZGF0ZS1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMDEvMjQvMTkgMDQ6MjEgcG0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibWVyY2hhbnQtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVmcmVuY2UgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEwMDExNgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyIGlkPSJtZXJjaGFudC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUcmFuc2FjdGlvbiBLZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbmZrZDEybXFrenRiZzIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iYXV0aGNvZGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbiAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMTA2OTA3CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imludm9pY2Utcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSW52b2ljZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDk4NDU0Njg1CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9InR5cGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWRpdCBDYXJkIFNhbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibGluZWl0ZW0tcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExpbmUgSXRlbXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9ImxpbmVpdGVtcy10YmwiPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWhlYWRlci1yb3ciPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXNrdSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItc2t1Ij5TS1U8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLW5hbWUiIGlkPSJsaW5laXRlbXMtaGVhZGVyLW5hbWUiPk5hbWU8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLWNvc3QiIGlkPSJsaW5laXRlbXMtaGVhZGVyLWNvc3QiPkNvc3Q8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXF0eSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItcXR5Ij5RdHk8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXN1YnRvdGFsIiBpZD0ibGluZWl0ZW1zLWhlYWRlci1zdWJ0b3RhbCI+U3ViVG90YWw8L3RoPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXJvdyI+IDx0ZCBjbGFzcz0ibGluZWl0ZW1zLWNlbGwgbGluZWl0ZW1zLXNrdSBsaW5laXRlbXMtc2t1LWNlbGwiPjY4NDUzNDIzPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtbmFtZS1jZWxsIj5BbnRpcXVlIFBlbnNpZXZlPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtY29zdCBsaW5laXRlbXMtY29zdC1jZWxsIj40NTAuMDA8L3RkPiA8dGQgY2xhc3M9ImxpbmVpdGVtcy1jZWxsIGxpbmVpdGVtcy1xdHkgbGluZWl0ZW1zLXF0eS1jZWxsIj4xPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtc3VidG90YWwgbGluZWl0ZW1zLXN1YnRvdGFsLWNlbGwiPiQ0NTAuMDA8L3RkPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXN1YnRvdGFsLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXN1YnRvdGFsLWxhYmxlIj5TdWJ0b3RhbDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItc3VidG90YWwtdmFsdWUiPiQ0NTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdGlwLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXRpcC1sYWJlbCI+VGlwPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10aXAtdmFsdWUiPiQ1LjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLXRheC1yb3ciPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXNrdSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1uYW1lIGxpbmVpdGVtcy1mb290ZXItbGFiZWwgbGluZWl0ZW1zLWZvb3Rlci10YXgtbGFiZWwiPlRheDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItdGF4LXZhbHVlIj4kNDUuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtc2hpcHBpbmctcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItc2hpcHBpbmctbGFiZWwiPlNoaXBwaW5nPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci1zaGlwcGluZy12YWx1ZSI+JDUwLjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWRpc2NvdW50LXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLWRpc2NvdW50LWxhYmVsIj5EaXNjb3VudDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItZGlzY291bnQtdmFsdWUiPi0kNTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdG90YWwtcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItdG90YWwtbGFiZWwiPlRvdGFsPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10b3RhbC12YWx1ZSI+JDUwMC4wMDwvdGQ+PC90cj48L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICA8L3Rib2R5PgogICAgPC90YWJsZT4KICAKPC9ib2R5PgoKPC9odG1sPgo="

@GET/batches/:batch_key:@

<?php
$request=(object)[
    "batch_key"=>"Example_batch_key",
];

$response = USAePay\Batches\Get($request);

@GET/batches/:batch_key:@

<?php
$response=(object)[
    "type"=>"batch",
    "key"=>"ft1m9m5p9wgd9mb",
    "opened"=>"2019-01-28 17:02:22",
    "status"=>"closed",
    "closed"=>"2019-01-28 17:02:36",
    "scheduled"=>"2019-01-28 17:02:36",
    "total_amount"=>"3042.48",
    "total_count"=>"29",
    "sales_amount"=>"4755.48",
    "sales_count"=>"18",
    "voids_amount"=>"17.99",
    "voids_count"=>"1",
    "refunds_amount"=>"1713",
    "refunds_count"=>"10",
]

@GET/batches@

<?php
$request=(object)[
    "limit"=>"52",
    "offset"=>"76",
    "openedlt"=>"67",
    "openedgt"=>"9",
    "closedlt"=>"45",
    "closedgt"=>"67",
    "openedle"=>"48",
    "openedge"=>"45",
    "closedle"=>"21",
    "closedge"=>"38",
];

$response = USAePay\Batches\Get($request);

@GET/batches@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"batch",
            "key"=>"ft1m9m5p9wgd9mb",
            "batchnum"=>"2412",
            "opened"=>"2018-11-24 11:02:02",
            "closed"=>"2018-11-24 12:01:01",
        ],
    ],
    "total"=>"1",
]

@GET/batches/current@

<?php
$request=(object)[
];

$response = USAePay\Batches\Current\Get($request);

@GET/batches/current@

<?php
$response=(object)[
    "type"=>"batch",
    "key"=>"ft1m9m5p9wgd9mb",
    "opened"=>"2019-01-28 17:02:22",
    "status"=>"closed",
    "closed"=>"2019-01-28 17:02:36",
    "scheduled"=>"2019-01-28 17:02:36",
    "total_amount"=>"3042.48",
    "total_count"=>"29",
    "sales_amount"=>"4755.48",
    "sales_count"=>"18",
    "voids_amount"=>"17.99",
    "voids_count"=>"1",
    "refunds_amount"=>"1713",
    "refunds_count"=>"10",
]

@GET/batches/:batch_key:/transactions@

<?php
$request=(object)[
    "batch_key"=>"Example_batch_key",
    "limit"=>"44",
    "offset"=>"71",
    "return_bin"=>"4",
];

$response = USAePay\Batches\Transactions\Get($request);

@GET/batches/:batch_key:/transactions@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"20",
    "offset"=>"0",
    "data"=>[
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
    ],
    "total"=>"1",
]

@GET/batches/current/transactions@

<?php
$request=(object)[
    "limit"=>"93",
    "offset"=>"70",
    "return_bin"=>"85",
];

$response = USAePay\Batches\Current\Transactions\Get($request);

@GET/batches/current/transactions@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"20",
    "offset"=>"0",
    "data23"=>[
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
    ],
    "total"=>"1",
]

@POST/batches/current/close@

<?php
$request=(object)[
];

$response = USAePay\Batches\Current\Close\Post($request);

@POST/batches/current/close@

<?php
$response=(object)[
    "type"=>"batch",
    "key"=>"ft1m9m5p9wgd9mb",
    "batchnum"=>"2412",
    "opened"=>"2018-11-24 11:02:02",
    "closed"=>"2018-11-24 12:01:01",
]

@GET/customers/:custkey:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
];

$response = USAePay\Customers\Get($request);

@GET/customers/:custkey:@

<?php
$response=(object)[
    "type"=>"customer",
    "key"=>"nsds9yd1h5kb9y5h",
    "custid"=>"123456",
    "company"=>"Weasleys Wizard Wheezes",
    "first_name"=>"George",
    "last_name"=>"Weasley",
    "description"=>"Mischief Managed.",
    "payment_methods"=>[
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
    ],
    "billing_schedules"=>[
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
    ],
]

@GET/customers@

<?php
$request=(object)[
    "limit"=>"1",
    "offset"=>"77",
];

$response = USAePay\Customers\Get($request);

@GET/customers@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"customer",
            "key"=>"nsds9yd1h5kb9y5h",
            "custid"=>"123456",
            "company"=>"Weasleys Wizard Wheezes",
            "first_name"=>"George",
            "last_name"=>"Weasley",
            "address"=>"93 Diagon Alley",
            "address2"=>"Apartment 2",
            "city"=>"London",
            "state"=>"Greater London",
            "postalcode"=>"WC2H 0AW",
            "country"=>"Great Britain",
            "phone"=>"747-3733",
            "fax"=>"584-4537",
            "email"=>"noreply@mugglenet.com",
            "url"=>"https://www.pottermore.com/",
            "notes"=>"Born on April fools day.",
            "description"=>"Mischief Managed.",
        ],
    ],
    "total"=>"1",
]

@POST/customers@

<?php
$request=(object)[
    "custid"=>"123456",
    "company"=>"Weasleys Wizard Wheezes",
    "first_name"=>"George",
    "last_name"=>"Weasley",
    "description"=>"Mischief Managed.",
    "payment_methods"=>[
        (object)[
            "cardholder"=>"Fillius Flitwick",
            "expiration"=>"0426",
            "number"=>"4000100011112224",
            "pay_type"=>"cc",
        ],
        (object)[
            "cardholder"=>"Fillius Flitwick",
            "expiration"=>"0426",
            "number"=>"4000100011112224",
            "pay_type"=>"cc",
        ],
    ],
    "billing_schedules"=>[
        (object)[
            "amount"=>"8",
            "enabled"=>"1",
            "rules69"=>[
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
            ],
        ],
        (object)[
            "amount"=>"8",
            "enabled"=>"1",
            "rules"=>[
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
            ],
        ],
    ],
];

$response = USAePay\Customers\Post($request);

@POST/customers@

<?php
$response=(object)[
    "type"=>"customer",
    "key"=>"nsds9yd1h5kb9y5h",
    "custid"=>"123456",
    "company"=>"Weasleys Wizard Wheezes",
    "first_name"=>"George",
    "last_name"=>"Weasley",
    "description"=>"Mischief Managed.",
    "payment_methods"=>[
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
    ],
    "billing_schedules"=>[
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
    ],
]

@DELETE/customers/:custkey:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
];

$response = USAePay\Customers\Delete($request);

@DELETE/customers/:custkey:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/customers/:custkey:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "custid"=>"123456",
    "company"=>"Weasleys Wizard Wheezes",
    "first_name"=>"George",
    "last_name"=>"Weasley",
    "description"=>"Mischief Managed.",
    "payment_methods"=>[
        (object)[
            "cardholder"=>"Fillius Flitwick",
            "expiration"=>"0426",
            "number"=>"4000100011112224",
            "pay_type"=>"cc",
        ],
        (object)[
            "cardholder"=>"Fillius Flitwick",
            "expiration"=>"0426",
            "number"=>"4000100011112224",
            "pay_type"=>"cc",
        ],
    ],
    "billing_schedules"=>[
        (object)[
            "amount"=>"8",
            "enabled"=>"1",
            "rules"=>[
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
            ],
        ],
        (object)[
            "amount"=>"8",
            "enabled"=>"1",
            "rules"=>[
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
                (object)[
                    "day_offset"=>"3",
                    "subject"=>"Day",
                ],
            ],
        ],
    ],
];

$response = USAePay\Customers\Put($request);

@PUT/customers/:custkey:@

<?php
$response=(object)[
    "type"=>"customer",
    "key"=>"nsds9yd1h5kb9y5h",
    "custid"=>"123456",
    "company"=>"Weasleys Wizard Wheezes",
    "first_name"=>"George",
    "last_name"=>"Weasley",
    "description"=>"Mischief Managed.",
    "payment_methods"=>[
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
    ],
    "billing_schedules"=>[
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
    ],
]

@POST/customers/enable@

<?php
$request=(object)[
];

$response = USAePay\Customers\Enable\Post($request);

@POST/customers/enable@

<?php
$response=(object)[
    "status"=>"success",
]

@POST/customers/disable@

<?php
$request=(object)[
];

$response = USAePay\Customers\Disable\Post($request);

@POST/customers/disable@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
];

$response = USAePay\Customers\Billing_schedules\Get($request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$response=(object)[
    "type"=>"billingschedule",
    "rules"=>[
        (object)[
            "type"=>"billingschedulerule",
        ],
        (object)[
            "type"=>"billingschedulerule",
        ],
    ],
]

@GET/customers/:custkey:/billing_schedules@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
];

$response = USAePay\Customers\Billing_schedules\Get($request);

@GET/customers/:custkey:/billing_schedules@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
    ],
    "total"=>"1",
]

@POST/customers/:custkey:/billing_schedules@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "CustomerSchedules"=>[
        (object)[
            "type"=>"billingschedule",
            "rules"=>[
                (object)[
                    "type"=>"billingschedulerule",
                ],
                (object)[
                    "type"=>"billingschedulerule",
                ],
            ],
        ],
    ],
];

$response = USAePay\Customers\Billing_schedules\Post($request);

@POST/customers/:custkey:/billing_schedules@

<?php
$response=[
    (object)[
        "type"=>"billingschedule",
        "rules"=>[
            (object)[
                "type"=>"billingschedulerule",
            ],
            (object)[
                "type"=>"billingschedulerule",
            ],
        ],
    ],
]

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
];

$response = USAePay\Customers\Billing_schedules\Delete($request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
    "type"=>"billingschedule",
    "rules"=>[
        (object)[
            "type"=>"billingschedulerule",
        ],
        (object)[
            "type"=>"billingschedulerule",
        ],
    ],
];

$response = USAePay\Customers\Billing_schedules\Put($request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

<?php
$response=(object)[
    "type"=>"billingschedule",
    "rules"=>[
        (object)[
            "type"=>"billingschedulerule",
        ],
        (object)[
            "type"=>"billingschedulerule",
        ],
    ],
]

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "paymethod_key"=>"Example_paymethod_key",
];

$response = USAePay\Customers\Payment_methods\Get($request);

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$response=(object)[
    "key"=>"x8KccrxeydHJ4MmT",
    "type"=>"customerpaymentmethod",
    "method_name"=>"Example method",
    "cardholder"=>"Testor Jones",
    "expiration"=>"0426",
    "ccnum4last"=>"xxxxxxxxxxxxxx7779",
    "card_type"=>"Visa",
]

@GET/customers/:custkey:/payment_methods@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
];

$response = USAePay\Customers\Payment_methods\Get($request);

@GET/customers/:custkey:/payment_methods@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "key"=>"x8KccrxeydHJ4MmT",
            "type"=>"customerpaymentmethod",
            "method_name"=>"Example method",
            "cardholder"=>"Testor Jones",
            "expiration"=>"0426",
            "ccnum4last"=>"xxxxxxxxxxxxxx7779",
            "card_type"=>"Visa",
        ],
    ],
    "total"=>"1",
]

@POST/customers/:custkey:/payment_methods@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "CustomerPaymentMethodRequests"=>[
        (object)[
            "cardholder"=>"Fillius Flitwick",
            "expiration"=>"0426",
            "number"=>"4000100011112224",
            "pay_type"=>"cc",
        ],
    ],
];

$response = USAePay\Customers\Payment_methods\Post($request);

@POST/customers/:custkey:/payment_methods@

<?php
$response=[
    (object)[
        "key"=>"x8KccrxeydHJ4MmT",
        "type"=>"customerpaymentmethod",
        "method_name"=>"Example method",
        "cardholder"=>"Testor Jones",
        "expiration"=>"0426",
        "ccnum4last"=>"xxxxxxxxxxxxxx7779",
        "card_type"=>"Visa",
    ],
]

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "paymethod_key"=>"Example_paymethod_key",
];

$response = USAePay\Customers\Payment_methods\Delete($request);

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "paymethod_key"=>"Example_paymethod_key",
    "cardholder"=>"Fillius Flitwick",
    "expiration"=>"0426",
    "number"=>"40001000111^date:MMYY,+4Y4",
    "pay_type"=>"cc",
];

$response = USAePay\Customers\Payment_methods\Put($request);

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

<?php
$response=(object)[
    "key"=>"x8KccrxeydHJ4MmT",
    "type"=>"customerpaymentmethod",
    "method_name"=>"Example method",
    "cardholder"=>"Testor Jones",
    "expiration"=>"0426",
    "ccnum4last"=>"xxxxxxxxxxxxxx7779",
    "card_type"=>"Visa",
]

@GET/customers/:custkey:/transactions@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
];

$response = USAePay\Customers\Transactions\Get($request);

@GET/customers/:custkey:/transactions@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
    ],
    "total"=>"42",
]

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
    "billing_rule_key"=>"Example_billing_rule_key",
];

$response = USAePay\Customers\Billing_schedules\Billing_schedule_rules\Get($request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$response=(object)[
    "type"=>"billingschedulerule",
]

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
];

$response = USAePay\Customers\Billing_schedules\Billing_schedule_rules\Get($request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"billingschedulerule",
        ],
    ],
    "total"=>"1",
]

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
    "billing_rule_key"=>"Example_billing_rule_key",
];

$response = USAePay\Customers\Billing_schedules\Billing_schedule_rules\Delete($request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
    "billing_rule_key"=>"Example_billing_rule_key",
    "type"=>"billingschedulerule",
];

$response = USAePay\Customers\Billing_schedules\Billing_schedule_rules\Put($request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

<?php
$response=(object)[
    "type"=>"billingschedulerule",
]

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

<?php
$request=(object)[
    "custkey"=>"Example_custkey",
    "billing_schedule_key"=>"Example_billing_schedule_key",
    "Keys"=>[
        "Example_delKey",
    ],
];

$response = USAePay\Customers\Billing_schedules\Billing_schedule_rules\Bulk\Delete($request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/invoices/:invoice_key:@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
];

$response = USAePay\Invoices\Get($request);

@GET/invoices/:invoice_key:@

<?php
$response=(object)[
    "type"=>"invoice",
    "status"=>"Q",
    "invoice_number"=>"abc1234",
    "invoice_date"=>"2019-10-02",
    "due_date"=>"2020-10-11",
    "nontaxable"=>"true",
    "customer_email"=>"example@test.com",
    "customer_billing"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "customer_shipping"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
]

@GET/invoices@

<?php
$request=(object)[
    "limit"=>"78",
    "offset"=>"37",
];

$response = USAePay\Invoices\Get($request);

@GET/invoices@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"invoice",
            "status"=>"Q",
            "invoice_number"=>"abc1234",
            "invoice_date"=>"2019-10-02",
            "due_date"=>"2020-10-11",
            "nontaxable"=>"true",
            "customer_email"=>"example@test.com",
            "customer_billing"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "customer_shipping"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "merchant_email"=>"Example@test.com",
            "merchant_address"=>"123 Main St",
            "merchant_phone"=>"111-222-3333",
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
        ],
    ],
    "total"=>"42",
]

@POST/invoices@

<?php
$request=(object)[
    "invoice_number"=>"abc1234",
    "due_date"=>"2020-10-11",
    "nontaxable"=>"true",
    "customer_email"=>"example@test.com",
    "customer_billing"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "customer_shipping"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
];

$response = USAePay\Invoices\Post($request);

@POST/invoices@

<?php
$response=(object)[
    "type"=>"invoice",
    "status"=>"Q",
    "invoice_number"=>"abc1234",
    "invoice_date"=>"2019-10-02",
    "due_date"=>"2020-10-11",
    "nontaxable"=>"true",
    "customer_email"=>"example@test.com",
    "customer_billing"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "customer_shipping"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
]

@DELETE/invoices/:invoice_key:@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
];

$response = USAePay\Invoices\Delete($request);

@DELETE/invoices/:invoice_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/invoices/:invoice_key:@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
    "invoice_number"=>"abc1234",
    "due_date"=>"2020-10-11",
    "nontaxable"=>"true",
    "customer_email"=>"example@test.com",
    "customer_billing"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "customer_shipping"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
];

$response = USAePay\Invoices\Put($request);

@PUT/invoices/:invoice_key:@

<?php
$response=(object)[
    "type"=>"invoice",
    "status"=>"Q",
    "invoice_number"=>"abc1234",
    "invoice_date"=>"2019-10-02",
    "due_date"=>"2020-10-11",
    "nontaxable"=>"true",
    "customer_email"=>"example@test.com",
    "customer_billing"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "customer_shipping"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
]

@DELETE/invoices/bulk@

<?php
$request=(object)[
    "Keys"=>[
        "example_key",
    ],
];

$response = USAePay\Invoices\Bulk\Delete($request);

@DELETE/invoices/bulk@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/invoices/defaults@

<?php
$request=(object)[
];

$response = USAePay\Invoices\Defaults\Get($request);

@GET/invoices/defaults@

<?php
$response=(object)[
    "merchant_email"=>"Example@test.com",
    "merchant_address"=>"123 Main St",
    "merchant_phone"=>"111-222-3333",
]

@GET/invoices/nextnum@

<?php
$request=(object)[
];

$response = USAePay\Invoices\Nextnum\Get($request);

@GET/invoices/nextnum@

<?php
$response=(object)[
]

@GET/invoices/columns@

<?php
$request=(object)[
];

$response = USAePay\Invoices\Columns\Get($request);

@GET/invoices/columns@

<?php
$response=(object)[
]

@POST/invoices/:invoice_key:/send@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
];

$response = USAePay\Invoices\Send\Post($request);

@POST/invoices/:invoice_key:/send@

<?php
$response=(object)[
    "status"=>"success",
]

@POST/invoices/:invoice_key:/cancel@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
];

$response = USAePay\Invoices\Cancel\Post($request);

@POST/invoices/:invoice_key:/cancel@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/invoices/:invoice_key:/payments@

<?php
$request=(object)[
    "invoice_key"=>"Example_invoice_key",
    "limit"=>"86",
    "offset"=>"12",
];

$response = USAePay\Invoices\Payments\Get($request);

@GET/invoices/:invoice_key:/payments@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
        ],
    ],
    "total"=>"42",
]

@POST/invoices/bulk/send@

<?php
$request=(object)[
    "Keys"=>[
        "Example_key",
    ],
];

$response = USAePay\Invoices\Bulk\Send\Post($request);

@POST/invoices/bulk/send@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/paymentengine/devices/:devicekey:@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
];

$response = USAePay\Paymentengine\Devices\Get($request);

@GET/paymentengine/devices/:devicekey:@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@GET/paymentengine/devices@

<?php
$request=(object)[
    "limit"=>"55",
    "offset"=>"100",
];

$response = USAePay\Paymentengine\Devices\Get($request);

@GET/paymentengine/devices@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"device",
            "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
            "apikeyid"=>"ntC8nP31Moh0wtvYT",
            "terminal_type"=>"standalone",
            "status"=>"ntC8nP31Moh0wtvYT",
            "name"=>"ntC8nP31Moh0wtvYT",
            "settings"=>(object)[
                "timeout"=>"30",
                "enable_standalone"=>"false",
                "share_device"=>"false",
                "notify_update"=>"true",
                "notify_update_next"=>"true",
                "sleep_battery_device"=>"5",
                "sleep_battery_display"=>"3",
                "sleep_powered_device"=>"10",
                "sleep_powered_display"=>"8",
            ],
            "terminal_info"=>(object)[
                "make"=>"Castle",
                "model"=>"Vega3000",
                "revision"=>"18043001-0055.00",
                "serial"=>"011118170300198",
                "key_pin"=>"FFFF5B04",
                "key_pan"=>"FF908A",
            ],
            "terminal_config"=>(object)[
                "enable_emv"=>"true",
                "enable_debit_msr"=>"true",
                "enable_tip_adjust"=>"true",
                "enable_contactless"=>"true",
            ],
            "pairing_code"=>"690520",
            "expiration"=>"2019-10-29 11:59:28",
        ],
    ],
    "total"=>"42",
]

@POST/paymentengine/devices@

<?php
$request=(object)[
    "terminal_type"=>"standalone",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
];

$response = USAePay\Paymentengine\Devices\Post($request);

@POST/paymentengine/devices@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@DELETE/paymentengine/devices/:devicekey:@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
];

$response = USAePay\Paymentengine\Devices\Delete($request);

@DELETE/paymentengine/devices/:devicekey:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/paymentengine/devices/:devicekey:@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
    "terminal_type"=>"standalone",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
];

$response = USAePay\Paymentengine\Devices\Put($request);

@PUT/paymentengine/devices/:devicekey:@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@POST/paymentengine/payrequests@

<?php
$request=(object)[
    "devicekey"=>"sa_YdebDV6I2q0MfWV8kPDvQkHEvUjpA",
    "command"=>"sale",
    "amount"=>"2.11",
    "amount_detail"=>(object)[
        "subtotal"=>"40.00",
        "tax"=>"10.00",
        "enable_partialauth"=>"false",
    ],
    "timeout"=>"150",
    "block_offline"=>"true",
    "ignore_duplicate"=>"true",
    "save_card"=>"true",
    "manual_key"=>"true",
    "prompt_tip"=>"true",
    "invoice"=>"123456",
    "ponum"=>"987654321",
    "orderid"=>"12345678",
    "description"=>"sample description",
    "billing_address"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "shipping_address"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
];

$response = USAePay\Paymentengine\Payrequests\Post($request);

@POST/paymentengine/payrequests@

<?php
$response=(object)[
    "type"=>"request",
    "key"=>"pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
    "expiration"=>"2020-07-08 16:40:48",
    "status"=>"sent to device",
    "transaction"=>(object)[
        "type"=>"transaction",
        "key"=>"dnfwxwhz5kvnbgb",
        "refnum"=>"100061",
        "created"=>"2018-12-04 10:48:44",
        "is_duplicate"=>"N",
        "result_code"=>"A",
        "result"=>"Approved",
        "authcode"=>"314407",
        "proc_refnum"=>"18120443975126",
        "creditcard"=>(object)[
            "cardholder"=>"Minerva McGonnegall",
            "number"=>"4444xxxxxxxx1111",
            "category_code"=>"A",
            "entry_mode"=>"swiped",
            "avs_street"=>"1234 Portkey Ave",
            "avs_postalcode"=>"90006",
        ],
        "invoice"=>"98454685",
        "orderid"=>"4556432",
        "avs"=>(object)[
            "result_code"=>"YYY",
            "result"=>"Address: Match & 5 Digit Zip: Match",
        ],
        "cvc"=>(object)[
            "result_code"=>"N",
            "result"=>"No Match",
        ],
        "batch"=>(object)[
            "type"=>"batch",
            "key"=>"ft1m9m5p9wgd9mb",
            "batchrefnum"=>"12345678",
            "sequence"=>"2902",
        ],
        "auth_amount"=>"500.00",
        "trantype"=>"Credit Card Sale",
        "iccdata"=>"",
        "receipts"=>(object)[
            "customer"=>"Mail Sent Successfully",
            "merchant"=>"Mail Sent Successfully",
        ],
        "customer"=>(object)[
            "custkey"=>"ksddgpqgpbs5zkmb",
            "custid"=>"10275538",
        ],
        "savedcard"=>(object)[
            "type"=>"Visa",
            "key"=>"tyet-xk8x-vpj4-7swq",
            "cardnumber"=>"4000xxxxxxxx2224",
        ],
    ],
    "complete"=>"sent to device",
]

@GET/paymentengine/payrequests/:requestkey:@

<?php
$request=(object)[
    "requestkey"=>"Example_requestkey",
];

$response = USAePay\Paymentengine\Payrequests\Get($request);

@GET/paymentengine/payrequests/:requestkey:@

<?php
$response=(object)[
    "type"=>"request",
    "key"=>"pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
    "expiration"=>"2020-07-08 16:40:48",
    "status"=>"sent to device",
    "transaction"=>(object)[
        "type"=>"transaction",
        "key"=>"dnfwxwhz5kvnbgb",
        "refnum"=>"100061",
        "created"=>"2018-12-04 10:48:44",
        "is_duplicate"=>"N",
        "result_code"=>"A",
        "result"=>"Approved",
        "authcode"=>"314407",
        "proc_refnum"=>"18120443975126",
        "creditcard"=>(object)[
            "cardholder"=>"Minerva McGonnegall",
            "number"=>"4444xxxxxxxx1111",
            "category_code"=>"A",
            "entry_mode"=>"swiped",
            "avs_street"=>"1234 Portkey Ave",
            "avs_postalcode"=>"90006",
        ],
        "invoice"=>"98454685",
        "orderid"=>"4556432",
        "avs"=>(object)[
            "result_code"=>"YYY",
            "result"=>"Address: Match & 5 Digit Zip: Match",
        ],
        "cvc"=>(object)[
            "result_code"=>"N",
            "result"=>"No Match",
        ],
        "batch"=>(object)[
            "type"=>"batch",
            "key"=>"ft1m9m5p9wgd9mb",
            "batchrefnum"=>"12345678",
            "sequence"=>"2902",
        ],
        "auth_amount"=>"500.00",
        "trantype"=>"Credit Card Sale",
        "iccdata"=>"",
        "receipts"=>(object)[
            "customer"=>"Mail Sent Successfully",
            "merchant"=>"Mail Sent Successfully",
        ],
        "customer"=>(object)[
            "custkey"=>"ksddgpqgpbs5zkmb",
            "custid"=>"10275538",
        ],
        "savedcard"=>(object)[
            "type"=>"Visa",
            "key"=>"tyet-xk8x-vpj4-7swq",
            "cardnumber"=>"4000xxxxxxxx2224",
        ],
    ],
    "complete"=>"sent to device",
]

@DELETE/paymentengine/payrequests/:requestkey:@

<?php
$request=(object)[
    "requestkey"=>"Example_requestkey",
];

$response = USAePay\Paymentengine\Payrequests\Delete($request);

@DELETE/paymentengine/payrequests/:requestkey:@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/paymentengine/devices/:devicekey:/settings@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
];

$response = USAePay\Paymentengine\Devices\Settings\Get($request);

@GET/paymentengine/devices/:devicekey:/settings@

<?php
$response=(object)[
    "timeout"=>"30",
    "enable_standalone"=>"false",
    "share_device"=>"false",
    "notify_update"=>"true",
    "notify_update_next"=>"true",
    "sleep_battery_device"=>"5",
    "sleep_battery_display"=>"3",
    "sleep_powered_device"=>"10",
    "sleep_powered_display"=>"8",
]

@PUT/paymentengine/devices/:devicekey:/settings@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
    "timeout"=>"30",
    "enable_standalone"=>"false",
    "share_device"=>"false",
    "notify_update"=>"true",
    "notify_update_next"=>"true",
    "sleep_battery_device"=>"5",
    "sleep_battery_display"=>"3",
    "sleep_powered_device"=>"10",
    "sleep_powered_display"=>"8",
];

$response = USAePay\Paymentengine\Devices\Settings\Put($request);

@PUT/paymentengine/devices/:devicekey:/settings@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@GET/paymentengine/devices/:devicekey:/terminal-config@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
];

$response = USAePay\Paymentengine\Devices\Terminal-config\Get($request);

@GET/paymentengine/devices/:devicekey:/terminal-config@

<?php
$response=(object)[
    "enable_emv"=>"true",
    "enable_debit_msr"=>"true",
    "enable_tip_adjust"=>"true",
    "enable_contactless"=>"true",
]

@PUT/paymentengine/devices/:devicekey:/terminal-config@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
    "enable_emv"=>"true",
    "enable_debit_msr"=>"true",
    "enable_tip_adjust"=>"true",
    "enable_contactless"=>"true",
];

$response = USAePay\Paymentengine\Devices\Terminal-config\Put($request);

@PUT/paymentengine/devices/:devicekey:/terminal-config@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@POST/paymentengine/devices/:devicekey:/kick@

<?php
$request=(object)[
    "devicekey"=>"Example_devicekey",
];

$response = USAePay\Paymentengine\Devices\Kick\Post($request);

@POST/paymentengine/devices/:devicekey:/kick@

<?php
$response=(object)[
    "type"=>"device",
    "key"=>"sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid"=>"ntC8nP31Moh0wtvYT",
    "terminal_type"=>"standalone",
    "status"=>"ntC8nP31Moh0wtvYT",
    "name"=>"ntC8nP31Moh0wtvYT",
    "settings"=>(object)[
        "timeout"=>"30",
        "enable_standalone"=>"false",
        "share_device"=>"false",
        "notify_update"=>"true",
        "notify_update_next"=>"true",
        "sleep_battery_device"=>"5",
        "sleep_battery_display"=>"3",
        "sleep_powered_device"=>"10",
        "sleep_powered_display"=>"8",
    ],
    "terminal_info"=>(object)[
        "make"=>"Castle",
        "model"=>"Vega3000",
        "revision"=>"18043001-0055.00",
        "serial"=>"011118170300198",
        "key_pin"=>"FFFF5B04",
        "key_pan"=>"FF908A",
    ],
    "terminal_config"=>(object)[
        "enable_emv"=>"true",
        "enable_debit_msr"=>"true",
        "enable_tip_adjust"=>"true",
        "enable_contactless"=>"true",
    ],
    "pairing_code"=>"690520",
    "expiration"=>"2019-10-29 11:59:28",
]

@GET/products/:product_key:@

<?php
$request=(object)[
    "product_key"=>"Example_product_key",
];

$response = USAePay\Products\Get($request);

@GET/products/:product_key:@

<?php
$response=(object)[
    "type"=>"product",
    "key"=>"80v96p6rx2k6sktw",
    "product_refnum"=>"2",
    "name"=>"Botts Every Flavor Beans",
    "price"=>"2.00",
    "enabled"=>"True",
    "taxable"=>"True",
    "categoryid"=>"1238710",
    "commodity_code"=>"3122",
    "description"=>"Every flavor you can imagine and then some.",
    "list_price"=>"3.00",
    "manufacturer"=>"Jelly Belly",
    "merch_productid"=>"EXA1234",
    "physicalgood"=>"True",
    "ship_weight"=>"1.2 oz",
    "sku"=>"123456789",
    "upc"=>"999999999",
    "weight"=>"1.2 oz",
    "wholesale_price"=>"3.22",
    "created"=>"",
    "modified"=>"",
]

@GET/products@

<?php
$request=(object)[
    "limit"=>"37",
    "offset"=>"50",
];

$response = USAePay\Products\Get($request);

@GET/products@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"product",
            "key"=>"80v96p6rx2k6sktw",
            "product_refnum"=>"2",
            "name"=>"Botts Every Flavor Beans",
            "price"=>"2.00",
            "enabled"=>"True",
            "taxable"=>"True",
            "categoryid"=>"1238710",
            "commodity_code"=>"3122",
            "description"=>"Every flavor you can imagine and then some.",
            "list_price"=>"3.00",
            "manufacturer"=>"Jelly Belly",
            "merch_productid"=>"EXA1234",
            "physicalgood"=>"True",
            "ship_weight"=>"1.2 oz",
            "sku"=>"123456789",
            "upc"=>"999999999",
            "weight"=>"1.2 oz",
            "wholesale_price"=>"3.22",
            "created"=>"",
            "modified"=>"",
        ],
    ],
    "total"=>"42",
]

@POST/products@

<?php
$request=(object)[
    "name"=>"Botts Every Flavor Beans",
    "price"=>"2.00",
    "enabled"=>"True",
    "taxable"=>"True",
    "categoryid"=>"1238710",
    "commodity_code"=>"3122",
    "description"=>"Every flavor you can imagine and then some.",
    "list_price"=>"3.00",
    "manufacturer"=>"Jelly Belly",
    "merch_productid"=>"EXA1234",
    "physicalgood"=>"True",
    "ship_weight"=>"1.2 oz",
    "sku"=>"123456789",
    "upc"=>"999999999",
    "weight"=>"1.2 oz",
    "wholesale_price"=>"3.22",
];

$response = USAePay\Products\Post($request);

@POST/products@

<?php
$response=(object)[
    "type"=>"product",
    "key"=>"80v96p6rx2k6sktw",
    "product_refnum"=>"2",
    "name"=>"Botts Every Flavor Beans",
    "price"=>"2.00",
    "enabled"=>"True",
    "taxable"=>"True",
    "categoryid"=>"1238710",
    "commodity_code"=>"3122",
    "description"=>"Every flavor you can imagine and then some.",
    "list_price"=>"3.00",
    "manufacturer"=>"Jelly Belly",
    "merch_productid"=>"EXA1234",
    "physicalgood"=>"True",
    "ship_weight"=>"1.2 oz",
    "sku"=>"123456789",
    "upc"=>"999999999",
    "weight"=>"1.2 oz",
    "wholesale_price"=>"3.22",
    "created"=>"",
    "modified"=>"",
]

@DELETE/products/:product_key:@

<?php
$request=(object)[
    "product_key"=>"Example_product_key",
];

$response = USAePay\Products\Delete($request);

@DELETE/products/:product_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/products/:product_key:@

<?php
$request=(object)[
    "product_key"=>"Example_product_key",
    "name"=>"Botts Every Flavor Beans",
    "price"=>"2.00",
    "enabled"=>"True",
    "taxable"=>"True",
    "categoryid"=>"1238710",
    "commodity_code"=>"3122",
    "description"=>"Every flavor you can imagine and then some.",
    "list_price"=>"3.00",
    "manufacturer"=>"Jelly Belly",
    "merch_productid"=>"EXA1234",
    "physicalgood"=>"True",
    "ship_weight"=>"1.2 oz",
    "sku"=>"123456789",
    "upc"=>"999999999",
    "weight"=>"1.2 oz",
    "wholesale_price"=>"3.22",
];

$response = USAePay\Products\Put($request);

@PUT/products/:product_key:@

<?php
$response=(object)[
    "type"=>"product",
    "key"=>"80v96p6rx2k6sktw",
    "product_refnum"=>"2",
    "name"=>"Botts Every Flavor Beans",
    "price"=>"2.00",
    "enabled"=>"True",
    "taxable"=>"True",
    "categoryid"=>"1238710",
    "commodity_code"=>"3122",
    "description"=>"Every flavor you can imagine and then some.",
    "list_price"=>"3.00",
    "manufacturer"=>"Jelly Belly",
    "merch_productid"=>"EXA1234",
    "physicalgood"=>"True",
    "ship_weight"=>"1.2 oz",
    "sku"=>"123456789",
    "upc"=>"999999999",
    "weight"=>"1.2 oz",
    "wholesale_price"=>"3.22",
    "created"=>"",
    "modified"=>"",
]

@GET/products/categories/:category_key:@

<?php
$request=(object)[
    "category_key"=>"Example_category_key",
];

$response = USAePay\Products\Categories\Get($request);

@GET/products/categories/:category_key:@

<?php
$response=(object)[
    "type"=>"product_category",
    "key"=>"80v96p6rx2k6sktw",
    "name"=>"Botts Every Flavor Beans",
]

@GET/products/categories@

<?php
$request=(object)[
    "limit"=>"93",
    "offset"=>"93",
];

$response = USAePay\Products\Categories\Get($request);

@GET/products/categories@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"product_category",
            "key"=>"80v96p6rx2k6sktw",
            "name"=>"Botts Every Flavor Beans",
        ],
    ],
    "total"=>"42",
]

@POST/products/categories@

<?php
$request=(object)[
    "name"=>"Botts Every Flavor Beans",
];

$response = USAePay\Products\Categories\Post($request);

@POST/products/categories@

<?php
$response=(object)[
    "type"=>"product_category",
    "key"=>"80v96p6rx2k6sktw",
    "name"=>"Botts Every Flavor Beans",
]

@DELETE/products/categories/:category_key:@

<?php
$request=(object)[
    "category_key"=>"Example_category_key",
];

$response = USAePay\Products\Categories\Delete($request);

@DELETE/products/categories/:category_key:@

<?php
$response=(object)[
    "status"=>"success",
]

@PUT/products/categories/:category_key:@

<?php
$request=(object)[
    "category_key"=>"Example_category_key",
    "name"=>"Botts Every Flavor Beans",
];

$response = USAePay\Products\Categories\Put($request);

@PUT/products/categories/:category_key:@

<?php
$response=(object)[
    "type"=>"product_category",
    "key"=>"80v96p6rx2k6sktw",
    "name"=>"Botts Every Flavor Beans",
]

@POST/tokens@

<?php
$request=(object)[
    "creditcard"=>(object)[
        "cardholder"=>"Minerva McGonnegall",
        "number"=>"4000100011112224",
        "expiration"=>"0426",
    ],
    "customer"=>(object)[
        "custkey"=>"9sddg0ccd915pdbq",
        "paymethod_key"=>"2n02pc6k26jkfkh1b",
    ],
    "list"=>[
        (object)[
            "custkey"=>"9sddg0ccd915pdbq",
            "paymethod_key"=>"2n02pc6k26jkfkh1b",
        ],
    ],
];

$response = USAePay\Tokens\Post($request);

@POST/tokens@

<?php
$response=(object)[
    "type"=>"token",
    "key"=>"p4xe-9ax3-26f4-pi6h",
    "token"=>(object)[
        "type"=>"token",
        "key"=>"p4xe-9ax3-26f4-pi6h",
        "card_key"=>"p4xe-9ax3-26f4-pi6h",
        "cardref"=>"p4xe-9ax3-26f4-pi6h",
        "masked_card_number"=>"XXXXXXXXXXXX2226",
        "card_type"=>"Visa",
    ],
]

@GET/tokens/:cardref:@

<?php
$request=(object)[
    "cardref"=>"Example_cardref",
];

$response = USAePay\Tokens\Get($request);

@GET/tokens/:cardref:@

<?php
$response=(object)[
    "type"=>"token",
    "key"=>"p4xe-9ax3-26f4-pi6h",
    "card_key"=>"p4xe-9ax3-26f4-pi6h",
    "cardref"=>"p4xe-9ax3-26f4-pi6h",
    "masked_card_number"=>"XXXXXXXXXXXX2226",
    "card_type"=>"Visa",
]

@GET/transactions/:trankey:@

<?php
$request=(object)[
    "trankey"=>"Example_trankey",
];

$response = USAePay\Transactions\Get($request);

@GET/transactions/:trankey:@

<?php
$response=(object)[
    "type"=>"transaction",
    "key"=>"dnfwxwhz5kvnbgb",
    "refnum"=>"100061",
    "created"=>"2018-12-04 10:48:44",
    "trantype_code"=>"S",
    "trantype"=>"Credit Card Sale",
    "result_code"=>"A",
    "result"=>"Approved",
    "error_code"=>"12",
    "error"=>"Card Number was not between 13 and 16 digits",
    "authcode"=>"314407",
    "status_code"=>"P",
    "status"=>"Authorized (Pending Settlement)",
    "proc_refnum"=>"18120443975126",
    "creditcard"=>(object)[
        "cardholder"=>"Minerva McGonnegall",
        "number"=>"4444xxxxxxxx1111",
        "category_code"=>"A",
        "entry_mode"=>"swiped",
        "avs_street"=>"1234 Portkey Ave",
        "avs_postalcode"=>"90006",
    ],
    "check"=>(object)[
        "accountholder"=>"Remus Lupin",
        "routing"=>"123456789",
        "account"=>"324523524",
        "account_type"=>"checking",
    ],
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"N",
        "result"=>"No Match",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"ft1m9m5p9wgd9mb",
        "batchrefnum"=>"12345678",
        "sequence"=>"2902",
    ],
    "amount"=>"50",
    "amount_detail"=>(object)[
        "subtotal"=>"40.00",
        "tax"=>"10.00",
        "enable_partialauth"=>"false",
    ],
    "ponum"=>"af416fsd5",
    "invoice"=>"98454685",
    "orderid"=>"98454685",
    "description"=>"Antique Pensieve",
    "billing_address"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "shipping_address"=>(object)[
        "company"=>"Hogwarts School of Witchcraft and Wizardry",
        "street"=>"123 Astronomy Tower",
        "postalcode"=>"10005",
    ],
    "lineitems"=>[
        (object)[
            "name"=>"Antique Pensieve",
            "description"=>"See into your past...",
            "size"=>"Large",
            "color"=>"Bronze",
            "cost"=>"450.00",
            "list_price"=>"500.00",
            "qty"=>"1",
            "sku"=>"68453423",
            "commoditycode"=>"535",
            "discountamount"=>"0",
            "discountrate"=>"0",
            "taxable"=>"",
            "taxamount"=>"45.00",
            "taxclass"=>"NA",
            "taxrate"=>"10",
            "um"=>"EA",
            "category"=>"Antiques",
            "manufacturer"=>"The Ancients",
        ],
    ],
    "comments"=>"Powerful magical object. Use with caution.",
    "tranterm"=>"multilane",
    "clerk"=>"Madame Malkin",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
    "customer"=>(object)[
        "custkey"=>"ksddgpqgpbs5zkmb",
        "custid"=>"10275538",
    ],
    "customer_email"=>"noreply@gmail.com",
    "bin"=>(object)[
        "bin"=>"444455",
        "type"=>"Debit",
        "issuer"=>"Visa",
        "bank"=>"Chase Bank",
        "country"=>"US",
        "country_name"=>"United States",
        "country_iso"=>"CA",
        "location"=>"http://www.jpmorganchase.com",
        "phone"=>"USA",
        "category"=>"",
    ],
    "clientip"=>"Madame Malkin",
    "source_name"=>"Madame Malkin",
]

@GET/transactions@

<?php
$request=(object)[
    "limit"=>"86",
    "offset"=>"78",
    "fuzzy"=>"32",
    "filters"=>"exampleFilter",
];

$response = USAePay\Transactions\Get($request);

@GET/transactions@

<?php
$response=(object)[
    "type"=>"list",
    "limit"=>"0",
    "offset"=>"20",
    "data"=>[
        (object)[
            "type"=>"transaction",
            "key"=>"dnfwxwhz5kvnbgb",
            "refnum"=>"100061",
            "created"=>"2018-12-04 10:48:44",
            "trantype_code"=>"S",
            "trantype"=>"Credit Card Sale",
            "result_code"=>"A",
            "result"=>"Approved",
            "error_code"=>"12",
            "error"=>"Card Number was not between 13 and 16 digits",
            "authcode"=>"314407",
            "status_code"=>"P",
            "status"=>"Authorized (Pending Settlement)",
            "proc_refnum"=>"18120443975126",
            "creditcard"=>(object)[
                "cardholder"=>"Minerva McGonnegall",
                "number"=>"4444xxxxxxxx1111",
                "category_code"=>"A",
                "entry_mode"=>"swiped",
                "avs_street"=>"1234 Portkey Ave",
                "avs_postalcode"=>"90006",
            ],
            "check"=>(object)[
                "accountholder"=>"Remus Lupin",
                "routing"=>"123456789",
                "account"=>"324523524",
                "account_type"=>"checking",
            ],
            "avs"=>(object)[
                "result_code"=>"YYY",
                "result"=>"Address: Match & 5 Digit Zip: Match",
            ],
            "cvc"=>(object)[
                "result_code"=>"N",
                "result"=>"No Match",
            ],
            "batch"=>(object)[
                "type"=>"batch",
                "key"=>"ft1m9m5p9wgd9mb",
                "batchrefnum"=>"12345678",
                "sequence"=>"2902",
            ],
            "amount"=>"50",
            "amount_detail"=>(object)[
                "subtotal"=>"40.00",
                "tax"=>"10.00",
                "enable_partialauth"=>"false",
            ],
            "ponum"=>"af416fsd5",
            "invoice"=>"98454685",
            "orderid"=>"98454685",
            "description"=>"Antique Pensieve",
            "billing_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "shipping_address"=>(object)[
                "company"=>"Hogwarts School of Witchcraft and Wizardry",
                "street"=>"123 Astronomy Tower",
                "postalcode"=>"10005",
            ],
            "lineitems"=>[
                (object)[
                    "name"=>"Antique Pensieve",
                    "description"=>"See into your past...",
                    "size"=>"Large",
                    "color"=>"Bronze",
                    "cost"=>"450.00",
                    "list_price"=>"500.00",
                    "qty"=>"1",
                    "sku"=>"68453423",
                    "commoditycode"=>"535",
                    "discountamount"=>"0",
                    "discountrate"=>"0",
                    "taxable"=>"",
                    "taxamount"=>"45.00",
                    "taxclass"=>"NA",
                    "taxrate"=>"10",
                    "um"=>"EA",
                    "category"=>"Antiques",
                    "manufacturer"=>"The Ancients",
                ],
            ],
            "comments"=>"Powerful magical object. Use with caution.",
            "tranterm"=>"multilane",
            "clerk"=>"Madame Malkin",
            "receipts"=>(object)[
                "customer"=>"Mail Sent Successfully",
                "merchant"=>"Mail Sent Successfully",
            ],
            "customer"=>(object)[
                "custkey"=>"ksddgpqgpbs5zkmb",
                "custid"=>"10275538",
            ],
            "customer_email"=>"noreply@gmail.com",
            "bin"=>(object)[
                "bin"=>"444455",
                "type"=>"Debit",
                "issuer"=>"Visa",
                "bank"=>"Chase Bank",
                "country"=>"US",
                "country_name"=>"United States",
                "country_iso"=>"CA",
                "location"=>"http://www.jpmorganchase.com",
                "phone"=>"USA",
                "category"=>"",
            ],
            "clientip"=>"Madame Malkin",
            "source_name"=>"Madame Malkin",
        ],
    ],
    "total"=>"42",
]

@POST/transactions@

<?php
$request=(object)[
    "command"=>"sale",
    "invoice"=>"98454685",
    "ponum"=>"af416fsd5",
    "description"=>"Antique Pensieve",
    "comments"=>"Powerful magical object. Use with caution.",
    "email"=>"brian@hogwarts.com",
    "send_receipt"=>"1",
    "ignore_duplicate"=>"1",
    "merchemailaddr"=>"receipts@fandb.net",
    "amount"=>"500.00",
    "amount_detail"=>(object)[
        "subtotal"=>"450.00",
        "tax"=>"45.00",
        "tip"=>"5.00",
        "discount"=>"50.00",
        "shipping"=>"50.00",
    ],
    "creditcard"=>(object)[
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "number"=>"4444333322221111",
        "expiration"=>"0426",
        "cvc"=>"123",
        "avs_street"=>"1234 Portkey Ave",
        "avs_zip"=>"12345",
    ],
    "traits"=>(object)[
        "is_debt"=>"",
        "is_bill_pay"=>"",
        "is_recurring"=>"",
        "is_healthcare"=>"",
        "is_cash_advance"=>"",
    ],
    "custkey"=>"ksddgpqgpbs5zkmb",
    "billing_address"=>(object)[
        "firstname"=>"Albus",
        "lastname"=>"Dumbledore",
        "street"=>"123 Astronomy Tower",
        "street2"=>"Suite 1",
        "city"=>"Phoenix",
        "state"=>"CA",
        "postalcode"=>"10005",
        "country"=>"USA",
        "phone"=>"555-253-3673",
        "fax"=>"666-253-3673",
    ],
    "shipping_address"=>(object)[
        "firstname"=>"Aberforth",
        "lastname"=>"Dumbledore",
        "street"=>"987 HogsHead St",
        "city"=>"Hogsmead",
        "state"=>"WY",
        "postalcode"=>"30005",
        "country"=>"USA",
        "phone"=>"555-253-3673",
    ],
    "lineitems"=>[
        (object)[
            "product_key"=>"ds4bb5ckg059vdn8",
            "name"=>"Antique Pensieve",
            "cost"=>"450.00",
            "qty"=>"1",
            "tax_amount"=>"50.00",
            "location_key"=>"dnyyjc8s2vbz8hb33",
            "list_price"=>"500.00",
        ],
    ],
    "custom_fields"=>(object)[
        "1"=>"Gryffindor",
        "2"=>"Headmaster",
    ],
];

$response = USAePay\Transactions\Post($request);

@POST/transactions@

<?php
$response=(object)[
    "type"=>"transaction",
    "key"=>"dnfwxwhz5kvnbgb",
    "refnum"=>"100061",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"314407",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx1111",
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"98454685",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"N",
        "result"=>"No Match",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"500.00",
    "trantype"=>"Credit Card Sale",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$request_token_sale=(object)[
    "creditcard"=>(object)[
        "number"=>"dx0c3ns6xips28h3",
        "cvc"=>"123",
    ],
    "command"=>"sale",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Woolen Socks",
    "comments"=>"Best socks in the world.",
    "amount"=>"17.99",
];

$response = USAePay\Transactions\Post($request_token_sale);

@POST/transactions@

<?php
$response_token_sale=(object)[
    "type"=>"transaction",
    "key"=>"nnfkg4y0452kztm",
    "refnum"=>"100071",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"329045",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx7779",
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"101",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"N",
        "result"=>"No Match",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"17.99",
    "trantype"=>"Credit Card Sale",
]

@POST/transactions@

<?php
$request_paymentkey_sale=(object)[
    "payment_key"=>"02zxfg87ty824",
    "command"=>"sale",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Woolen Socks",
    "comments"=>"Best socks in the world.",
    "amount"=>"17.99",
];

$response = USAePay\Transactions\Post($request_paymentkey_sale);

@POST/transactions@

<?php
$response_paymentkey_sale=(object)[
    "type"=>"transaction",
    "key"=>"nnfkg4y0452kztm",
    "refnum"=>"100071",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"329045",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx7779",
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"101",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"N",
        "result"=>"No Match",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"17.99",
    "trantype"=>"Credit Card Sale",
]

@POST/transactions@

<?php
$request_check_sale=(object)[
    "command"=>"check:sale",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Wolfsbane Potion",
    "amount"=>"75.00",
    "check"=>(object)[
        "accountholder"=>"Remus Lupin",
        "routing"=>"123456789",
        "account"=>"324523524",
        "account_type"=>"checking",
        "number"=>"101",
        "format"=>"WEB",
    ],
];

$response = USAePay\Transactions\Post($request_check_sale);

@POST/transactions@

<?php
$response_check_sale=(object)[
    "command"=>"check:sale",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Wolfsbane Potion",
    "amount"=>"75.00",
    "check"=>(object)[
        "accountholder"=>"Remus Lupin",
        "routing"=>"123456789",
        "account"=>"324523524",
        "account_type"=>"checking",
        "number"=>"101",
        "format"=>"WEB",
    ],
]

@POST/transactions@

<?php
$request_cash_sale=(object)[
    "command"=>"cash:sale",
    "amount"=>"5.00",
    "amount_detail"=>(object)[
        "tax"=>"1.00",
        "tip"=>"0.50",
    ],
];

$response = USAePay\Transactions\Post($request_cash_sale);

@POST/transactions@

<?php
$response_cash_sale=(object)[
    "type"=>"transaction",
    "key"=>"3nft52wn1wy7rx8",
    "refnum"=>"100077",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"",
]

@POST/transactions@

<?php
$request_quicksale=(object)[
    "command"=>"quicksale",
    "trankey"=>"gnfkd12yhsr7mbs",
    "amount"=>"5.00",
];

$response = USAePay\Transactions\Post($request_quicksale);

@POST/transactions@

<?php
$response_quicksale_cc=(object)[
    "type"=>"transaction",
    "key"=>"mnfwvcf1thnvrgb",
    "refnum"=>"100070",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"328906",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "creditcard"=>(object)[
        "category_code"=>"A",
    ],
    "cvc"=>(object)[
        "result_code"=>"P",
        "result"=>"Not Processed",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"5.00",
    "trantype"=>"Credit Card Sale",
]

@POST/transactions@

<?php
$response_quicksale_check=(object)[
    "type"=>"transaction",
    "key"=>"5nfty0s5m91vb3b",
    "refnum"=>"100079",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"TM9406",
    "proc_refnum"=>"18120443978215",
    "trantype"=>"Check Sale",
]

@POST/transactions@

<?php
$request_authonly=(object)[
    "command"=>"authonly",
    "invoice"=>"98454685",
    "ponum"=>"af416fsd5",
    "description"=>"Antique Pensieve",
    "comments"=>"Powerful magical object. Use with caution.",
    "email"=>"brian@hogwarts.com",
    "send_receipt"=>"1",
    "ignore_duplicate"=>"1",
    "merchemailaddr"=>"receipts@fandb.net",
    "amount"=>"500.00",
    "amount_detail"=>(object)[
        "subtotal"=>"450.00",
        "tax"=>"45.00",
        "tip"=>"5.00",
        "discount"=>"50.00",
        "shipping"=>"50.00",
    ],
    "creditcard"=>(object)[
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "number"=>"4444333322221111",
        "expiration"=>"0426",
        "cvc"=>"123",
        "avs_street"=>"1234 Portkey Ave",
        "avs_zip"=>"12345",
    ],
    "traits"=>(object)[
        "is_debt"=>"",
        "is_bill_pay"=>"",
        "is_recurring"=>"",
        "is_healthcare"=>"",
        "is_cash_advance"=>"",
    ],
    "custkey"=>"ksddgpqgpbs5zkmb",
    "billing_address"=>(object)[
        "firstname"=>"Albus",
        "lastname"=>"Dumbledore",
        "street"=>"123 Astronomy Tower",
        "street2"=>"Suite 1",
        "city"=>"Phoenix",
        "state"=>"CA",
        "postalcode"=>"10005",
        "country"=>"USA",
        "phone"=>"555-253-3673",
        "fax"=>"666-253-3673",
    ],
    "shipping_address"=>(object)[
        "firstname"=>"Aberforth",
        "lastname"=>"Dumbledore",
        "street"=>"987 HogsHead St",
        "city"=>"Hogsmead",
        "state"=>"WY",
        "postalcode"=>"30005",
        "country"=>"USA",
        "phone"=>"555-253-3673",
    ],
    "lineitems"=>[
        (object)[
            "product_key"=>"ds4bb5ckg059vdn8",
            "name"=>"Antique Pensieve",
            "cost"=>"450.00",
            "qty"=>"1",
            "tax_amount"=>"50.00",
            "location_key"=>"dnyyjc8s2vbz8hb33",
            "list_price"=>"500.00",
        ],
    ],
    "custom_fields"=>(object)[
        "1"=>"Gryffindor",
        "2"=>"Headmaster",
    ],
];

$response = USAePay\Transactions\Post($request_authonly);

@POST/transactions@

<?php
$response_authonly=(object)[
    "type"=>"transaction",
    "key"=>"dnfwxwhz5kvnbgb",
    "refnum"=>"100061",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"314407",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx1111",
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"98454685",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"N",
        "result"=>"No Match",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"500.00",
    "trantype"=>"Credit Card Sale",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$request_refund_cc_open=(object)[
    "command"=>"cc:credit",
    "amount"=>"100.00",
    "invoice"=>"3579864532",
    "creditcard"=>(object)[
        "cardholder"=>"Remus Lupin",
        "number"=>"4444333322221111",
        "expiration"=>"0426",
    ],
];

$response = USAePay\Transactions\Post($request_refund_cc_open);

@POST/transactions@

<?php
$response_refund_cc_open=(object)[
    "type"=>"transaction",
    "key"=>"lnftkz3fqjc2682",
    "refnum"=>"100095",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"110118",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx1111",
        "cardholder"=>"Remus Lupin",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"3579864532",
    "avs"=>(object)[
        "result_code"=>"   ",
        "result"=>"Unmapped AVS response (   )",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1k3yx5xs37cvb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"100.00",
    "trantype"=>"Credit Card Refund (Credit)",
]

@POST/transactions@

<?php
$request_refund_check_open=(object)[
    "command"=>"check:credit",
    "check"=>(object)[
        "accountholder"=>"Remus Lupin",
        "account"=>"324523524",
        "routing"=>"123456789",
        "account_type"=>"checking",
        "number"=>"101",
        "format"=>"WEB",
    ],
    "amount"=>"5.00",
];

$response = USAePay\Transactions\Post($request_refund_check_open);

@POST/transactions@

<?php
$response_refund_check_open=(object)[
    "type"=>"transaction",
    "key"=>"6nfj34qh3n8qbhw",
    "refnum"=>"21726542",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"TM5CA5",
    "proc_refnum"=>"17092106017626",
    "auth_amount"=>"5.00",
]

@POST/transactions@

<?php
$request_refund_cash_open=(object)[
    "command"=>"cash:refund",
    "amount"=>"5.00",
];

$response = USAePay\Transactions\Post($request_refund_cash_open);

@POST/transactions@

<?php
$response_refund_cash_open=(object)[
    "type"=>"transaction",
    "key"=>"onfwht4cdb21r58",
    "refnum"=>"100098",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"",
    "invoice"=>"98454685",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$request_refund_connected=(object)[
    "command"=>"refund",
    "trankey"=>"hnftkyjj2r93ft2",
];

$response = USAePay\Transactions\Post($request_refund_connected);

@POST/transactions@

<?php
$response_refund_connected_cc=(object)[
    "type"=>"transaction",
    "key"=>"2nf57pywqh09zjs",
    "refnum"=>"124445986",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"445986",
    "avs"=>(object)[
        "result_code"=>"   ",
        "result"=>"Unmapped AVS response (   )",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1k3yx5xs37cvb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
]

@POST/transactions@

<?php
$response_refund_connected_check=(object)[
    "type"=>"transaction",
    "key"=>"anf0cybmfqt9c63",
    "refnum"=>"100084",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"TM3670",
]

@POST/transactions@

<?php
$request_quickrefund=(object)[
    "command"=>"quickrefund",
    "trankey"=>"dnfwxwhz5kvnbgb",
    "amount"=>"5.00",
];

$response = USAePay\Transactions\Post($request_quickrefund);

@POST/transactions@

<?php
$response_quickrefund_cc=(object)[
    "type"=>"transaction",
    "key"=>"pnftkk568yskw30",
    "refnum"=>"100099",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"110122",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx1111",
    ],
    "avs"=>(object)[
        "result_code"=>"   ",
        "result"=>"Unmapped AVS response (   )",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"pt1qxpnx0f5303d",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "trantype"=>"Credit Card Refund (Credit)",
    "auth_amount"=>"5.00",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$response_quickrefund_check=(object)[
    "type"=>"transaction",
    "key"=>"0nftkkdy9v0kgbb",
    "refnum"=>"100100",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"TMF291",
    "proc_refnum"=>"18120544051570",
    "trantype"=>"Reverse ACH",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$request_creditvoid=(object)[
    "command"=>"creditvoid",
    "trankey"=>"dnfwxwhz5kvnbgb",
];

$response = USAePay\Transactions\Post($request_creditvoid);

@POST/transactions@

<?php
$response_creditvoid_cc=(object)[
    "type"=>"transaction",
    "key"=>"pnftkk568yskw30",
    "refnum"=>"100099",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"110122",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx1111",
    ],
    "avs"=>(object)[
        "result_code"=>"   ",
        "result"=>"Unmapped AVS response (   )",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"pt1qxpnx0f5303d",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "trantype"=>"Credit Card Refund (Credit)",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$response_creditvoid_check=(object)[
    "type"=>"transaction",
    "key"=>"0nftkkdy9v0kgbb",
    "refnum"=>"100100",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"TMF291",
    "proc_refnum"=>"18120544051570",
    "trantype"=>"Reverse ACH",
    "receipts"=>(object)[
        "customer"=>"Mail Sent Successfully",
        "merchant"=>"Mail Sent Successfully",
    ],
]

@POST/transactions@

<?php
$request_capture=(object)[
    "command"=>"cc:capture",
    "trankey"=>"4nftw5kqd7bjy82",
];

$response = USAePay\Transactions\Post($request_capture);

@POST/transactions@

<?php
$response_capture=(object)[
    "type"=>"transaction",
    "key"=>"4nftw5kqd7bjy82",
    "refnum"=>"100104",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"326349",
    "invoice"=>"98454685",
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"pt1qxpnx0f5303d",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"500.00",
]

@POST/transactions@

<?php
$request_adjust=(object)[
    "command"=>"cc:adjust",
    "trankey"=>"4nftw5kqd7bjy82",
    "amount"=>"3.00",
];

$response = USAePay\Transactions\Post($request_adjust);

@POST/transactions@

<?php
$response_adjust=(object)[
    "type"=>"transaction",
    "key"=>"2nfmnj4fxj13b3q",
    "refnum"=>"21726798",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"002048",
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"3.00",
]

@POST/transactions@

<?php
$request_refund_adjust=(object)[
    "command"=>"refund:adjust",
    "refnum"=>"21726766",
    "amount"=>"3.00",
];

$response = USAePay\Transactions\Post($request_refund_adjust);

@POST/transactions@

<?php
$response_refund_adjust=(object)[
    "type"=>"transaction",
    "key"=>"mnfky8s1mz0gmbd",
    "refnum"=>"21726766",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"002035",
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"0t1jyndn769q1vb",
        "batchrefnum"=>"409384",
        "sequence"=>"1",
    ],
    "auth_amount"=>"97.00",
]

@POST/transactions@

<?php
$request_post_authorization=(object)[
    "creditcard"=>(object)[
        "number"=>"4000100611112228",
        "expiration"=>"0426",
        "cvc"=>"123",
        "avs_street"=>"1234 Portkey Ave",
        "avs_zip"=>"12345",
    ],
    "command"=>"cc:postauth",
    "authcode"=>"684538",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Woolen Socks",
    "comments"=>"Best socks in the world.",
    "send_receipt"=>"1",
    "amount"=>"17.99",
];

$response = USAePay\Transactions\Post($request_post_authorization);

@POST/transactions@

<?php
$response_post_authorization=(object)[
    "type"=>"transaction",
    "key"=>"inftypr7p2fwxr2",
    "refnum"=>"100170",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"684538",
    "creditcard"=>(object)[
        "number"=>"4000xxxxxxxx2228",
        "cardholder"=>"Hogwarts School of Witchcraft and Wizardry",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"101",
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"ft1m9m5p9wgd9mb",
        "sequence"=>"2902",
    ],
    "auth_amount"=>"17.99",
]

@POST/transactions@

<?php
$request_void=(object)[
    "command"=>"void",
    "trankey"=>"bnfkqy54w4qwtmq",
];

$response = USAePay\Transactions\Post($request_void);

@POST/transactions@

<?php
$response_void=(object)[
    "type"=>"transaction",
    "key"=>"bnfkqy54w4qwtmq",
    "refnum"=>"21725793",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"000973",
]

@POST/transactions@

<?php
$request_void_release=(object)[
    "command"=>"cc:void:release",
    "trankey"=>"dnft1yqgm9rh6b0",
];

$response = USAePay\Transactions\Post($request_void_release);

@POST/transactions@

<?php
$response_void_release=(object)[
    "type"=>"transaction",
    "key"=>"dnft1yqgm9rh6b0",
    "refnum"=>"21726107",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"001788",
]

@POST/transactions@

<?php
$request_unvoid=(object)[
    "command"=>"unvoid",
    "trankey"=>"bnfkqy54w4qwtmq",
];

$response = USAePay\Transactions\Post($request_unvoid);

@POST/transactions@

<?php
$response_unvoid=(object)[
    "type"=>"transaction",
    "key"=>"bnfkqy54w4qwtmq",
    "refnum"=>"21725793",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"000973",
]

@POST/transactions@

<?php
$request_create_token=(object)[
    "command"=>"cc:save",
    "creditcard"=>(object)[
        "cardholder"=>"John Doe",
        "number"=>"4000100011112224",
        "expiration"=>"0426",
        "cvc"=>"123",
        "avs_street"=>"1234 Main",
        "avs_postalcode"=>"12345",
    ],
];

$response = USAePay\Transactions\Post($request_create_token);

@POST/transactions@

<?php
$response_create_token=(object)[
    "type"=>"transaction",
    "key"=>"",
    "refnum"=>"",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"",
    "creditcard"=>(object)[
        "number"=>"4000xxxxxxxx2224",
        "cardholder"=>"John Doe",
    ],
    "savedcard"=>(object)[
        "type"=>"Visa",
        "key"=>"tqb9-o076-tpfk-lb8l",
        "cardnumber"=>"4000xxxxxxxx2224",
    ],
]

@POST/transactions@

<?php
$request_customer_transaction=(object)[
    "command"=>"customer:sale",
    "custkey"=>"lsddntp1p7hdthms",
    "paymethod_key"=>"in02p9swwbnqmcs4s",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Wolfsbane Potion",
    "amount"=>"75.00",
];

$response = USAePay\Transactions\Post($request_customer_transaction);

@POST/transactions@

<?php
$response_customer_transaction=(object)[
    "type"=>"transaction",
    "key"=>"fnf0c8975sr76rb",
    "refnum"=>"100349",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"351293",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx7779",
        "category_code"=>"A",
        "entry_mode"=>"Card Not Present, Manually Keyed",
    ],
    "invoice"=>"101",
    "avs"=>(object)[
        "result_code"=>"YYY",
        "result"=>"Address: Match & 5 Digit Zip: Match",
    ],
    "cvc"=>(object)[
        "result_code"=>"P",
        "result"=>"Not Processed",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"et1m9h57b4m26rt",
        "batchrefnum"=>"409384",
        "sequence"=>"2516",
    ],
    "auth_amount"=>"75.00",
    "trantype"=>"Credit Card Sale",
]

@POST/transactions@

<?php
$request_customer_refund=(object)[
    "command"=>"customer:refund",
    "invoice"=>"101",
    "ponum"=>"af416fsd5",
    "description"=>"Wolfsbane Potion",
    "amount"=>"5.00",
    "custkey"=>"lsddntp1p7hdthms",
    "paymethod_key"=>"in02p9swwbnqmcs4s",
];

$response = USAePay\Transactions\Post($request_customer_refund);

@POST/transactions@

<?php
$response_customer_refund=(object)[
    "type"=>"transaction",
    "key"=>"gnfkd12kcxh7ng2",
    "refnum"=>"100350",
    "is_duplicate"=>"N",
    "result_code"=>"A",
    "result"=>"Approved",
    "authcode"=>"110373",
    "creditcard"=>(object)[
        "number"=>"4444xxxxxxxx7779",
    ],
    "invoice"=>"101",
    "avs"=>(object)[
        "result_code"=>"   ",
        "result"=>"Unmapped AVS response (   )",
    ],
    "batch"=>(object)[
        "type"=>"batch",
        "key"=>"et1m9h57b4m26rt",
        "batchrefnum"=>"409384",
        "sequence"=>"2516",
    ],
    "trantype"=>"Credit Card Refund (Credit)",
]

@POST/transactions@

<?php
$request_stored_credential_recurring=(object)[
    "command"=>"sale",
    "amount"=>"20",
    "traits"=>(object)[
        "stored_credential"=>"recurring",
    ],
    "creditcard"=>(object)[
        "number"=>"tyet-xk8x-vpj4-7swq",
        "expiration"=>"0426",
    ],
];

$response = USAePay\Transactions\Post($request_stored_credential_recurring);

@POST/transactions@

<?php
$request_stored_credential_installment=(object)[
    "command"=>"sale",
    "amount"=>"20",
    "traits"=>(object)[
        "stored_credential"=>"installment",
    ],
    "creditcard"=>(object)[
        "number"=>"tyet-xk8x-vpj4-7swq",
        "expiration"=>"0426",
    ],
];

$response = USAePay\Transactions\Post($request_stored_credential_installment);

@POST/transactions@

<?php
$request_stored_credential_ucof=(object)[
    "command"=>"sale",
    "amount"=>"20",
    "traits"=>(object)[
        "stored_credential"=>"ucof",
    ],
    "creditcard"=>(object)[
        "number"=>"tyet-xk8x-vpj4-7swq",
        "expiration"=>"0426",
    ],
];

$response = USAePay\Transactions\Post($request_stored_credential_ucof);

@POST/transactions@

<?php
$request_stored_credential_customer_intitiated=(object)[
    "command"=>"sale",
    "amount"=>"20",
    "traits"=>(object)[
        "stored_credential"=>"customer_intitiated",
    ],
    "creditcard"=>(object)[
        "number"=>"tyet-xk8x-vpj4-7swq",
        "expiration"=>"0426",
    ],
];

$response = USAePay\Transactions\Post($request_stored_credential_customer_intitiated);

@POST/transactions/:trankey:/send@

<?php
$request=(object)[
    "trankey"=>"Example_trankey",
    "toemail"=>"wulfric@hogwarts.com",
    "template"=>"vterm_customer",
];

$response = USAePay\Transactions\Send\Post($request);

@POST/transactions/:trankey:/send@

<?php
$response=(object)[
    "status"=>"success",
]

@GET/transactions/:trankey:/receipts/:receipt_key:@

<?php
$request=(object)[
    "trankey"=>"Example_trankey",
    "receipt_key"=>"Example_receipt_key",
];

$response = USAePay\Transactions\Receipts\Get($request);

@GET/transactions/:trankey:/receipts/:receipt_key:@

<?php
$response="PGh0bWw+Cgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5OZXcgT3JkZXIgKEN1c3RvbWVyKSBSZWNlaXB0PC90aXRsZT4KICAgIDxzdHlsZT4KCQkjTWFpblJlY2VpcHRCb2R5IHsKCQkJbWF4LXdpZHRoOiA3NTBweDsKCQkJbWFyZ2luOiAwIGF1dG87CgkJfQogICAgICAgIC5iYWNrZ3JvdW5kY29sb3IgewogICAgICAgICAgICBib3JkZXItY29sb3I6ICMwMDM4NUQ7CiAgICAgICAgfQoKICAgICAgICAuZm9yZWdyb3VuZGNvbG9yIHsKICAgICAgICAgICAgYmFja2dyb3VuZDogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvciB7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICMwMDcyQkQ7CiAgICAgICAgfQoKICAgICAgICAuYWNjZW50Y29sb3J0eHQgewogICAgICAgICAgICBjb2xvcjogIzAwNzJCRDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcmhlYWQgewogICAgICAgICAgICBjb2xvcjogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcjIgdGggc3BhbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDA3MkJEICFpbXBvcnRhbnQ7CiAgICAgICAgfQoKICAgICAgIAoKICAgICAgICAuYm9keS1wYWQgewogICAgICAgICAgICBwYWRkaW5nOiAyMHB4IDUwcHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1ib2R5IHsKICAgICAgICAgICAgYm9yZGVyOiA0cHggc29saWQgIzAwMzg1RDsKICAgICAgICAgICAgcGFkZGluZzogMjBweCA1MHB4OwogICAgICAgIH0KCiAgICAgICAgLmZvbnRfdGhpbiB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGxldHRlci1zcGFjaW5nOiAxcHg7CiAgICAgICAgfQoKICAgICAgICAucGFkZGluZy1idDAgewogICAgICAgICAgICBwYWRkaW5nLXRvcDogMHB4OwogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbXBhbnktbmFtZS10ZXh0IHsKICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1uYW1lLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDI1cHggIWltcG9ydGFudDsKICAgICAgICAgICAgdGV4dC1zaGFkb3c6IDFweCAwcHggMXB4IHJnYmEoMTUwLCAxNTAsIDE1MCwgMSk7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIH0KCiAgICAgICAgLnRvdGFsLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1zZWN0aW9uLXRhYmxlIHsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgICB9CgogICAgICAgCiAgICAgICAgdGhlYWQgdGggewogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMTBweDsKICAgICAgICB9CgogICAgICAgIHRoZWFkIHRoIHNwYW4gewogICAgICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuNSk7CiAgICAgICAgfQoKICAgICAgICB0Ym9keSB0ZCB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICAgICAgcGFkZGluZzogMnB4IDA7CiAgICAgICAgfQoKICAgICAgICAuaGVhZGVyewogICAgICAgICAgICBkaXNwbGF5OiBpbmhlcml0OwogICAgICAgIH0KCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KICAgIDx0YWJsZSBpZD0iTWFpblJlY2VpcHRCb2R5IiBjbGFzcz0icmVjZWlwdC1ib2R5IGJvZHktcGFkIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgPHRib2R5PgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSIiIGlkPSJyZWNlaXB0cy1lbWFpbC1pbmZvIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keSBhbGlnbj0iY2VudGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS08dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGNsYXNzPSJsb2dvLWltZyIgc3JjPSIgICIgd2lkdGg9IjE1MCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4tLT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMiBjbGFzcz0icmVjZWlwdF9uYW1lIGNvbXBhbnktbmFtZS10ZXh0IGZvbnRfdGhpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3VyIGNhcmQgaGFzIGJlZW4gY2hhcmdlZCBieSBGbG91cmlzaCAmYW1wOyBCbG90dHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMyBjbGFzcz0icmVjZWlwdC1uYW1lLXRleHQgYWNjZW50Y29sb3J0eHQiIHN0eWxlPSJmb250LXNpemU6IDMwcHg7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlY2VpcHQgb2YgUGF5bWVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2gzPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIGNsYXNzPSJ0b3RhbC10ZXh0Ij5Ub3RhbCAgNTAwLjAwPC9oMj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGg0IGNsYXNzPSJ0b3RhbC10ZXh0Ij5UYXggNDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+U2hpcHBpbmcgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+VGlwIDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+RGlzY291bnQgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+CiAgICAgICAgICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0ie3sjZW1haWxpY29ufX0gYWNjZW50Y29sb3IyIHt7L2VtYWlsaWNvbn19Ij4KICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InRhYmxlIHJlY2VpcHQtZWRpdC10YWJsZSByZWNlaXB0LXNlY3Rpb24tdGFibGUgICIgaWQ9ImNjLXRhYmxlIiAgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+Q3JlZGl0IENhcmQgSW5mb3JtYXRpb248L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHkgaWQ9ImNjLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iY3VzdG9tZXItcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FyZCBIb2xkZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaW5lcnZhIE1jR29ubmVnYWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9ImNjbnVtNC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVkaXQgQ2FyZCAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeHh4eCB4eHh4IHh4eHggIDExMTEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSJ0YWJsZSAgcmVjZWlwdC1lZGl0LXRhYmxlIHJlY2VpcHQtc2VjdGlvbi10YWJsZSAgIiBpZD0iZGV0YWlscy10YWJsZSIgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+RGV0YWlsIEluZm9ybWF0aW9uPC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5IGlkPSJkZXRhaWxzLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iZGF0ZS1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMDEvMjQvMTkgMDQ6MjEgcG0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibWVyY2hhbnQtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVmcmVuY2UgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEwMDExNgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyIGlkPSJtZXJjaGFudC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUcmFuc2FjdGlvbiBLZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbmZrZDEybXFrenRiZzIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iYXV0aGNvZGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbiAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMTA2OTA3CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imludm9pY2Utcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSW52b2ljZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDk4NDU0Njg1CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9InR5cGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWRpdCBDYXJkIFNhbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibGluZWl0ZW0tcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExpbmUgSXRlbXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9ImxpbmVpdGVtcy10YmwiPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWhlYWRlci1yb3ciPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXNrdSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItc2t1Ij5TS1U8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLW5hbWUiIGlkPSJsaW5laXRlbXMtaGVhZGVyLW5hbWUiPk5hbWU8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLWNvc3QiIGlkPSJsaW5laXRlbXMtaGVhZGVyLWNvc3QiPkNvc3Q8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXF0eSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItcXR5Ij5RdHk8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXN1YnRvdGFsIiBpZD0ibGluZWl0ZW1zLWhlYWRlci1zdWJ0b3RhbCI+U3ViVG90YWw8L3RoPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXJvdyI+IDx0ZCBjbGFzcz0ibGluZWl0ZW1zLWNlbGwgbGluZWl0ZW1zLXNrdSBsaW5laXRlbXMtc2t1LWNlbGwiPjY4NDUzNDIzPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtbmFtZS1jZWxsIj5BbnRpcXVlIFBlbnNpZXZlPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtY29zdCBsaW5laXRlbXMtY29zdC1jZWxsIj40NTAuMDA8L3RkPiA8dGQgY2xhc3M9ImxpbmVpdGVtcy1jZWxsIGxpbmVpdGVtcy1xdHkgbGluZWl0ZW1zLXF0eS1jZWxsIj4xPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtc3VidG90YWwgbGluZWl0ZW1zLXN1YnRvdGFsLWNlbGwiPiQ0NTAuMDA8L3RkPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXN1YnRvdGFsLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXN1YnRvdGFsLWxhYmxlIj5TdWJ0b3RhbDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItc3VidG90YWwtdmFsdWUiPiQ0NTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdGlwLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXRpcC1sYWJlbCI+VGlwPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10aXAtdmFsdWUiPiQ1LjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLXRheC1yb3ciPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXNrdSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1uYW1lIGxpbmVpdGVtcy1mb290ZXItbGFiZWwgbGluZWl0ZW1zLWZvb3Rlci10YXgtbGFiZWwiPlRheDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItdGF4LXZhbHVlIj4kNDUuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtc2hpcHBpbmctcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItc2hpcHBpbmctbGFiZWwiPlNoaXBwaW5nPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci1zaGlwcGluZy12YWx1ZSI+JDUwLjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWRpc2NvdW50LXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLWRpc2NvdW50LWxhYmVsIj5EaXNjb3VudDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItZGlzY291bnQtdmFsdWUiPi0kNTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdG90YWwtcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItdG90YWwtbGFiZWwiPlRvdGFsPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10b3RhbC12YWx1ZSI+JDUwMC4wMDwvdGQ+PC90cj48L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICA8L3Rib2R5PgogICAgPC90YWJsZT4KICAKPC9ib2R5PgoKPC9odG1sPgo="

@GET/batches/:batch_key:@

var request = {
    "batch_key": "Example_batch_key",}

var response = usaepay.Batches\Get(request);

@GET/batches/:batch_key:@

var response = {
    "type": "batch",
    "key": "ft1m9m5p9wgd9mb",
    "opened": "2019-01-28 17:02:22",
    "status": "closed",
    "closed": "2019-01-28 17:02:36",
    "scheduled": "2019-01-28 17:02:36",
    "total_amount": "3042.48",
    "total_count": "29",
    "sales_amount": "4755.48",
    "sales_count": "18",
    "voids_amount": "17.99",
    "voids_count": "1",
    "refunds_amount": "1713",
    "refunds_count": "10",}

@GET/batches@

var request = {
    "limit": "52",
    "offset": "76",
    "openedlt": "67",
    "openedgt": "9",
    "closedlt": "45",
    "closedgt": "67",
    "openedle": "48",
    "openedge": "45",
    "closedle": "21",
    "closedge": "38",}

var response = usaepay.Batches\Get(request);

@GET/batches@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchnum": "2412",
            "opened": "2018-11-24 11:02:02",
            "closed": "2018-11-24 12:01:01",        },  ],
    "total": "1",}

@GET/batches/current@

var request = {}

var response = usaepay.Batches.Current\Get(request);

@GET/batches/current@

var response = {
    "type": "batch",
    "key": "ft1m9m5p9wgd9mb",
    "opened": "2019-01-28 17:02:22",
    "status": "closed",
    "closed": "2019-01-28 17:02:36",
    "scheduled": "2019-01-28 17:02:36",
    "total_amount": "3042.48",
    "total_count": "29",
    "sales_amount": "4755.48",
    "sales_count": "18",
    "voids_amount": "17.99",
    "voids_count": "1",
    "refunds_amount": "1713",
    "refunds_count": "10",}

@GET/batches/:batch_key:/transactions@

var request = {
    "batch_key": "Example_batch_key",
    "limit": "44",
    "offset": "71",
    "return_bin": "4",}

var response = usaepay.Batches.Transactions\Get(request);

@GET/batches/:batch_key:/transactions@

var response = {
    "type": "list",
    "limit": "20",
    "offset": "0",
    "data": [
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },  ],
    "total": "1",}

@GET/batches/current/transactions@

var request = {
    "limit": "93",
    "offset": "70",
    "return_bin": "85",}

var response = usaepay.Batches.Current.Transactions\Get(request);

@GET/batches/current/transactions@

var response = {
    "type": "list",
    "limit": "20",
    "offset": "0",
    "data23": [
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },  ],
    "total": "1",}

@POST/batches/current/close@

var request = {}

var response = usaepay.Batches.Current.Close\Post(request);

@POST/batches/current/close@

var response = {
    "type": "batch",
    "key": "ft1m9m5p9wgd9mb",
    "batchnum": "2412",
    "opened": "2018-11-24 11:02:02",
    "closed": "2018-11-24 12:01:01",}

@GET/customers/:custkey:@

var request = {
    "custkey": "Example_custkey",}

var response = usaepay.Customers\Get(request);

@GET/customers/:custkey:@

var response = {
    "type": "customer",
    "key": "nsds9yd1h5kb9y5h",
    "custid": "123456",
    "company": "Weasleys Wizard Wheezes",
    "first_name": "George",
    "last_name": "Weasley",
    "description": "Mischief Managed.",
    "payment_methods": [
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },  ],
    "billing_schedules": [
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },  ],}

@GET/customers@

var request = {
    "limit": "1",
    "offset": "77",}

var response = usaepay.Customers\Get(request);

@GET/customers@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "customer",
            "key": "nsds9yd1h5kb9y5h",
            "custid": "123456",
            "company": "Weasleys Wizard Wheezes",
            "first_name": "George",
            "last_name": "Weasley",
            "address": "93 Diagon Alley",
            "address2": "Apartment 2",
            "city": "London",
            "state": "Greater London",
            "postalcode": "WC2H 0AW",
            "country": "Great Britain",
            "phone": "747-3733",
            "fax": "584-4537",
            "email": "noreply@mugglenet.com",
            "url": "https://www.pottermore.com/",
            "notes": "Born on April fools day.",
            "description": "Mischief Managed.",     },  ],
    "total": "1",}

@POST/customers@

var request = {
    "custid": "123456",
    "company": "Weasleys Wizard Wheezes",
    "first_name": "George",
    "last_name": "Weasley",
    "description": "Mischief Managed.",
    "payment_methods": [
        {
            "cardholder": "Fillius Flitwick",
            "expiration": "0426",
            "number": "4000100011112224",
            "pay_type": "cc",       },
        {
            "cardholder": "Fillius Flitwick",
            "expiration": "0426",
            "number": "4000100011112224",
            "pay_type": "cc",       },  ],
    "billing_schedules": [
        {
            "amount": "8",
            "enabled": "1",
            "rules69": [
                {
                    "day_offset": "3",
                    "subject": "Day",               },
                {
                    "day_offset": "3",
                    "subject": "Day",               },          ],      },
        {
            "amount": "8",
            "enabled": "1",
            "rules": [
                {
                    "day_offset": "3",
                    "subject": "Day",               },
                {
                    "day_offset": "3",
                    "subject": "Day",               },          ],      },  ],}

var response = usaepay.Customers\Post(request);

@POST/customers@

var response = {
    "type": "customer",
    "key": "nsds9yd1h5kb9y5h",
    "custid": "123456",
    "company": "Weasleys Wizard Wheezes",
    "first_name": "George",
    "last_name": "Weasley",
    "description": "Mischief Managed.",
    "payment_methods": [
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },  ],
    "billing_schedules": [
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },  ],}

@DELETE/customers/:custkey:@

var request = {
    "custkey": "Example_custkey",}

var response = usaepay.Customers\Delete(request);

@DELETE/customers/:custkey:@

var response = {
    "status": "success",}

@PUT/customers/:custkey:@

var request = {
    "custkey": "Example_custkey",
    "custid": "123456",
    "company": "Weasleys Wizard Wheezes",
    "first_name": "George",
    "last_name": "Weasley",
    "description": "Mischief Managed.",
    "payment_methods": [
        {
            "cardholder": "Fillius Flitwick",
            "expiration": "0426",
            "number": "4000100011112224",
            "pay_type": "cc",       },
        {
            "cardholder": "Fillius Flitwick",
            "expiration": "0426",
            "number": "4000100011112224",
            "pay_type": "cc",       },  ],
    "billing_schedules": [
        {
            "amount": "8",
            "enabled": "1",
            "rules": [
                {
                    "day_offset": "3",
                    "subject": "Day",               },
                {
                    "day_offset": "3",
                    "subject": "Day",               },          ],      },
        {
            "amount": "8",
            "enabled": "1",
            "rules": [
                {
                    "day_offset": "3",
                    "subject": "Day",               },
                {
                    "day_offset": "3",
                    "subject": "Day",               },          ],      },  ],}

var response = usaepay.Customers\Put(request);

@PUT/customers/:custkey:@

var response = {
    "type": "customer",
    "key": "nsds9yd1h5kb9y5h",
    "custid": "123456",
    "company": "Weasleys Wizard Wheezes",
    "first_name": "George",
    "last_name": "Weasley",
    "description": "Mischief Managed.",
    "payment_methods": [
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },  ],
    "billing_schedules": [
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },  ],}

@POST/customers/enable@

var request = {}

var response = usaepay.Customers.Enable\Post(request);

@POST/customers/enable@

var response = {
    "status": "success",}

@POST/customers/disable@

var request = {}

var response = usaepay.Customers.Disable\Post(request);

@POST/customers/disable@

var response = {
    "status": "success",}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",}

var response = usaepay.Customers.Billing_schedules\Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var response = {
    "type": "billingschedule",
    "rules": [
        {
            "type": "billingschedulerule",      },
        {
            "type": "billingschedulerule",      },  ],}

@GET/customers/:custkey:/billing_schedules@

var request = {
    "custkey": "Example_custkey",}

var response = usaepay.Customers.Billing_schedules\Get(request);

@GET/customers/:custkey:/billing_schedules@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },  ],
    "total": "1",}

@POST/customers/:custkey:/billing_schedules@

var request = {
    "custkey": "Example_custkey",
    "CustomerSchedules": [
        {
            "type": "billingschedule",
            "rules": [
                {
                    "type": "billingschedulerule",              },
                {
                    "type": "billingschedulerule",              },          ],      },  ],}

var response = usaepay.Customers.Billing_schedules\Post(request);

@POST/customers/:custkey:/billing_schedules@

var response = [
    {
        "type": "billingschedule",
        "rules": [
            {
                "type": "billingschedulerule",          },
            {
                "type": "billingschedulerule",          },      ],  },]

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",}

var response = usaepay.Customers.Billing_schedules\Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var response = {
    "status": "success",}

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",
    "type": "billingschedule",
    "rules": [
        {
            "type": "billingschedulerule",      },
        {
            "type": "billingschedulerule",      },  ],}

var response = usaepay.Customers.Billing_schedules\Put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:@

var response = {
    "type": "billingschedule",
    "rules": [
        {
            "type": "billingschedulerule",      },
        {
            "type": "billingschedulerule",      },  ],}

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

var request = {
    "custkey": "Example_custkey",
    "paymethod_key": "Example_paymethod_key",}

var response = usaepay.Customers.Payment_methods\Get(request);

@GET/customers/:custkey:/payment_methods/:paymethod_key:@

var response = {
    "key": "x8KccrxeydHJ4MmT",
    "type": "customerpaymentmethod",
    "method_name": "Example method",
    "cardholder": "Testor Jones",
    "expiration": "0426",
    "ccnum4last": "xxxxxxxxxxxxxx7779",
    "card_type": "Visa",}

@GET/customers/:custkey:/payment_methods@

var request = {
    "custkey": "Example_custkey",}

var response = usaepay.Customers.Payment_methods\Get(request);

@GET/customers/:custkey:/payment_methods@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "key": "x8KccrxeydHJ4MmT",
            "type": "customerpaymentmethod",
            "method_name": "Example method",
            "cardholder": "Testor Jones",
            "expiration": "0426",
            "ccnum4last": "xxxxxxxxxxxxxx7779",
            "card_type": "Visa",        },  ],
    "total": "1",}

@POST/customers/:custkey:/payment_methods@

var request = {
    "custkey": "Example_custkey",
    "CustomerPaymentMethodRequests": [
        {
            "cardholder": "Fillius Flitwick",
            "expiration": "0426",
            "number": "4000100011112224",
            "pay_type": "cc",       },  ],}

var response = usaepay.Customers.Payment_methods\Post(request);

@POST/customers/:custkey:/payment_methods@

var response = [
    {
        "key": "x8KccrxeydHJ4MmT",
        "type": "customerpaymentmethod",
        "method_name": "Example method",
        "cardholder": "Testor Jones",
        "expiration": "0426",
        "ccnum4last": "xxxxxxxxxxxxxx7779",
        "card_type": "Visa",    },]

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

var request = {
    "custkey": "Example_custkey",
    "paymethod_key": "Example_paymethod_key",}

var response = usaepay.Customers.Payment_methods\Delete(request);

@DELETE/customers/:custkey:/payment_methods/:paymethod_key:@

var response = {
    "status": "success",}

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

var request = {
    "custkey": "Example_custkey",
    "paymethod_key": "Example_paymethod_key",
    "cardholder": "Fillius Flitwick",
    "expiration": "0426",
    "number": "40001000111^date:MMYY,+4Y4",
    "pay_type": "cc",}

var response = usaepay.Customers.Payment_methods\Put(request);

@PUT/customers/:custkey:/payment_methods/:paymethod_key:@

var response = {
    "key": "x8KccrxeydHJ4MmT",
    "type": "customerpaymentmethod",
    "method_name": "Example method",
    "cardholder": "Testor Jones",
    "expiration": "0426",
    "ccnum4last": "xxxxxxxxxxxxxx7779",
    "card_type": "Visa",}

@GET/customers/:custkey:/transactions@

var request = {
    "custkey": "Example_custkey",}

var response = usaepay.Customers.Transactions\Get(request);

@GET/customers/:custkey:/transactions@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },  ],
    "total": "42",}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",
    "billing_rule_key": "Example_billing_rule_key",}

var response = usaepay.Customers.Billing_schedules.Billing_schedule_rules\Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var response = {
    "type": "billingschedulerule",}

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",}

var response = usaepay.Customers.Billing_schedules.Billing_schedule_rules\Get(request);

@GET/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "billingschedulerule",      },  ],
    "total": "1",}

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",
    "billing_rule_key": "Example_billing_rule_key",}

var response = usaepay.Customers.Billing_schedules.Billing_schedule_rules\Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var response = {
    "status": "success",}

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",
    "billing_rule_key": "Example_billing_rule_key",
    "type": "billingschedulerule",}

var response = usaepay.Customers.Billing_schedules.Billing_schedule_rules\Put(request);

@PUT/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/:billing_rule_key:@

var response = {
    "type": "billingschedulerule",}

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

var request = {
    "custkey": "Example_custkey",
    "billing_schedule_key": "Example_billing_schedule_key",
    "Keys": [
        "Example_delKey",   ],}

var response = usaepay.Customers.Billing_schedules.Billing_schedule_rules.Bulk\Delete(request);

@DELETE/customers/:custkey:/billing_schedules/:billing_schedule_key:/billing_schedule_rules/bulk@

var response = {
    "status": "success",}

@GET/invoices/:invoice_key:@

var request = {
    "invoice_key": "Example_invoice_key",}

var response = usaepay.Invoices\Get(request);

@GET/invoices/:invoice_key:@

var response = {
    "type": "invoice",
    "status": "Q",
    "invoice_number": "abc1234",
    "invoice_date": "2019-10-02",
    "due_date": "2020-10-11",
    "nontaxable": "true",
    "customer_email": "example@test.com",
    "customer_billing": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "customer_shipping": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

@GET/invoices@

var request = {
    "limit": "78",
    "offset": "37",}

var response = usaepay.Invoices\Get(request);

@GET/invoices@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "invoice",
            "status": "Q",
            "invoice_number": "abc1234",
            "invoice_date": "2019-10-02",
            "due_date": "2020-10-11",
            "nontaxable": "true",
            "customer_email": "example@test.com",
            "customer_billing": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "customer_shipping": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "merchant_email": "Example@test.com",
            "merchant_address": "123 Main St",
            "merchant_phone": "111-222-3333",
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],      },  ],
    "total": "42",}

@POST/invoices@

var request = {
    "invoice_number": "abc1234",
    "due_date": "2020-10-11",
    "nontaxable": "true",
    "customer_email": "example@test.com",
    "customer_billing": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "customer_shipping": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

var response = usaepay.Invoices\Post(request);

@POST/invoices@

var response = {
    "type": "invoice",
    "status": "Q",
    "invoice_number": "abc1234",
    "invoice_date": "2019-10-02",
    "due_date": "2020-10-11",
    "nontaxable": "true",
    "customer_email": "example@test.com",
    "customer_billing": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "customer_shipping": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

@DELETE/invoices/:invoice_key:@

var request = {
    "invoice_key": "Example_invoice_key",}

var response = usaepay.Invoices\Delete(request);

@DELETE/invoices/:invoice_key:@

var response = {
    "status": "success",}

@PUT/invoices/:invoice_key:@

var request = {
    "invoice_key": "Example_invoice_key",
    "invoice_number": "abc1234",
    "due_date": "2020-10-11",
    "nontaxable": "true",
    "customer_email": "example@test.com",
    "customer_billing": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "customer_shipping": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

var response = usaepay.Invoices\Put(request);

@PUT/invoices/:invoice_key:@

var response = {
    "type": "invoice",
    "status": "Q",
    "invoice_number": "abc1234",
    "invoice_date": "2019-10-02",
    "due_date": "2020-10-11",
    "nontaxable": "true",
    "customer_email": "example@test.com",
    "customer_billing": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "customer_shipping": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

@DELETE/invoices/bulk@

var request = {
    "Keys": [
        "example_key",  ],}

var response = usaepay.Invoices.Bulk\Delete(request);

@DELETE/invoices/bulk@

var response = {
    "status": "success",}

@GET/invoices/defaults@

var request = {}

var response = usaepay.Invoices.Defaults\Get(request);

@GET/invoices/defaults@

var response = {
    "merchant_email": "Example@test.com",
    "merchant_address": "123 Main St",
    "merchant_phone": "111-222-3333",}

@GET/invoices/nextnum@

var request = {}

var response = usaepay.Invoices.Nextnum\Get(request);

@GET/invoices/nextnum@

var response = {}

@GET/invoices/columns@

var request = {}

var response = usaepay.Invoices.Columns\Get(request);

@GET/invoices/columns@

var response = {}

@POST/invoices/:invoice_key:/send@

var request = {
    "invoice_key": "Example_invoice_key",}

var response = usaepay.Invoices.Send\Post(request);

@POST/invoices/:invoice_key:/send@

var response = {
    "status": "success",}

@POST/invoices/:invoice_key:/cancel@

var request = {
    "invoice_key": "Example_invoice_key",}

var response = usaepay.Invoices.Cancel\Post(request);

@POST/invoices/:invoice_key:/cancel@

var response = {
    "status": "success",}

@GET/invoices/:invoice_key:/payments@

var request = {
    "invoice_key": "Example_invoice_key",
    "limit": "86",
    "offset": "12",}

var response = usaepay.Invoices.Payments\Get(request);

@GET/invoices/:invoice_key:/payments@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {       },  ],
    "total": "42",}

@POST/invoices/bulk/send@

var request = {
    "Keys": [
        "Example_key",  ],}

var response = usaepay.Invoices.Bulk.Send\Post(request);

@POST/invoices/bulk/send@

var response = {
    "status": "success",}

@GET/paymentengine/devices/:devicekey:@

var request = {
    "devicekey": "Example_devicekey",}

var response = usaepay.Paymentengine.Devices\Get(request);

@GET/paymentengine/devices/:devicekey:@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@GET/paymentengine/devices@

var request = {
    "limit": "55",
    "offset": "100",}

var response = usaepay.Paymentengine.Devices\Get(request);

@GET/paymentengine/devices@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "device",
            "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
            "apikeyid": "ntC8nP31Moh0wtvYT",
            "terminal_type": "standalone",
            "status": "ntC8nP31Moh0wtvYT",
            "name": "ntC8nP31Moh0wtvYT",
            "settings": {
                "timeout": "30",
                "enable_standalone": "false",
                "share_device": "false",
                "notify_update": "true",
                "notify_update_next": "true",
                "sleep_battery_device": "5",
                "sleep_battery_display": "3",
                "sleep_powered_device": "10",
                "sleep_powered_display": "8",           },
            "terminal_info": {
                "make": "Castle",
                "model": "Vega3000",
                "revision": "18043001-0055.00",
                "serial": "011118170300198",
                "key_pin": "FFFF5B04",
                "key_pan": "FF908A",            },
            "terminal_config": {
                "enable_emv": "true",
                "enable_debit_msr": "true",
                "enable_tip_adjust": "true",
                "enable_contactless": "true",           },
            "pairing_code": "690520",
            "expiration": "2019-10-29 11:59:28",        },  ],
    "total": "42",}

@POST/paymentengine/devices@

var request = {
    "terminal_type": "standalone",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },}

var response = usaepay.Paymentengine.Devices\Post(request);

@POST/paymentengine/devices@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@DELETE/paymentengine/devices/:devicekey:@

var request = {
    "devicekey": "Example_devicekey",}

var response = usaepay.Paymentengine.Devices\Delete(request);

@DELETE/paymentengine/devices/:devicekey:@

var response = {
    "status": "success",}

@PUT/paymentengine/devices/:devicekey:@

var request = {
    "devicekey": "Example_devicekey",
    "terminal_type": "standalone",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },}

var response = usaepay.Paymentengine.Devices\Put(request);

@PUT/paymentengine/devices/:devicekey:@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@POST/paymentengine/payrequests@

var request = {
    "devicekey": "sa_YdebDV6I2q0MfWV8kPDvQkHEvUjpA",
    "command": "sale",
    "amount": "2.11",
    "amount_detail": {
        "subtotal": "40.00",
        "tax": "10.00",
        "enable_partialauth": "false",  },
    "timeout": "150",
    "block_offline": "true",
    "ignore_duplicate": "true",
    "save_card": "true",
    "manual_key": "true",
    "prompt_tip": "true",
    "invoice": "123456",
    "ponum": "987654321",
    "orderid": "12345678",
    "description": "sample description",
    "billing_address": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "shipping_address": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],}

var response = usaepay.Paymentengine.Payrequests\Post(request);

@POST/paymentengine/payrequests@

var response = {
    "type": "request",
    "key": "pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
    "expiration": "2020-07-08 16:40:48",
    "status": "sent to device",
    "transaction": {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "is_duplicate": "N",
        "result_code": "A",
        "result": "Approved",
        "authcode": "314407",
        "proc_refnum": "18120443975126",
        "creditcard": {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006",      },
        "invoice": "98454685",
        "orderid": "4556432",
        "avs": {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match",        },
        "cvc": {
            "result_code": "N",
            "result": "No Match",       },
        "batch": {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902",     },
        "auth_amount": "500.00",
        "trantype": "Credit Card Sale",
        "iccdata": "",
        "receipts": {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully",       },
        "customer": {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538",       },
        "savedcard": {
            "type": "Visa",
            "key": "tyet-xk8x-vpj4-7swq",
            "cardnumber": "4000xxxxxxxx2224",       },  },
    "complete": "sent to device",}

@GET/paymentengine/payrequests/:requestkey:@

var request = {
    "requestkey": "Example_requestkey",}

var response = usaepay.Paymentengine.Payrequests\Get(request);

@GET/paymentengine/payrequests/:requestkey:@

var response = {
    "type": "request",
    "key": "pr_3mW7rstrdA0Sp32LW9MN3djCITAhx",
    "expiration": "2020-07-08 16:40:48",
    "status": "sent to device",
    "transaction": {
        "type": "transaction",
        "key": "dnfwxwhz5kvnbgb",
        "refnum": "100061",
        "created": "2018-12-04 10:48:44",
        "is_duplicate": "N",
        "result_code": "A",
        "result": "Approved",
        "authcode": "314407",
        "proc_refnum": "18120443975126",
        "creditcard": {
            "cardholder": "Minerva McGonnegall",
            "number": "4444xxxxxxxx1111",
            "category_code": "A",
            "entry_mode": "swiped",
            "avs_street": "1234 Portkey Ave",
            "avs_postalcode": "90006",      },
        "invoice": "98454685",
        "orderid": "4556432",
        "avs": {
            "result_code": "YYY",
            "result": "Address: Match & 5 Digit Zip: Match",        },
        "cvc": {
            "result_code": "N",
            "result": "No Match",       },
        "batch": {
            "type": "batch",
            "key": "ft1m9m5p9wgd9mb",
            "batchrefnum": "12345678",
            "sequence": "2902",     },
        "auth_amount": "500.00",
        "trantype": "Credit Card Sale",
        "iccdata": "",
        "receipts": {
            "customer": "Mail Sent Successfully",
            "merchant": "Mail Sent Successfully",       },
        "customer": {
            "custkey": "ksddgpqgpbs5zkmb",
            "custid": "10275538",       },
        "savedcard": {
            "type": "Visa",
            "key": "tyet-xk8x-vpj4-7swq",
            "cardnumber": "4000xxxxxxxx2224",       },  },
    "complete": "sent to device",}

@DELETE/paymentengine/payrequests/:requestkey:@

var request = {
    "requestkey": "Example_requestkey",}

var response = usaepay.Paymentengine.Payrequests\Delete(request);

@DELETE/paymentengine/payrequests/:requestkey:@

var response = {
    "status": "success",}

@GET/paymentengine/devices/:devicekey:/settings@

var request = {
    "devicekey": "Example_devicekey",}

var response = usaepay.Paymentengine.Devices.Settings\Get(request);

@GET/paymentengine/devices/:devicekey:/settings@

var response = {
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8",}

@PUT/paymentengine/devices/:devicekey:/settings@

var request = {
    "devicekey": "Example_devicekey",
    "timeout": "30",
    "enable_standalone": "false",
    "share_device": "false",
    "notify_update": "true",
    "notify_update_next": "true",
    "sleep_battery_device": "5",
    "sleep_battery_display": "3",
    "sleep_powered_device": "10",
    "sleep_powered_display": "8",}

var response = usaepay.Paymentengine.Devices.Settings\Put(request);

@PUT/paymentengine/devices/:devicekey:/settings@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@GET/paymentengine/devices/:devicekey:/terminal-config@

var request = {
    "devicekey": "Example_devicekey",}

var response = usaepay.Paymentengine.Devices.Terminal-config\Get(request);

@GET/paymentengine/devices/:devicekey:/terminal-config@

var response = {
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true",}

@PUT/paymentengine/devices/:devicekey:/terminal-config@

var request = {
    "devicekey": "Example_devicekey",
    "enable_emv": "true",
    "enable_debit_msr": "true",
    "enable_tip_adjust": "true",
    "enable_contactless": "true",}

var response = usaepay.Paymentengine.Devices.Terminal-config\Put(request);

@PUT/paymentengine/devices/:devicekey:/terminal-config@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@POST/paymentengine/devices/:devicekey:/kick@

var request = {
    "devicekey": "Example_devicekey",}

var response = usaepay.Paymentengine.Devices.Kick\Post(request);

@POST/paymentengine/devices/:devicekey:/kick@

var response = {
    "type": "device",
    "key": "sa_WKwzyQawBG0RMy0XpDGFXb6pXA32r",
    "apikeyid": "ntC8nP31Moh0wtvYT",
    "terminal_type": "standalone",
    "status": "ntC8nP31Moh0wtvYT",
    "name": "ntC8nP31Moh0wtvYT",
    "settings": {
        "timeout": "30",
        "enable_standalone": "false",
        "share_device": "false",
        "notify_update": "true",
        "notify_update_next": "true",
        "sleep_battery_device": "5",
        "sleep_battery_display": "3",
        "sleep_powered_device": "10",
        "sleep_powered_display": "8",   },
    "terminal_info": {
        "make": "Castle",
        "model": "Vega3000",
        "revision": "18043001-0055.00",
        "serial": "011118170300198",
        "key_pin": "FFFF5B04",
        "key_pan": "FF908A",    },
    "terminal_config": {
        "enable_emv": "true",
        "enable_debit_msr": "true",
        "enable_tip_adjust": "true",
        "enable_contactless": "true",   },
    "pairing_code": "690520",
    "expiration": "2019-10-29 11:59:28",}

@GET/products/:product_key:@

var request = {
    "product_key": "Example_product_key",}

var response = usaepay.Products\Get(request);

@GET/products/:product_key:@

var response = {
    "type": "product",
    "key": "80v96p6rx2k6sktw",
    "product_refnum": "2",
    "name": "Botts Every Flavor Beans",
    "price": "2.00",
    "enabled": "True",
    "taxable": "True",
    "categoryid": "1238710",
    "commodity_code": "3122",
    "description": "Every flavor you can imagine and then some.",
    "list_price": "3.00",
    "manufacturer": "Jelly Belly",
    "merch_productid": "EXA1234",
    "physicalgood": "True",
    "ship_weight": "1.2 oz",
    "sku": "123456789",
    "upc": "999999999",
    "weight": "1.2 oz",
    "wholesale_price": "3.22",
    "created": "",
    "modified": "",}

@GET/products@

var request = {
    "limit": "37",
    "offset": "50",}

var response = usaepay.Products\Get(request);

@GET/products@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "product",
            "key": "80v96p6rx2k6sktw",
            "product_refnum": "2",
            "name": "Botts Every Flavor Beans",
            "price": "2.00",
            "enabled": "True",
            "taxable": "True",
            "categoryid": "1238710",
            "commodity_code": "3122",
            "description": "Every flavor you can imagine and then some.",
            "list_price": "3.00",
            "manufacturer": "Jelly Belly",
            "merch_productid": "EXA1234",
            "physicalgood": "True",
            "ship_weight": "1.2 oz",
            "sku": "123456789",
            "upc": "999999999",
            "weight": "1.2 oz",
            "wholesale_price": "3.22",
            "created": "",
            "modified": "",     },  ],
    "total": "42",}

@POST/products@

var request = {
    "name": "Botts Every Flavor Beans",
    "price": "2.00",
    "enabled": "True",
    "taxable": "True",
    "categoryid": "1238710",
    "commodity_code": "3122",
    "description": "Every flavor you can imagine and then some.",
    "list_price": "3.00",
    "manufacturer": "Jelly Belly",
    "merch_productid": "EXA1234",
    "physicalgood": "True",
    "ship_weight": "1.2 oz",
    "sku": "123456789",
    "upc": "999999999",
    "weight": "1.2 oz",
    "wholesale_price": "3.22",}

var response = usaepay.Products\Post(request);

@POST/products@

var response = {
    "type": "product",
    "key": "80v96p6rx2k6sktw",
    "product_refnum": "2",
    "name": "Botts Every Flavor Beans",
    "price": "2.00",
    "enabled": "True",
    "taxable": "True",
    "categoryid": "1238710",
    "commodity_code": "3122",
    "description": "Every flavor you can imagine and then some.",
    "list_price": "3.00",
    "manufacturer": "Jelly Belly",
    "merch_productid": "EXA1234",
    "physicalgood": "True",
    "ship_weight": "1.2 oz",
    "sku": "123456789",
    "upc": "999999999",
    "weight": "1.2 oz",
    "wholesale_price": "3.22",
    "created": "",
    "modified": "",}

@DELETE/products/:product_key:@

var request = {
    "product_key": "Example_product_key",}

var response = usaepay.Products\Delete(request);

@DELETE/products/:product_key:@

var response = {
    "status": "success",}

@PUT/products/:product_key:@

var request = {
    "product_key": "Example_product_key",
    "name": "Botts Every Flavor Beans",
    "price": "2.00",
    "enabled": "True",
    "taxable": "True",
    "categoryid": "1238710",
    "commodity_code": "3122",
    "description": "Every flavor you can imagine and then some.",
    "list_price": "3.00",
    "manufacturer": "Jelly Belly",
    "merch_productid": "EXA1234",
    "physicalgood": "True",
    "ship_weight": "1.2 oz",
    "sku": "123456789",
    "upc": "999999999",
    "weight": "1.2 oz",
    "wholesale_price": "3.22",}

var response = usaepay.Products\Put(request);

@PUT/products/:product_key:@

var response = {
    "type": "product",
    "key": "80v96p6rx2k6sktw",
    "product_refnum": "2",
    "name": "Botts Every Flavor Beans",
    "price": "2.00",
    "enabled": "True",
    "taxable": "True",
    "categoryid": "1238710",
    "commodity_code": "3122",
    "description": "Every flavor you can imagine and then some.",
    "list_price": "3.00",
    "manufacturer": "Jelly Belly",
    "merch_productid": "EXA1234",
    "physicalgood": "True",
    "ship_weight": "1.2 oz",
    "sku": "123456789",
    "upc": "999999999",
    "weight": "1.2 oz",
    "wholesale_price": "3.22",
    "created": "",
    "modified": "",}

@GET/products/categories/:category_key:@

var request = {
    "category_key": "Example_category_key",}

var response = usaepay.Products.Categories\Get(request);

@GET/products/categories/:category_key:@

var response = {
    "type": "product_category",
    "key": "80v96p6rx2k6sktw",
    "name": "Botts Every Flavor Beans",}

@GET/products/categories@

var request = {
    "limit": "93",
    "offset": "93",}

var response = usaepay.Products.Categories\Get(request);

@GET/products/categories@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "product_category",
            "key": "80v96p6rx2k6sktw",
            "name": "Botts Every Flavor Beans",     },  ],
    "total": "42",}

@POST/products/categories@

var request = {
    "name": "Botts Every Flavor Beans",}

var response = usaepay.Products.Categories\Post(request);

@POST/products/categories@

var response = {
    "type": "product_category",
    "key": "80v96p6rx2k6sktw",
    "name": "Botts Every Flavor Beans",}

@DELETE/products/categories/:category_key:@

var request = {
    "category_key": "Example_category_key",}

var response = usaepay.Products.Categories\Delete(request);

@DELETE/products/categories/:category_key:@

var response = {
    "status": "success",}

@PUT/products/categories/:category_key:@

var request = {
    "category_key": "Example_category_key",
    "name": "Botts Every Flavor Beans",}

var response = usaepay.Products.Categories\Put(request);

@PUT/products/categories/:category_key:@

var response = {
    "type": "product_category",
    "key": "80v96p6rx2k6sktw",
    "name": "Botts Every Flavor Beans",}

@POST/tokens@

var request = {
    "creditcard": {
        "cardholder": "Minerva McGonnegall",
        "number": "4000100011112224",
        "expiration": "0426",   },
    "customer": {
        "custkey": "9sddg0ccd915pdbq",
        "paymethod_key": "2n02pc6k26jkfkh1b",   },
    "list": [
        {
            "custkey": "9sddg0ccd915pdbq",
            "paymethod_key": "2n02pc6k26jkfkh1b",       },  ],}

var response = usaepay.Tokens\Post(request);

@POST/tokens@

var response = {
    "type": "token",
    "key": "p4xe-9ax3-26f4-pi6h",
    "token": {
        "type": "token",
        "key": "p4xe-9ax3-26f4-pi6h",
        "card_key": "p4xe-9ax3-26f4-pi6h",
        "cardref": "p4xe-9ax3-26f4-pi6h",
        "masked_card_number": "XXXXXXXXXXXX2226",
        "card_type": "Visa",    },}

@GET/tokens/:cardref:@

var request = {
    "cardref": "Example_cardref",}

var response = usaepay.Tokens\Get(request);

@GET/tokens/:cardref:@

var response = {
    "type": "token",
    "key": "p4xe-9ax3-26f4-pi6h",
    "card_key": "p4xe-9ax3-26f4-pi6h",
    "cardref": "p4xe-9ax3-26f4-pi6h",
    "masked_card_number": "XXXXXXXXXXXX2226",
    "card_type": "Visa",}

@GET/transactions/:trankey:@

var request = {
    "trankey": "Example_trankey",}

var response = usaepay.Transactions\Get(request);

@GET/transactions/:trankey:@

var response = {
    "type": "transaction",
    "key": "dnfwxwhz5kvnbgb",
    "refnum": "100061",
    "created": "2018-12-04 10:48:44",
    "trantype_code": "S",
    "trantype": "Credit Card Sale",
    "result_code": "A",
    "result": "Approved",
    "error_code": "12",
    "error": "Card Number was not between 13 and 16 digits",
    "authcode": "314407",
    "status_code": "P",
    "status": "Authorized (Pending Settlement)",
    "proc_refnum": "18120443975126",
    "creditcard": {
        "cardholder": "Minerva McGonnegall",
        "number": "4444xxxxxxxx1111",
        "category_code": "A",
        "entry_mode": "swiped",
        "avs_street": "1234 Portkey Ave",
        "avs_postalcode": "90006",  },
    "check": {
        "accountholder": "Remus Lupin",
        "routing": "123456789",
        "account": "324523524",
        "account_type": "checking", },
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "N",
        "result": "No Match",   },
    "batch": {
        "type": "batch",
        "key": "ft1m9m5p9wgd9mb",
        "batchrefnum": "12345678",
        "sequence": "2902", },
    "amount": "50",
    "amount_detail": {
        "subtotal": "40.00",
        "tax": "10.00",
        "enable_partialauth": "false",  },
    "ponum": "af416fsd5",
    "invoice": "98454685",
    "orderid": "98454685",
    "description": "Antique Pensieve",
    "billing_address": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "shipping_address": {
        "company": "Hogwarts School of Witchcraft and Wizardry",
        "street": "123 Astronomy Tower",
        "postalcode": "10005",  },
    "lineitems": [
        {
            "name": "Antique Pensieve",
            "description": "See into your past...",
            "size": "Large",
            "color": "Bronze",
            "cost": "450.00",
            "list_price": "500.00",
            "qty": "1",
            "sku": "68453423",
            "commoditycode": "535",
            "discountamount": "0",
            "discountrate": "0",
            "taxable": "",
            "taxamount": "45.00",
            "taxclass": "NA",
            "taxrate": "10",
            "um": "EA",
            "category": "Antiques",
            "manufacturer": "The Ancients",     },  ],
    "comments": "Powerful magical object. Use with caution.",
    "tranterm": "multilane",
    "clerk": "Madame Malkin",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },
    "customer": {
        "custkey": "ksddgpqgpbs5zkmb",
        "custid": "10275538",   },
    "customer_email": "noreply@gmail.com",
    "bin": {
        "bin": "444455",
        "type": "Debit",
        "issuer": "Visa",
        "bank": "Chase Bank",
        "country": "US",
        "country_name": "United States",
        "country_iso": "CA",
        "location": "http://www.jpmorganchase.com",
        "phone": "USA",
        "category": "", },
    "clientip": "Madame Malkin",
    "source_name": "Madame Malkin",}

@GET/transactions@

var request = {
    "limit": "86",
    "offset": "78",
    "fuzzy": "32",
    "filters": "exampleFilter",}

var response = usaepay.Transactions\Get(request);

@GET/transactions@

var response = {
    "type": "list",
    "limit": "0",
    "offset": "20",
    "data": [
        {
            "type": "transaction",
            "key": "dnfwxwhz5kvnbgb",
            "refnum": "100061",
            "created": "2018-12-04 10:48:44",
            "trantype_code": "S",
            "trantype": "Credit Card Sale",
            "result_code": "A",
            "result": "Approved",
            "error_code": "12",
            "error": "Card Number was not between 13 and 16 digits",
            "authcode": "314407",
            "status_code": "P",
            "status": "Authorized (Pending Settlement)",
            "proc_refnum": "18120443975126",
            "creditcard": {
                "cardholder": "Minerva McGonnegall",
                "number": "4444xxxxxxxx1111",
                "category_code": "A",
                "entry_mode": "swiped",
                "avs_street": "1234 Portkey Ave",
                "avs_postalcode": "90006",          },
            "check": {
                "accountholder": "Remus Lupin",
                "routing": "123456789",
                "account": "324523524",
                "account_type": "checking",         },
            "avs": {
                "result_code": "YYY",
                "result": "Address: Match & 5 Digit Zip: Match",            },
            "cvc": {
                "result_code": "N",
                "result": "No Match",           },
            "batch": {
                "type": "batch",
                "key": "ft1m9m5p9wgd9mb",
                "batchrefnum": "12345678",
                "sequence": "2902",         },
            "amount": "50",
            "amount_detail": {
                "subtotal": "40.00",
                "tax": "10.00",
                "enable_partialauth": "false",          },
            "ponum": "af416fsd5",
            "invoice": "98454685",
            "orderid": "98454685",
            "description": "Antique Pensieve",
            "billing_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "shipping_address": {
                "company": "Hogwarts School of Witchcraft and Wizardry",
                "street": "123 Astronomy Tower",
                "postalcode": "10005",          },
            "lineitems": [
                {
                    "name": "Antique Pensieve",
                    "description": "See into your past...",
                    "size": "Large",
                    "color": "Bronze",
                    "cost": "450.00",
                    "list_price": "500.00",
                    "qty": "1",
                    "sku": "68453423",
                    "commoditycode": "535",
                    "discountamount": "0",
                    "discountrate": "0",
                    "taxable": "",
                    "taxamount": "45.00",
                    "taxclass": "NA",
                    "taxrate": "10",
                    "um": "EA",
                    "category": "Antiques",
                    "manufacturer": "The Ancients",             },          ],
            "comments": "Powerful magical object. Use with caution.",
            "tranterm": "multilane",
            "clerk": "Madame Malkin",
            "receipts": {
                "customer": "Mail Sent Successfully",
                "merchant": "Mail Sent Successfully",           },
            "customer": {
                "custkey": "ksddgpqgpbs5zkmb",
                "custid": "10275538",           },
            "customer_email": "noreply@gmail.com",
            "bin": {
                "bin": "444455",
                "type": "Debit",
                "issuer": "Visa",
                "bank": "Chase Bank",
                "country": "US",
                "country_name": "United States",
                "country_iso": "CA",
                "location": "http://www.jpmorganchase.com",
                "phone": "USA",
                "category": "",         },
            "clientip": "Madame Malkin",
            "source_name": "Madame Malkin",     },  ],
    "total": "42",}

@POST/transactions@

var request = {
    "command": "sale",
    "invoice": "98454685",
    "ponum": "af416fsd5",
    "description": "Antique Pensieve",
    "comments": "Powerful magical object. Use with caution.",
    "email": "brian@hogwarts.com",
    "send_receipt": "1",
    "ignore_duplicate": "1",
    "merchemailaddr": "receipts@fandb.net",
    "amount": "500.00",
    "amount_detail": {
        "subtotal": "450.00",
        "tax": "45.00",
        "tip": "5.00",
        "discount": "50.00",
        "shipping": "50.00",    },
    "creditcard": {
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "number": "4444333322221111",
        "expiration": "0426",
        "cvc": "123",
        "avs_street": "1234 Portkey Ave",
        "avs_zip": "12345", },
    "traits": {
        "is_debt": "",
        "is_bill_pay": "",
        "is_recurring": "",
        "is_healthcare": "",
        "is_cash_advance": "",  },
    "custkey": "ksddgpqgpbs5zkmb",
    "billing_address": {
        "firstname": "Albus",
        "lastname": "Dumbledore",
        "street": "123 Astronomy Tower",
        "street2": "Suite 1",
        "city": "Phoenix",
        "state": "CA",
        "postalcode": "10005",
        "country": "USA",
        "phone": "555-253-3673",
        "fax": "666-253-3673",  },
    "shipping_address": {
        "firstname": "Aberforth",
        "lastname": "Dumbledore",
        "street": "987 HogsHead St",
        "city": "Hogsmead",
        "state": "WY",
        "postalcode": "30005",
        "country": "USA",
        "phone": "555-253-3673",    },
    "lineitems": [
        {
            "product_key": "ds4bb5ckg059vdn8",
            "name": "Antique Pensieve",
            "cost": "450.00",
            "qty": "1",
            "tax_amount": "50.00",
            "location_key": "dnyyjc8s2vbz8hb33",
            "list_price": "500.00",     },  ],
    "custom_fields": {
        "1": "Gryffindor",
        "2": "Headmaster",  },}

var response = usaepay.Transactions\Post(request);

@POST/transactions@

var response = {
    "type": "transaction",
    "key": "dnfwxwhz5kvnbgb",
    "refnum": "100061",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "314407",
    "creditcard": {
        "number": "4444xxxxxxxx1111",
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "98454685",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "N",
        "result": "No Match",   },
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "500.00",
    "trantype": "Credit Card Sale",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var request_token_sale = {
    "creditcard": {
        "number": "dx0c3ns6xips28h3",
        "cvc": "123",   },
    "command": "sale",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Woolen Socks",
    "comments": "Best socks in the world.",
    "amount": "17.99",}

var response = usaepay.Transactions\Post(request_token_sale);

@POST/transactions@

var response_token_sale = {
    "type": "transaction",
    "key": "nnfkg4y0452kztm",
    "refnum": "100071",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "329045",
    "creditcard": {
        "number": "4444xxxxxxxx7779",
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "101",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "N",
        "result": "No Match",   },
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "17.99",
    "trantype": "Credit Card Sale",}

@POST/transactions@

var request_paymentkey_sale = {
    "payment_key": "02zxfg87ty824",
    "command": "sale",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Woolen Socks",
    "comments": "Best socks in the world.",
    "amount": "17.99",}

var response = usaepay.Transactions\Post(request_paymentkey_sale);

@POST/transactions@

var response_paymentkey_sale = {
    "type": "transaction",
    "key": "nnfkg4y0452kztm",
    "refnum": "100071",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "329045",
    "creditcard": {
        "number": "4444xxxxxxxx7779",
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "101",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "N",
        "result": "No Match",   },
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "17.99",
    "trantype": "Credit Card Sale",}

@POST/transactions@

var request_check_sale = {
    "command": "check:sale",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Wolfsbane Potion",
    "amount": "75.00",
    "check": {
        "accountholder": "Remus Lupin",
        "routing": "123456789",
        "account": "324523524",
        "account_type": "checking",
        "number": "101",
        "format": "WEB",    },}

var response = usaepay.Transactions\Post(request_check_sale);

@POST/transactions@

var response_check_sale = {
    "command": "check:sale",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Wolfsbane Potion",
    "amount": "75.00",
    "check": {
        "accountholder": "Remus Lupin",
        "routing": "123456789",
        "account": "324523524",
        "account_type": "checking",
        "number": "101",
        "format": "WEB",    },}

@POST/transactions@

var request_cash_sale = {
    "command": "cash:sale",
    "amount": "5.00",
    "amount_detail": {
        "tax": "1.00",
        "tip": "0.50",  },}

var response = usaepay.Transactions\Post(request_cash_sale);

@POST/transactions@

var response_cash_sale = {
    "type": "transaction",
    "key": "3nft52wn1wy7rx8",
    "refnum": "100077",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "",}

@POST/transactions@

var request_quicksale = {
    "command": "quicksale",
    "trankey": "gnfkd12yhsr7mbs",
    "amount": "5.00",}

var response = usaepay.Transactions\Post(request_quicksale);

@POST/transactions@

var response_quicksale_cc = {
    "type": "transaction",
    "key": "mnfwvcf1thnvrgb",
    "refnum": "100070",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "328906",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "creditcard": {
        "category_code": "A",   },
    "cvc": {
        "result_code": "P",
        "result": "Not Processed",  },
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "5.00",
    "trantype": "Credit Card Sale",}

@POST/transactions@

var response_quicksale_check = {
    "type": "transaction",
    "key": "5nfty0s5m91vb3b",
    "refnum": "100079",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "TM9406",
    "proc_refnum": "18120443978215",
    "trantype": "Check Sale",}

@POST/transactions@

var request_authonly = {
    "command": "authonly",
    "invoice": "98454685",
    "ponum": "af416fsd5",
    "description": "Antique Pensieve",
    "comments": "Powerful magical object. Use with caution.",
    "email": "brian@hogwarts.com",
    "send_receipt": "1",
    "ignore_duplicate": "1",
    "merchemailaddr": "receipts@fandb.net",
    "amount": "500.00",
    "amount_detail": {
        "subtotal": "450.00",
        "tax": "45.00",
        "tip": "5.00",
        "discount": "50.00",
        "shipping": "50.00",    },
    "creditcard": {
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "number": "4444333322221111",
        "expiration": "0426",
        "cvc": "123",
        "avs_street": "1234 Portkey Ave",
        "avs_zip": "12345", },
    "traits": {
        "is_debt": "",
        "is_bill_pay": "",
        "is_recurring": "",
        "is_healthcare": "",
        "is_cash_advance": "",  },
    "custkey": "ksddgpqgpbs5zkmb",
    "billing_address": {
        "firstname": "Albus",
        "lastname": "Dumbledore",
        "street": "123 Astronomy Tower",
        "street2": "Suite 1",
        "city": "Phoenix",
        "state": "CA",
        "postalcode": "10005",
        "country": "USA",
        "phone": "555-253-3673",
        "fax": "666-253-3673",  },
    "shipping_address": {
        "firstname": "Aberforth",
        "lastname": "Dumbledore",
        "street": "987 HogsHead St",
        "city": "Hogsmead",
        "state": "WY",
        "postalcode": "30005",
        "country": "USA",
        "phone": "555-253-3673",    },
    "lineitems": [
        {
            "product_key": "ds4bb5ckg059vdn8",
            "name": "Antique Pensieve",
            "cost": "450.00",
            "qty": "1",
            "tax_amount": "50.00",
            "location_key": "dnyyjc8s2vbz8hb33",
            "list_price": "500.00",     },  ],
    "custom_fields": {
        "1": "Gryffindor",
        "2": "Headmaster",  },}

var response = usaepay.Transactions\Post(request_authonly);

@POST/transactions@

var response_authonly = {
    "type": "transaction",
    "key": "dnfwxwhz5kvnbgb",
    "refnum": "100061",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "314407",
    "creditcard": {
        "number": "4444xxxxxxxx1111",
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "98454685",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "N",
        "result": "No Match",   },
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "500.00",
    "trantype": "Credit Card Sale",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var request_refund_cc_open = {
    "command": "cc:credit",
    "amount": "100.00",
    "invoice": "3579864532",
    "creditcard": {
        "cardholder": "Remus Lupin",
        "number": "4444333322221111",
        "expiration": "0426",   },}

var response = usaepay.Transactions\Post(request_refund_cc_open);

@POST/transactions@

var response_refund_cc_open = {
    "type": "transaction",
    "key": "lnftkz3fqjc2682",
    "refnum": "100095",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "110118",
    "creditcard": {
        "number": "4444xxxxxxxx1111",
        "cardholder": "Remus Lupin",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "3579864532",
    "avs": {
        "result_code": "   ",
        "result": "Unmapped AVS response (   )",    },
    "batch": {
        "type": "batch",
        "key": "0t1k3yx5xs37cvb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "100.00",
    "trantype": "Credit Card Refund (Credit)",}

@POST/transactions@

var request_refund_check_open = {
    "command": "check:credit",
    "check": {
        "accountholder": "Remus Lupin",
        "account": "324523524",
        "routing": "123456789",
        "account_type": "checking",
        "number": "101",
        "format": "WEB",    },
    "amount": "5.00",}

var response = usaepay.Transactions\Post(request_refund_check_open);

@POST/transactions@

var response_refund_check_open = {
    "type": "transaction",
    "key": "6nfj34qh3n8qbhw",
    "refnum": "21726542",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "TM5CA5",
    "proc_refnum": "17092106017626",
    "auth_amount": "5.00",}

@POST/transactions@

var request_refund_cash_open = {
    "command": "cash:refund",
    "amount": "5.00",}

var response = usaepay.Transactions\Post(request_refund_cash_open);

@POST/transactions@

var response_refund_cash_open = {
    "type": "transaction",
    "key": "onfwht4cdb21r58",
    "refnum": "100098",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "",
    "invoice": "98454685",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var request_refund_connected = {
    "command": "refund",
    "trankey": "hnftkyjj2r93ft2",}

var response = usaepay.Transactions\Post(request_refund_connected);

@POST/transactions@

var response_refund_connected_cc = {
    "type": "transaction",
    "key": "2nf57pywqh09zjs",
    "refnum": "124445986",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "445986",
    "avs": {
        "result_code": "   ",
        "result": "Unmapped AVS response (   )",    },
    "batch": {
        "type": "batch",
        "key": "0t1k3yx5xs37cvb",
        "batchrefnum": "409384",
        "sequence": "1",    },}

@POST/transactions@

var response_refund_connected_check = {
    "type": "transaction",
    "key": "anf0cybmfqt9c63",
    "refnum": "100084",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "TM3670",}

@POST/transactions@

var request_quickrefund = {
    "command": "quickrefund",
    "trankey": "dnfwxwhz5kvnbgb",
    "amount": "5.00",}

var response = usaepay.Transactions\Post(request_quickrefund);

@POST/transactions@

var response_quickrefund_cc = {
    "type": "transaction",
    "key": "pnftkk568yskw30",
    "refnum": "100099",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "110122",
    "creditcard": {
        "number": "4444xxxxxxxx1111",   },
    "avs": {
        "result_code": "   ",
        "result": "Unmapped AVS response (   )",    },
    "batch": {
        "type": "batch",
        "key": "pt1qxpnx0f5303d",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "trantype": "Credit Card Refund (Credit)",
    "auth_amount": "5.00",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var response_quickrefund_check = {
    "type": "transaction",
    "key": "0nftkkdy9v0kgbb",
    "refnum": "100100",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "TMF291",
    "proc_refnum": "18120544051570",
    "trantype": "Reverse ACH",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var request_creditvoid = {
    "command": "creditvoid",
    "trankey": "dnfwxwhz5kvnbgb",}

var response = usaepay.Transactions\Post(request_creditvoid);

@POST/transactions@

var response_creditvoid_cc = {
    "type": "transaction",
    "key": "pnftkk568yskw30",
    "refnum": "100099",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "110122",
    "creditcard": {
        "number": "4444xxxxxxxx1111",   },
    "avs": {
        "result_code": "   ",
        "result": "Unmapped AVS response (   )",    },
    "batch": {
        "type": "batch",
        "key": "pt1qxpnx0f5303d",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "trantype": "Credit Card Refund (Credit)",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var response_creditvoid_check = {
    "type": "transaction",
    "key": "0nftkkdy9v0kgbb",
    "refnum": "100100",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "TMF291",
    "proc_refnum": "18120544051570",
    "trantype": "Reverse ACH",
    "receipts": {
        "customer": "Mail Sent Successfully",
        "merchant": "Mail Sent Successfully",   },}

@POST/transactions@

var request_capture = {
    "command": "cc:capture",
    "trankey": "4nftw5kqd7bjy82",}

var response = usaepay.Transactions\Post(request_capture);

@POST/transactions@

var response_capture = {
    "type": "transaction",
    "key": "4nftw5kqd7bjy82",
    "refnum": "100104",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "326349",
    "invoice": "98454685",
    "batch": {
        "type": "batch",
        "key": "pt1qxpnx0f5303d",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "500.00",}

@POST/transactions@

var request_adjust = {
    "command": "cc:adjust",
    "trankey": "4nftw5kqd7bjy82",
    "amount": "3.00",}

var response = usaepay.Transactions\Post(request_adjust);

@POST/transactions@

var response_adjust = {
    "type": "transaction",
    "key": "2nfmnj4fxj13b3q",
    "refnum": "21726798",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "002048",
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "3.00",}

@POST/transactions@

var request_refund_adjust = {
    "command": "refund:adjust",
    "refnum": "21726766",
    "amount": "3.00",}

var response = usaepay.Transactions\Post(request_refund_adjust);

@POST/transactions@

var response_refund_adjust = {
    "type": "transaction",
    "key": "mnfky8s1mz0gmbd",
    "refnum": "21726766",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "002035",
    "batch": {
        "type": "batch",
        "key": "0t1jyndn769q1vb",
        "batchrefnum": "409384",
        "sequence": "1",    },
    "auth_amount": "97.00",}

@POST/transactions@

var request_post_authorization = {
    "creditcard": {
        "number": "4000100611112228",
        "expiration": "0426",
        "cvc": "123",
        "avs_street": "1234 Portkey Ave",
        "avs_zip": "12345", },
    "command": "cc:postauth",
    "authcode": "684538",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Woolen Socks",
    "comments": "Best socks in the world.",
    "send_receipt": "1",
    "amount": "17.99",}

var response = usaepay.Transactions\Post(request_post_authorization);

@POST/transactions@

var response_post_authorization = {
    "type": "transaction",
    "key": "inftypr7p2fwxr2",
    "refnum": "100170",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "684538",
    "creditcard": {
        "number": "4000xxxxxxxx2228",
        "cardholder": "Hogwarts School of Witchcraft and Wizardry",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "101",
    "batch": {
        "type": "batch",
        "key": "ft1m9m5p9wgd9mb",
        "sequence": "2902", },
    "auth_amount": "17.99",}

@POST/transactions@

var request_void = {
    "command": "void",
    "trankey": "bnfkqy54w4qwtmq",}

var response = usaepay.Transactions\Post(request_void);

@POST/transactions@

var response_void = {
    "type": "transaction",
    "key": "bnfkqy54w4qwtmq",
    "refnum": "21725793",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "000973",}

@POST/transactions@

var request_void_release = {
    "command": "cc:void:release",
    "trankey": "dnft1yqgm9rh6b0",}

var response = usaepay.Transactions\Post(request_void_release);

@POST/transactions@

var response_void_release = {
    "type": "transaction",
    "key": "dnft1yqgm9rh6b0",
    "refnum": "21726107",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "001788",}

@POST/transactions@

var request_unvoid = {
    "command": "unvoid",
    "trankey": "bnfkqy54w4qwtmq",}

var response = usaepay.Transactions\Post(request_unvoid);

@POST/transactions@

var response_unvoid = {
    "type": "transaction",
    "key": "bnfkqy54w4qwtmq",
    "refnum": "21725793",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "000973",}

@POST/transactions@

var request_create_token = {
    "command": "cc:save",
    "creditcard": {
        "cardholder": "John Doe",
        "number": "4000100011112224",
        "expiration": "0426",
        "cvc": "123",
        "avs_street": "1234 Main",
        "avs_postalcode": "12345",  },}

var response = usaepay.Transactions\Post(request_create_token);

@POST/transactions@

var response_create_token = {
    "type": "transaction",
    "key": "",
    "refnum": "",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "",
    "creditcard": {
        "number": "4000xxxxxxxx2224",
        "cardholder": "John Doe",   },
    "savedcard": {
        "type": "Visa",
        "key": "tqb9-o076-tpfk-lb8l",
        "cardnumber": "4000xxxxxxxx2224",   },}

@POST/transactions@

var request_customer_transaction = {
    "command": "customer:sale",
    "custkey": "lsddntp1p7hdthms",
    "paymethod_key": "in02p9swwbnqmcs4s",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Wolfsbane Potion",
    "amount": "75.00",}

var response = usaepay.Transactions\Post(request_customer_transaction);

@POST/transactions@

var response_customer_transaction = {
    "type": "transaction",
    "key": "fnf0c8975sr76rb",
    "refnum": "100349",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "351293",
    "creditcard": {
        "number": "4444xxxxxxxx7779",
        "category_code": "A",
        "entry_mode": "Card Not Present, Manually Keyed",   },
    "invoice": "101",
    "avs": {
        "result_code": "YYY",
        "result": "Address: Match & 5 Digit Zip: Match",    },
    "cvc": {
        "result_code": "P",
        "result": "Not Processed",  },
    "batch": {
        "type": "batch",
        "key": "et1m9h57b4m26rt",
        "batchrefnum": "409384",
        "sequence": "2516", },
    "auth_amount": "75.00",
    "trantype": "Credit Card Sale",}

@POST/transactions@

var request_customer_refund = {
    "command": "customer:refund",
    "invoice": "101",
    "ponum": "af416fsd5",
    "description": "Wolfsbane Potion",
    "amount": "5.00",
    "custkey": "lsddntp1p7hdthms",
    "paymethod_key": "in02p9swwbnqmcs4s",}

var response = usaepay.Transactions\Post(request_customer_refund);

@POST/transactions@

var response_customer_refund = {
    "type": "transaction",
    "key": "gnfkd12kcxh7ng2",
    "refnum": "100350",
    "is_duplicate": "N",
    "result_code": "A",
    "result": "Approved",
    "authcode": "110373",
    "creditcard": {
        "number": "4444xxxxxxxx7779",   },
    "invoice": "101",
    "avs": {
        "result_code": "   ",
        "result": "Unmapped AVS response (   )",    },
    "batch": {
        "type": "batch",
        "key": "et1m9h57b4m26rt",
        "batchrefnum": "409384",
        "sequence": "2516", },
    "trantype": "Credit Card Refund (Credit)",}

@POST/transactions@

var request_stored_credential_recurring = {
    "command": "sale",
    "amount": "20",
    "traits": {
        "stored_credential": "recurring",   },
    "creditcard": {
        "number": "tyet-xk8x-vpj4-7swq",
        "expiration": "0426",   },}

var response = usaepay.Transactions\Post(request_stored_credential_recurring);

@POST/transactions@

var request_stored_credential_installment = {
    "command": "sale",
    "amount": "20",
    "traits": {
        "stored_credential": "installment", },
    "creditcard": {
        "number": "tyet-xk8x-vpj4-7swq",
        "expiration": "0426",   },}

var response = usaepay.Transactions\Post(request_stored_credential_installment);

@POST/transactions@

var request_stored_credential_ucof = {
    "command": "sale",
    "amount": "20",
    "traits": {
        "stored_credential": "ucof",    },
    "creditcard": {
        "number": "tyet-xk8x-vpj4-7swq",
        "expiration": "0426",   },}

var response = usaepay.Transactions\Post(request_stored_credential_ucof);

@POST/transactions@

var request_stored_credential_customer_intitiated = {
    "command": "sale",
    "amount": "20",
    "traits": {
        "stored_credential": "customer_intitiated", },
    "creditcard": {
        "number": "tyet-xk8x-vpj4-7swq",
        "expiration": "0426",   },}

var response = usaepay.Transactions\Post(request_stored_credential_customer_intitiated);

@POST/transactions/:trankey:/send@

var request = {
    "trankey": "Example_trankey",
    "toemail": "wulfric@hogwarts.com",
    "template": "vterm_customer",}

var response = usaepay.Transactions.Send\Post(request);

@POST/transactions/:trankey:/send@

var response = {
    "status": "success",}

@GET/transactions/:trankey:/receipts/:receipt_key:@

var request = {
    "trankey": "Example_trankey",
    "receipt_key": "Example_receipt_key",}

var response = usaepay.Transactions.Receipts\Get(request);

@GET/transactions/:trankey:/receipts/:receipt_key:@

var response = "PGh0bWw+Cgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5OZXcgT3JkZXIgKEN1c3RvbWVyKSBSZWNlaXB0PC90aXRsZT4KICAgIDxzdHlsZT4KCQkjTWFpblJlY2VpcHRCb2R5IHsKCQkJbWF4LXdpZHRoOiA3NTBweDsKCQkJbWFyZ2luOiAwIGF1dG87CgkJfQogICAgICAgIC5iYWNrZ3JvdW5kY29sb3IgewogICAgICAgICAgICBib3JkZXItY29sb3I6ICMwMDM4NUQ7CiAgICAgICAgfQoKICAgICAgICAuZm9yZWdyb3VuZGNvbG9yIHsKICAgICAgICAgICAgYmFja2dyb3VuZDogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvciB7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICMwMDcyQkQ7CiAgICAgICAgfQoKICAgICAgICAuYWNjZW50Y29sb3J0eHQgewogICAgICAgICAgICBjb2xvcjogIzAwNzJCRDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcmhlYWQgewogICAgICAgICAgICBjb2xvcjogIzAwMzg1RDsKICAgICAgICB9CgogICAgICAgIC5hY2NlbnRjb2xvcjIgdGggc3BhbiB7CiAgICAgICAgICAgIGNvbG9yOiAjMDA3MkJEICFpbXBvcnRhbnQ7CiAgICAgICAgfQoKICAgICAgIAoKICAgICAgICAuYm9keS1wYWQgewogICAgICAgICAgICBwYWRkaW5nOiAyMHB4IDUwcHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1ib2R5IHsKICAgICAgICAgICAgYm9yZGVyOiA0cHggc29saWQgIzAwMzg1RDsKICAgICAgICAgICAgcGFkZGluZzogMjBweCA1MHB4OwogICAgICAgIH0KCiAgICAgICAgLmZvbnRfdGhpbiB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGxldHRlci1zcGFjaW5nOiAxcHg7CiAgICAgICAgfQoKICAgICAgICAucGFkZGluZy1idDAgewogICAgICAgICAgICBwYWRkaW5nLXRvcDogMHB4OwogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMHB4OwogICAgICAgIH0KCiAgICAgICAgLmNvbXBhbnktbmFtZS10ZXh0IHsKICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4OwogICAgICAgICAgICBtYXJnaW4tYm90dG9tOiA1cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1uYW1lLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDI1cHggIWltcG9ydGFudDsKICAgICAgICAgICAgdGV4dC1zaGFkb3c6IDFweCAwcHggMXB4IHJnYmEoMTUwLCAxNTAsIDE1MCwgMSk7CiAgICAgICAgICAgIG1hcmdpbi10b3A6IDBweDsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogNXB4OwogICAgICAgIH0KCiAgICAgICAgLnRvdGFsLXRleHQgewogICAgICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICAgICAgfQoKICAgICAgICAucmVjZWlwdC1zZWN0aW9uLXRhYmxlIHsKICAgICAgICAgICAgbWFyZ2luLWJvdHRvbTogMTVweDsKICAgICAgICB9CgogICAgICAgCiAgICAgICAgdGhlYWQgdGggewogICAgICAgICAgICBwYWRkaW5nLWJvdHRvbTogMTBweDsKICAgICAgICB9CgogICAgICAgIHRoZWFkIHRoIHNwYW4gewogICAgICAgICAgICBmb250LXNpemU6IDEycHg7CiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7CiAgICAgICAgICAgIHBhZGRpbmctYm90dG9tOiAzcHg7CiAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuNSk7CiAgICAgICAgfQoKICAgICAgICB0Ym9keSB0ZCB7CiAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAzMDA7CiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDsKICAgICAgICAgICAgcGFkZGluZzogMnB4IDA7CiAgICAgICAgfQoKICAgICAgICAuaGVhZGVyewogICAgICAgICAgICBkaXNwbGF5OiBpbmhlcml0OwogICAgICAgIH0KCiAgICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4KICAgIDx0YWJsZSBpZD0iTWFpblJlY2VpcHRCb2R5IiBjbGFzcz0icmVjZWlwdC1ib2R5IGJvZHktcGFkIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgPHRib2R5PgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSIiIGlkPSJyZWNlaXB0cy1lbWFpbC1pbmZvIiB3aWR0aD0iMTAwJSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx0Ym9keSBhbGlnbj0iY2VudGVyIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS08dHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW1nIGNsYXNzPSJsb2dvLWltZyIgc3JjPSIgICIgd2lkdGg9IjE1MCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4tLT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMiBjbGFzcz0icmVjZWlwdF9uYW1lIGNvbXBhbnktbmFtZS10ZXh0IGZvbnRfdGhpbiI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3VyIGNhcmQgaGFzIGJlZW4gY2hhcmdlZCBieSBGbG91cmlzaCAmYW1wOyBCbG90dHMuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaDI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoMyBjbGFzcz0icmVjZWlwdC1uYW1lLXRleHQgYWNjZW50Y29sb3J0eHQiIHN0eWxlPSJmb250LXNpemU6IDMwcHg7Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlY2VpcHQgb2YgUGF5bWVudAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2gzPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIGNsYXNzPSJ0b3RhbC10ZXh0Ij5Ub3RhbCAgNTAwLjAwPC9oMj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGg0IGNsYXNzPSJ0b3RhbC10ZXh0Ij5UYXggNDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+U2hpcHBpbmcgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+VGlwIDUuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz0idG90YWwtdGV4dCI+RGlzY291bnQgNTAuMDA8L2g0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+CiAgICAgICAgICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0ie3sjZW1haWxpY29ufX0gYWNjZW50Y29sb3IyIHt7L2VtYWlsaWNvbn19Ij4KICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9InRhYmxlIHJlY2VpcHQtZWRpdC10YWJsZSByZWNlaXB0LXNlY3Rpb24tdGFibGUgICIgaWQ9ImNjLXRhYmxlIiAgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+Q3JlZGl0IENhcmQgSW5mb3JtYXRpb248L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGg+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHkgaWQ9ImNjLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iY3VzdG9tZXItcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FyZCBIb2xkZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaW5lcnZhIE1jR29ubmVnYWxsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9ImNjbnVtNC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVkaXQgQ2FyZCAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeHh4eCB4eHh4IHh4eHggIDExMTEKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPSJ0YWJsZSAgcmVjZWlwdC1lZGl0LXRhYmxlIHJlY2VpcHQtc2VjdGlvbi10YWJsZSAgIiBpZD0iZGV0YWlscy10YWJsZSIgd2lkdGg9IjEwMCUiPgogICAgICAgICAgICAgICAgICAgICAgICA8dGhlYWQgYWxpZ249ImxlZnQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9ImhlYWRlciI+RGV0YWlsIEluZm9ybWF0aW9uPC9zcGFuPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RoZWFkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5IGlkPSJkZXRhaWxzLWJvZHkiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iZGF0ZS1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMDEvMjQvMTkgMDQ6MjEgcG0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibWVyY2hhbnQtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUmVmcmVuY2UgIwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEwMDExNgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyIGlkPSJtZXJjaGFudC1yb3ciIGNsYXNzPSJ1aS1zb3J0YWJsZS1oYW5kbGUiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUcmFuc2FjdGlvbiBLZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJyaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnbmZrZDEybXFrenRiZzIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0iYXV0aGNvZGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXV0aG9yaXphdGlvbiAjCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMTA2OTA3CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9Imludm9pY2Utcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgSW52b2ljZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDk4NDU0Njg1CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgaWQ9InR5cGUtcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249InJpZ2h0Ij4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWRpdCBDYXJkIFNhbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciBpZD0ibGluZWl0ZW0tcm93IiBjbGFzcz0idWktc29ydGFibGUtaGFuZGxlIj4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExpbmUgSXRlbXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBhbGlnbj0icmlnaHQiPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgY2xhc3M9ImxpbmVpdGVtcy10YmwiPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWhlYWRlci1yb3ciPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXNrdSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItc2t1Ij5TS1U8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLW5hbWUiIGlkPSJsaW5laXRlbXMtaGVhZGVyLW5hbWUiPk5hbWU8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLWNvc3QiIGlkPSJsaW5laXRlbXMtaGVhZGVyLWNvc3QiPkNvc3Q8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXF0eSIgaWQ9ImxpbmVpdGVtcy1oZWFkZXItcXR5Ij5RdHk8L3RoPiAgPHRoIGNsYXNzPSJsaW5laXRlbXMtaGVhZGVyLWNlbGwgbGluZWl0ZW1zLXN1YnRvdGFsIiBpZD0ibGluZWl0ZW1zLWhlYWRlci1zdWJ0b3RhbCI+U3ViVG90YWw8L3RoPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXJvdyI+IDx0ZCBjbGFzcz0ibGluZWl0ZW1zLWNlbGwgbGluZWl0ZW1zLXNrdSBsaW5laXRlbXMtc2t1LWNlbGwiPjY4NDUzNDIzPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtbmFtZS1jZWxsIj5BbnRpcXVlIFBlbnNpZXZlPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtY29zdCBsaW5laXRlbXMtY29zdC1jZWxsIj40NTAuMDA8L3RkPiA8dGQgY2xhc3M9ImxpbmVpdGVtcy1jZWxsIGxpbmVpdGVtcy1xdHkgbGluZWl0ZW1zLXF0eS1jZWxsIj4xPC90ZD4gPHRkIGNsYXNzPSJsaW5laXRlbXMtY2VsbCBsaW5laXRlbXMtc3VidG90YWwgbGluZWl0ZW1zLXN1YnRvdGFsLWNlbGwiPiQ0NTAuMDA8L3RkPjwvdHI+Cjx0ciBjbGFzcz0ibGluZWl0ZW1zLXN1YnRvdGFsLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXN1YnRvdGFsLWxhYmxlIj5TdWJ0b3RhbDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItc3VidG90YWwtdmFsdWUiPiQ0NTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdGlwLXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLXRpcC1sYWJlbCI+VGlwPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10aXAtdmFsdWUiPiQ1LjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLXRheC1yb3ciPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXNrdSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1uYW1lIGxpbmVpdGVtcy1mb290ZXItbGFiZWwgbGluZWl0ZW1zLWZvb3Rlci10YXgtbGFiZWwiPlRheDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItdGF4LXZhbHVlIj4kNDUuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtc2hpcHBpbmctcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItc2hpcHBpbmctbGFiZWwiPlNoaXBwaW5nPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci1zaGlwcGluZy12YWx1ZSI+JDUwLjAwPC90ZD48L3RyPjx0ciBjbGFzcz0ibGluZWl0ZW1zLWRpc2NvdW50LXJvdyI+PHRkIGNsYXNzPSJsaW5laXRlbXMtc2t1Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLW5hbWUgbGluZWl0ZW1zLWZvb3Rlci1sYWJlbCBsaW5laXRlbXMtZm9vdGVyLWRpc2NvdW50LWxhYmVsIj5EaXNjb3VudDwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtY29zdCI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1xdHkiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtZm9vdGVyLXZhbHVlIGxpbmVpdGVtcy1mb290ZXItZGlzY291bnQtdmFsdWUiPi0kNTAuMDA8L3RkPjwvdHI+PHRyIGNsYXNzPSJsaW5laXRlbXMtdG90YWwtcm93Ij48dGQgY2xhc3M9ImxpbmVpdGVtcy1za3UiPjwvdGQ+PHRkIGNsYXNzPSJsaW5laXRlbXMtbmFtZSBsaW5laXRlbXMtZm9vdGVyLWxhYmVsIGxpbmVpdGVtcy1mb290ZXItdG90YWwtbGFiZWwiPlRvdGFsPC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1jb3N0Ij48L3RkPjx0ZCBjbGFzcz0ibGluZWl0ZW1zLXF0eSI+PC90ZD48dGQgY2xhc3M9ImxpbmVpdGVtcy1mb290ZXItdmFsdWUgbGluZWl0ZW1zLWZvb3Rlci10b3RhbC12YWx1ZSI+JDUwMC4wMDwvdGQ+PC90cj48L3RhYmxlPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90Ym9keT4KICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPgogICAgICAgICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KICAgICAgICA8L3Rib2R5PgogICAgPC90YWJsZT4KICAKPC9ib2R5PgoKPC9odG1sPgo="