> For the complete documentation index, see [llms.txt](https://cardknox.gitbook.io/sola-dev-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/readme.md). Agents can also search and read this documentation through its [MCP server](https://cardknox.gitbook.io/sola-dev-docs/~gitbook/mcp).

# Rest API

REST API integration with Sola, including PCI scope considerations and authentication patterns.

This page helps in integrating Sola through **direct server-to-server REST calls**. It links you to the API reference and explains what changes (and what doesn’t) when you choose a direct REST model versus a hosted/tokenized model.

## Direct REST integration

In a direct REST integration, **your backend** sends HTTPS requests to Sola APIs (for example the Transaction API). The API is command-based: you send a request describing the action you want (for example a sale), and you receive a response with the outcome and identifiers (for example `xRefNum`) that you persist for reconciliation and follow-up operations.

From an authentication perspective:

* Your **API key** is commonly referenced as **`xKey`** (because that’s the credential field name used in gateway-style requests).
* You should treat `xKey` as a **private server-side secret** and never embed it in browser, mobile, or desktop clients.

## PCI scope implications

Direct REST does **not** automatically mean “more PCI,” but it can, depending on **where card data is collected and how it flows**.

* **Higher PCI scope (you handle sensitive card data)**: If your application collects PAN/CVV in your own UI and your servers receive/process/store/log those values, your environment becomes part of the card-data flow and your PCI DSS scope increases materially.
* **Lower PCI scope (you don’t handle sensitive card data)**: If you use hosted/tokenized capture models (for example iFields or PaymentSITE), sensitive card data is collected in hosted fields/pages and your server receives **tokens** (such as SUTs) instead of raw PAN/CVV. You still run the transaction via REST, but you’re not handling sensitive card data directly.

If you are building a browser checkout, prefer hosted/tokenized capture unless you have a specific reason to take on the additional compliance burden:

* [iFields](https://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/hosted-payment-fields/integration-models-ifields.md)
* [PaymentSITE](https://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/hosted-payment-fields/integration-models-paymentsite.md)

## API reference

Field-level schemas, request/response examples, and enumerated parameters are maintained in the **API reference**. Use it as the source of truth for payload details, while the Integration section focuses on *how to wire things together safely*.

Start points:

* [Transactions API](https://cardknox.gitbook.io/sola-dev-docs/transaction-api/).
* [Customer & Recurring API](https://cardknox.gitbook.io/sola-dev-docs/api-reference/customer-and-recurring-api)
* [Reporting API](https://cardknox.gitbook.io/sola-dev-docs/api-reference/reporting-api)
* [Webhooks](https://cardknox.gitbook.io/sola-dev-docs/api-reference/webhooks)

## CloudIM

CloudIM is also a type of **REST API integration model**, but it targets **in-person devices.**

Use CloudIM when you want to interact with supported payment terminals through cloud APIs (device registration, status checks, initiating a transaction workflow, and retrieving results), without embedding a local device SDK in your app.

CloudIM is a good fit when:

* the terminal is on the merchant network and can be managed remotely
* you want a REST-driven device workflow (rather than a local SDK/UI embedded into your application)
* you want results that your backend can store and reconcile, like other gateway responses

Start here:

* [CloudIM](https://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/integration-models-cloudim.md)
* [CloudIM Webhooks](https://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/integration-models-cloudim/cloudim-webhooks.md)


---

# 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://cardknox.gitbook.io/sola-dev-docs/integration/integration-models/readme.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.
