> 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/api-reference/integration/cloud-im.md). Agents can also search and read this documentation through its [MCP server](https://cardknox.gitbook.io/sola-dev-docs/~gitbook/mcp).

# Cloud IM

## Device List

> Use this endpoint to list all devices registered to your account. This is useful for administration, inventory, and operational support workflows where you need to enumerate available devices and their IDs.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device":{"get":{"summary":"Device List","description":"Use this endpoint to list all devices registered to your account. This is useful for administration, inventory, and operational support workflows where you need to enumerate available devices and their IDs.\n","operationId":"API_141_v1_Device","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"},"xDevices":{"type":"string","description":"List of devices"},"xDeviceId":{"type":"string","description":"Device ID for subsequent requests"},"xDeviceSerialNumber":{"type":"string","description":"Device serial number"},"xDeviceMake":{"type":"string","description":"Device make"},"xDeviceFriendlyName":{"type":"string","description":"Friendly name"},"xDeviceStatus":{"type":"string","description":"Device status"},"xDeviceOSVersion":{"type":"string","description":"OS version"},"xDeviceCardknoxApplicationVersion":{"type":"string","description":"Cardknox app version"},"xDeviceLocalIpAddress":{"type":"string","description":"Local IP"},"xDeviceModel":{"type":"string","description":"Device model"},"xCurrentMID":{"type":"string","description":"Current MID if session"}}}}}}}}}}}
```

## Device

> Use this endpoint to create (register) a device on your account so you can interact with it via CloudIM. Provide the device identifiers and metadata; the service returns a device ID that can be used for future operations such as initiating sessions. Authentication is performed using your API credentials.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device":{"post":{"summary":"Device","description":"Use this endpoint to create (register) a device on your account so you can interact with it via CloudIM. Provide the device identifiers and metadata; the service returns a device ID that can be used for future operations such as initiating sessions. Authentication is performed using your API credentials.\n","operationId":"API_127_v1_Device","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceSerialNumber":{"type":"string","description":"Device serial number. 8-16 digits."},"xDeviceMake":{"type":"string","description":"Device make: pax, emulator."},"xDeviceFriendlyName":{"type":"string","description":"Friendly name for the device."}},"required":["xDeviceSerialNumber","xDeviceMake","xDeviceFriendlyName"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number for troubleshooting."},"xResult":{"type":"string","description":"Result S or E."},"xDeviceId":{"type":"string","description":"Device ID for subsequent requests; unique to account."}}}}}}}}}}}
```

## Device Info

> Use this endpoint to retrieve device information by device ID. This helps you validate configuration and confirm the current device metadata before initiating sessions or performing updates.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device/{xDeviceId}":{"get":{"summary":"Device Info","description":"Use this endpoint to retrieve device information by device ID. This helps you validate configuration and confirm the current device metadata before initiating sessions or performing updates.\n","operationId":"API_128_v1_Device_xDeviceId","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceId":{"type":"string","description":"Device ID (path parameter)"}},"required":["xDeviceId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"},"xDeviceFriendlyName":{"type":"string","description":"Friendly name"},"xDeviceSerialNumber":{"type":"string","description":"Serial number"},"xDeviceMake":{"type":"string","description":"Device make"},"xDeviceStatus":{"type":"string","description":"Device status"},"xDeviceOSVersion":{"type":"string","description":"OS version"},"xDeviceCardknoxApplicationVersion":{"type":"string","description":"Cardknox app version"},"xDeviceLocalIpAddress":{"type":"string","description":"Local IP"},"xDeviceModel":{"type":"string","description":"Device model"},"xCurrentMID":{"type":"string","description":"Current MID if session"}}}}}}}}}}}
```

## Device Update

> Use this endpoint to update device metadata such as the friendly name. Keeping friendly names current makes device management and operational troubleshooting easier across environments.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device/{xDeviceId}":{"put":{"summary":"Device Update","description":"Use this endpoint to update device metadata such as the friendly name. Keeping friendly names current makes device management and operational troubleshooting easier across environments.\n","operationId":"API_142_v1_Device_xDeviceId","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceId":{"type":"string","description":"Device ID (path parameter)"},"xDeviceFriendlyName":{"type":"string","description":"New friendly name for the device"}},"required":["xDeviceId","xDeviceFriendlyName"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"}}}}}}}}}}}
```

## Device Delete

> Use this endpoint to delete (de-register) a device from your account. Deleting a device removes it from future session initiation and management workflows; ensure there are no in-progress sessions before removal.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device/{xDeviceId}":{"delete":{"summary":"Device Delete","description":"Use this endpoint to delete (de-register) a device from your account. Deleting a device removes it from future session initiation and management workflows; ensure there are no in-progress sessions before removal.\n","operationId":"API_143_v1_Device_xDeviceId","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceId":{"type":"string","description":"Device ID (path parameter)"}},"required":["xDeviceId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"}}}}}}}}}}}
```

## Session initiate

> Use this endpoint to initiate a new device session. The service returns a session ID that you can use to poll for results once the device interaction completes. This is commonly used to start a discrete device workflow and then retrieve the outcome via the session result endpoint. (or duplicate session ID). API Key auth.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Session/initiate":{"post":{"summary":"Session initiate","description":"Use this endpoint to initiate a new device session. The service returns a session ID that you can use to poll for results once the device interaction completes. This is commonly used to start a discrete device workflow and then retrieve the outcome via the session result endpoint. (or duplicate session ID). API Key auth.\n","operationId":"API_129_v1_Session_initiate","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceId":{"type":"string","description":"Device ID to initiate session on"},"xWebhookId":{"type":"string","description":"Webhook ID for session result callback"},"xPayload":{"type":"object","description":"Session payload (command and metadata)"},"xCommand":{"type":"string","description":"Command e.g. cc:sale, cc:credit, device:cancel","const":"N/A"},"xExternalRequestId":{"type":"string","description":"External request ID"},"xSoftwareName":{"type":"string","description":"Software name"},"xSoftwareVersion":{"type":"string","description":"Software version"}},"required":["xDeviceId","xExternalRequestId","xSoftwareName","xSoftwareVersion"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"},"xSessionId":{"type":"string","description":"New session ID for result lookup"},"xDuplicateSessionId":{"type":"string","description":"Duplicate session ID when duplicate request"}}}}}}}}}}}
```

## Session result

> Use this endpoint to retrieve the result of a device session using the session ID returned by initiation. Poll this endpoint after starting a session until it reaches a terminal state, then use the returned data to drive your next-step logic in the calling application. to retrieve transaction/session outcome.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Session/{xSessionId}":{"get":{"summary":"Session result","description":"Use this endpoint to retrieve the result of a device session using the session ID returned by initiation. Poll this endpoint after starting a session until it reaches a terminal state, then use the returned data to drive your next-step logic in the calling application. to retrieve transaction/session outcome.\n","operationId":"API_130_v1_Session_xSessionId","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xSessionId":{"type":"string","description":"Session ID from initiate response"}},"required":["xSessionId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Gateway refnum"},"xResult":{"type":"string","description":"Gateway result"},"xSessionStatus":{"type":"string","description":"Session status e.g. COMPLETED"},"xSessionError":{"type":"string","description":"Session error message if any"},"xGatewayRefnum":{"type":"string","description":"Gateway transaction refnum if reached gateway"},"xGatewayError":{"type":"string","description":"Gateway error if any"},"xGatewayStatus":{"type":"string","description":"Gateway status e.g. APPROVED"},"xWebhookCallbackStatus":{"type":"string","description":"Webhook callback status if webhook used"},"xSessionCompletedTime":{"type":"string","description":"Session completion timestamp"},"xTransactionResult":{"type":"object","description":"Gateway transaction result"},"xStatus":{"type":"string","description":"Gateway status"},"xAuthCode":{"type":"string","description":"Auth code"},"xMaskedCardNumber":{"type":"string","description":"Masked card number"},"xCardType":{"type":"string","description":"Card type"},"xExp":{"type":"string","description":"Expiry"},"xName":{"type":"string","description":"Cardholder name"},"xToken":{"type":"string","description":"Token"},"xBatch":{"type":"string","description":"Batch"},"xDate":{"type":"string","description":"Date"},"xAuthAmount":{"type":"string","description":"Auth amount"},"xAvsResultCode":{"type":"string","description":"AVS result code"},"xCvvResult":{"type":"string","description":"CVV result"},"xCvvResultCode":{"type":"string","description":"CVV result code"},"xError":{"type":"string","description":"Error message"},"xErrorCode":{"type":"string","description":"Error code"},"xEntryMethod":{"type":"string","description":"Entry method"},"xIsEMV":{"type":"boolean","description":"Is EMV"},"xVoid":{"type":"boolean","description":"Is void"},"xVoidable":{"type":"boolean","description":"Is voidable"},"xRemainingBalance":{"type":"string","description":"Remaining balance (gift)"}}}}}}}}}}}
```

## Device Cancel

> Use this endpoint to cancel an in-progress device session. Cancellation can be used to safely stop a workflow that is no longer needed or that has timed out; the response indicates whether the session was successfully cancelled.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM APIs","version":"1.0.0"},"tags":[{"name":"CloudIM"}],"servers":[{"url":"https://device.cardknox.com/","description":"Default API host"}],"security":[{"CloudIMApiKey":[]}],"components":{"securitySchemes":{"CloudIMApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"Cardknox API key sent directly in the Authorization header. Do not prefix with Bearer."}}},"paths":{"/v1/Device/cancel":{"post":{"summary":"Device Cancel","description":"Use this endpoint to cancel an in-progress device session. Cancellation can be used to safely stop a workflow that is no longer needed or that has timed out; the response indicates whether the session was successfully cancelled.\n","operationId":"API_144_v1_Device_cancel","tags":["CloudIM"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xDeviceId":{"type":"string","description":"Device ID to cancel"},"xCancelMessage":{"type":"string","description":"Optional cancel message"}},"required":["xDeviceId"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"Reference number"},"xResult":{"type":"string","description":"Result S or E"},"xMessage":{"type":"string","description":"e.g. Cancel Device Session initiated"}}}}}}}}}}}
```


---

# 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/api-reference/integration/cloud-im.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.
