> For the complete documentation index, see [llms.txt](https://docs.solapayments.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.solapayments.com/products/cloudim-developer-guide/additional-gateway-parameters.md). Agents can also search and read this documentation through its [MCP server](https://docs.solapayments.com/~gitbook/mcp).

# Additional Gateway Parameters

## Additional Gateway Parameters

In addition to the parameters in the Transaction Flow tables, the following gateway parameters are accepted on transaction commands (`cc:sale`, `cc:authonly`, `cc:credit`, the EBT commands and the gift commands) on both `/v2/Session` and `/v2/Session/Async`. They are all optional. CloudIM forwards each value unchanged; the gateway applies its own rules and formats. They are not accepted on `device:` commands.

Each parameter is a top-level key in the request body, next to `xCommand` and `xAmount`. Any parameter not listed in this guide is rejected with HTTP 400 and an `xError` naming it.

**Order details**

| Field Name             | Type    | Description                                                          | Notes          |
| ---------------------- | ------- | -------------------------------------------------------------------- | -------------- |
| `xPONum`               | String  | Purchase order number.                                               |                |
| `xDescription`         | String  | Transaction description.                                             |                |
| `xComments`            | String  | Free-form comments attached to the transaction.                      |                |
| `xCurrency`            | String  | ISO currency code.                                                   |                |
| `xStore`               | String  | Store identifier.                                                    |                |
| `xVendorID`            | String  | Vendor identifier.                                                   |                |
| `xAllowDividedCapture` | Boolean | Allow divided capture where the processor supports it.               |                |
| `xAllowPartialAuth`    | Boolean | Allow a partial authorization when the full amount is not available. |                |
| `xGiftLocationID`      | String  | Gift card location ID.                                               | Gift commands. |

**Customer and receipt**

| Field Name     | Type   | Description                                   | Notes                                                               |
| -------------- | ------ | --------------------------------------------- | ------------------------------------------------------------------- |
| `xName`        | String | Cardholder name.                              | Replaced by the name on the card; only used for keyed transactions. |
| `xEmail`       | String | Customer email address.                       |                                                                     |
| `xCustReceipt` | String | Set to `true` to email a receipt to `xEmail`. | String, not Boolean.                                                |
| `xFax`         | String | Customer fax number.                          |                                                                     |

**Billing address**

| Field Name        | Type   | Description                 | Notes                                                            |
| ----------------- | ------ | --------------------------- | ---------------------------------------------------------------- |
| `xBillFirstName`  | String | Billing first name.         |                                                                  |
| `xBillMiddleName` | String | Billing middle name.        |                                                                  |
| `xBillLastName`   | String | Billing last name.          |                                                                  |
| `xBillCompany`    | String | Billing company.            |                                                                  |
| `xBillStreet`     | String | Billing address line 1.     | Separate from `xStreet`, which is used for address verification. |
| `xBillStreet2`    | String | Billing address line 2.     |                                                                  |
| `xBillCity`       | String | Billing city.               |                                                                  |
| `xBillState`      | String | Billing state or province.  |                                                                  |
| `xBillZip`        | String | Billing ZIP or postal code. | Separate from `xZip`, which is used for address verification.    |
| `xBillCountry`    | String | Billing country.            |                                                                  |
| `xBillPhone`      | String | Billing phone number.       |                                                                  |
| `xBillMobile`     | String | Billing mobile number.      |                                                                  |

**Shipping address**

| Field Name        | Type   | Description                  | Notes |
| ----------------- | ------ | ---------------------------- | ----- |
| `xShipFirstName`  | String | Shipping first name.         |       |
| `xShipMiddleName` | String | Shipping middle name.        |       |
| `xShipLastName`   | String | Shipping last name.          |       |
| `xShipCompany`    | String | Shipping company.            |       |
| `xShipStreet`     | String | Shipping address line 1.     |       |
| `xShipStreet2`    | String | Shipping address line 2.     |       |
| `xShipCity`       | String | Shipping city.               |       |
| `xShipState`      | String | Shipping state or province.  |       |
| `xShipZip`        | String | Shipping ZIP or postal code. |       |
| `xShipCountry`    | String | Shipping country.            |       |
| `xShipPhone`      | String | Shipping phone number.       |       |
| `xShipMobile`     | String | Shipping mobile number.      |       |
| `xShipEmail`      | String | Shipping email address.      |       |

**Custom fields**

| Field Name                | Type   | Description                             | Notes                                         |
| ------------------------- | ------ | --------------------------------------- | --------------------------------------------- |
| `xCustom01` - `xCustom20` | String | Merchant-defined custom fields 1 to 20. | Two-digit index: `xCustom01`, not `xCustom1`. |

**Healthcare and restaurant amounts**

| Field Name               | Type    | Description              | Notes       |
| ------------------------ | ------- | ------------------------ | ----------- |
| `xRxAmount`              | Numeric | Prescription amount.     |             |
| `xDentalAmount`          | Numeric | Dental amount.           |             |
| `xVisionAmount`          | Numeric | Vision amount.           |             |
| `xClinicalAmount`        | Numeric | Clinical amount.         |             |
| `xCopayAmount`           | Numeric | Copay amount.            |             |
| `xTransitAmount`         | Numeric | Transit amount.          |             |
| `xOtherHealthcareAmount` | Numeric | Other healthcare amount. |             |
| `xBeverageAmount`        | Numeric | Beverage amount.         | Restaurant. |
| `xEBTFSAmount`           | Numeric | EBT food stamp amount.   |             |

**Fleet**

| Field Name                          | Type   | Description                          | Notes             |
| ----------------------------------- | ------ | ------------------------------------ | ----------------- |
| `xFleetCustomerData`                | String | Fleet customer data.                 |                   |
| `xFleetDepartmentNumber`            | String | Department number.                   |                   |
| `xFleetDriverNumber`                | String | Driver number.                       |                   |
| `xFleetEmployeeNumber`              | String | Employee number.                     |                   |
| `xFleetJobId`                       | String | Job ID.                              |                   |
| `xFleetLicenseNumber`               | String | License number.                      |                   |
| `xFleetOdometer`                    | String | Odometer reading.                    | Sent as a string. |
| `xFleetServiceLevel`                | String | Service level.                       |                   |
| `xFleetUserId`                      | String | User ID.                             |                   |
| `xFleetVehicleIdentificationNumber` | String | Vehicle identification number (VIN). |                   |
| `xFleetVehicleNumber`               | String | Vehicle number.                      |                   |

**Lodging**

| Field Name           | Type    | Description                             | Notes                                          |
| -------------------- | ------- | --------------------------------------- | ---------------------------------------------- |
| `xHotelChargeType`   | String  | Charge type.                            |                                                |
| `xHotelCheckInDate`  | String  | Check-in date.                          | Format is checked by the gateway, not CloudIM. |
| `xHotelCheckOutDate` | String  | Check-out date.                         | Format is checked by the gateway, not CloudIM. |
| `xHotelNoShow`       | Boolean | Guest did not show for the reservation. |                                                |
| `xHotelRoomRate`     | Numeric | Room rate.                              |                                                |

**Auto rental**

| Field Name                 | Type    | Description                              | Notes                                        |
| -------------------------- | ------- | ---------------------------------------- | -------------------------------------------- |
| `xAutoRentalDailyRate`     | Numeric | Daily rental rate.                       |                                              |
| `xAutoRentalDistance`      | String  | Distance driven, with unit.              | e.g., "180M" (miles) or "120K" (kilometers). |
| `xAutoRentalNoShow`        | Boolean | Renter did not show for the reservation. |                                              |
| `xAutoRentalPickupCity`    | String  | Pickup city.                             |                                              |
| `xAutoRentalPickupState`   | String  | Pickup state.                            |                                              |
| `xAutoRentalPickupCountry` | String  | Pickup country.                          |                                              |
| `xAutoRentalPickupDBA`     | String  | Pickup location DBA.                     |                                              |
| `xAutoRentalReturnCity`    | String  | Return city.                             |                                              |
| `xAutoRentalReturnState`   | String  | Return state.                            |                                              |
| `xAutoRentalReturnCountry` | String  | Return country.                          |                                              |
| `xAutoRentalReturnDBA`     | String  | Return location DBA.                     |                                              |
| `xAutoRentalVehicleClass`  | String  | Vehicle class.                           |                                              |

**Dynamic descriptor**

| Field Name    | Type   | Description                                 | Notes |
| ------------- | ------ | ------------------------------------------- | ----- |
| `xDBA`        | String | DBA name shown on the cardholder statement. |       |
| `xDBAStreet`  | String | DBA street.                                 |       |
| `xDBACity`    | String | DBA city.                                   |       |
| `xDBAState`   | String | DBA state.                                  |       |
| `xDBAZip`     | String | DBA ZIP or postal code.                     |       |
| `xDBACountry` | String | DBA country.                                |       |
| `xDBAEmail`   | String | DBA email.                                  |       |

**Example Request**

A synchronous sale with billing, order and custom fields:

```http
POST https://device.cardknox.com/v2/session
Content-Type: application/json

{
  "xKey": "<Api Key>",
  "xDeviceId": "1ac25fc88-da3a-44ba-9b8f-0db642613cb7",
  "xSoftwareName": "MySoftware",
  "xSoftwareVersion": "1.0.0",
  "xCommand": "cc:sale",
  "xExternalRequestId": "xxxyyyzzzxxxxxxxxxxxxx",
  "xAmount": "25.00",
  "xInvoice": "INV-1001",
  "xPONum": "PO-5521",
  "xDescription": "Office supplies",
  "xEmail": "customer@example.com",
  "xCustReceipt": "true",
  "xBillStreet": "123 Main St",
  "xBillCity": "Anytown",
  "xBillState": "NY",
  "xBillZip": "12345",
  "xCustom01": "Register 4"
}
```

The response is the same as for any other transaction.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.solapayments.com/products/cloudim-developer-guide/additional-gateway-parameters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
