---
updatedAt: 2025-09-15T20:47:27.000Z
agentTools:
  projectIndex: https://docs.qorcommerce.io/llms.txt
---

# Create an ACH Token

Create and store a token for ACH bank information

***

ACH tokens are used to replace actual bank and account details sent for processing a transaction.  For example, you can store an ACH token with a customer and/or a subscription contract in your application and use the token to process a payment when required.

### <span style={{ color: "#5375bd" }}><b>Parameters</b></span>

The following fields are available to create an ACH token.

<Table align={["left", "left", "center"]}>
  <thead>
    <tr>
      <th>
        <span style={{ color: "#5375bd" }}><b>parameter</b></span>
      </th>
      <th>
        <span style={{ color: "#5375bd" }}><b>description</b></span>
      </th>
      <th>
        <span style={{ color: "#5375bd" }}><b>required</b></span>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        **profile\_id**
      </td>
      <td>
        Merchant supplied customer id
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **cnickname**
      </td>
      <td>
        a nickname that the cardholder would like to save
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **acccount\_type**
      </td>
      <td>
        the type of account:<br />`1 = personal checking`<br />`2 = personal savings`<br />`3 = corporate checking`<br />`4 = corporate savings`
      </td>
      <td>
        Yes
      </td>
    </tr>
    <tr>
      <td>
        **name\_on\_acccount**
      </td>
      <td>
        the account holders full name
      </td>
      <td>
        Yes
      </td>
    </tr>
    <tr>
      <td>
        **account\_number**
      </td>
      <td>
        the bank account number
      </td>
      <td>
        Yes
      </td>
    </tr>
    <tr>
      <td>
        **routing\_number**
      </td>
      <td>
        the bank routing number (RTN)
      </td>
      <td>
        Yes
      </td>
    </tr>
    <tr>
      <td>
        **baddress**
      </td>
      <td>
        the account street address
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **bcity**
      </td>
      <td>
        the account city name
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **bstate**
      </td>
      <td>
        the account state code
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **bzip**
      </td>
      <td>
        the account zip code
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **cphone**
      </td>
      <td>
        the account holders phone number (mobile)
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **cemail**
      </td>
      <td>
        the account holders email address
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **store**
      </td>
      <td>
        set this to `0` to create a temporary token (much like a payment intent)<br /><span style={{ fontSize: "smaller" }}>if not present default = `1`</span>
      </td>
      <td>
        No
      </td>
    </tr>
  </tbody>
</Table>

<details>
  <summary>Example</summary>
  <p>The following JSON example provides test values to create an ACH token.  You can copy and replace these values in the <b>transaction_data</b> object in the <i>Try it Out</i> feature</p>

```json
{
  "transaction_data": {
  	"acccount_type": "1",
  	"name_on_acccount": "Jerry Smith",
  	"account_number": "5544044490909090",
  	"routing_number": "5544044490909090",
  	"baddress": "26776 Chesterton Drive",
  	"bcity": "Indianapolis",
  	"bstate": "IN",
  	"bzip": "46280"
  }
}
```

</details>

#### <span style={{ color: "#5375bd" }}><b>References</b></span>

<ul>
  <li>Link to details on related response codes.</li>
  <li>[Payment Response Codes](https://docs.qorcommerce.io/docs/payment-response-codes)</li>
</ul>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "QorCommerce Endpoints",
    "description": "API Version 3"
  },
  "paths": {
    "/payment/ach/token": {
      "post": {
        "operationId": "token-ach",
        "summary": "Create an ACH Token",
        "tags": [
          "Payment Tokens (tokenization)"
        ],
        "description": "Create and store a token for ACH bank information",
        "parameters": [
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-App-Key"
          },
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-Client-Key"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_data": {
                    "type": "object",
                    "required": [
                      "account_type",
                      "name_on_account",
                      "account_number",
                      "routing_number"
                    ],
                    "properties": {
                      "profile_id": {
                        "type": "string"
                      },
                      "account_type": {
                        "type": "string"
                      },
                      "name_on_account": {
                        "type": "string"
                      },
                      "cnickname": {
                        "type": "string"
                      },
                      "account_number": {
                        "type": "string"
                      },
                      "routing_number": {
                        "type": "string"
                      },
                      "baddress": {
                        "type": "string"
                      },
                      "bcity": {
                        "type": "string"
                      },
                      "bstate": {
                        "type": "string"
                      },
                      "bzip": {
                        "type": "string"
                      },
                      "cphone": {
                        "type": "string"
                      },
                      "cemail": {
                        "type": "string"
                      },
                      "store": {
                        "type": "integer",
                        "default": "1"
                      }
                    }
                  }
                },
                "required": [
                  "transaction_data"
                ],
                "example": {
                  "transaction_data": {
                    "profile_id": "",
                    "account_type": "1",
                    "name_on_account": "John Smith",
                    "account_number": "648874774",
                    "routing_number": "122245607",
                    "baddress": "26776 Tampa Drive",
                    "bcity": "Tampa",
                    "bstate": "FL",
                    "bzip": "33016"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the request.\n\nPossible response values are `approved`, `declined` and `error` ",
                      "example": " approved"
                    },
                    "code": {
                      "type": "string",
                      "description": "See [Payment Response Codes](doc:payment-response-codes) for more detail.",
                      "example": "GW00"
                    },
                    "message": {
                      "type": "string",
                      "description": "A payment gateway status code message.",
                      "example": "Get token was processed successfully"
                    },
                    "token": {
                      "type": "string",
                      "description": "The token that was created",
                      "example": "541341$KR0eAiX2"
                    }
                  },
                  "required": [
                    "status",
                    "code",
                    "message",
                    "token"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.qorcommerce.io/v3"
    }
  ],
  "components": {
    "parameters": {
      "trait_qorHeaderAuthentication_Qor-App-Key": {
        "name": "Qor-App-Key",
        "in": "header",
        "description": "The unique key identifying the app making this request.\n\nNOTE: If testing use **`T6554252567241061980`** for the **`Qor-App-Key`** header key.",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 24,
          "default": "T6554252567241061980"
        }
      },
      "trait_qorHeaderAuthentication_Qor-Client-Key": {
        "name": "Qor-Client-Key",
        "in": "header",
        "description": "The Client key represents an authorized **merchant account**  and is assigned by QorCommerce or your merchant service account provider.\n\n**NOTE:**  If testing use `01dffeb784c64d098c8c691ea589eb82 `  for the `Qor-Client-Key` header key.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "01dffeb784c64d098c8c691ea589eb82"
        }
      }
    }
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "node",
    "ruby",
    "java",
    "javascript",
    "php",
    "python",
    "swift"
  ]
}
```