> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/files/dir_2002fcb36e937be08e088f9ab4e81de8/dir_fad52422ca9a0153aca9cfe879bff259/dir_613e11e510006a27889deef70cf7d9b4/_api_8h.md).

# Api.h

[Data Structures](#nested-classes) | [Namespaces](#namespaces) | [Enumerations](#enum-members)

`#include <string>` `#include <vector>` `#include <map>` `#include "`[cpdllspec.h](/adk-5.0-programmers-guide/cpdllspec_8h_source.md)`"`

Include dependency graph for Api.h:

![](/files/tfnH8s93CCW3guEUUzaL)

This graph shows which files directly or indirectly include this file:

![](/files/LsurJoZNI8ZdJoYr1ujf)

[Go to the source code of this file.](/adk-5.0-programmers-guide/_api_8h_source.md)

|                 |                                                                                                                      |
| --------------- | -------------------------------------------------------------------------------------------------------------------- |
| Data Structures |                                                                                                                      |
| struct          | [TransactionData](/adk-5.0-programmers-guide/readme/namespaces/namespacevficpl.md#structvficpl_1_1_transaction_data) |
| class           | [Api](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.0_staging/classvficpl_1_1_api.md)               |

|            |                                                                           |
| ---------- | ------------------------------------------------------------------------- |
| Namespaces |                                                                           |
|            | [vficpl](/adk-5.0-programmers-guide/readme/namespaces/namespacevficpl.md) |

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| enum         | <p><a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4">ApiError</a> {<br>  <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4aac6ea7cce7cfe7b490e5c7e9683c4356">API\_OK</a>, <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4af9bef427ea9e87e17c542097262b2d9c">API\_FAIL</a>, <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4a8aadbd1dd596c4cad93bbb5bdd6c14c9">API\_SERVICE\_TIMEOUT</a>, <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4aeb92fc9c99ff9c6c460a2ed82e1b8716">API\_INVALID\_PARAMETERS</a>,<br>  <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4a77594044bb3a17ab6cce09dd1232bcda">API\_UNSUPPORTED\_REQUEST</a>, <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4a4296511c7cae9476c435c04c468e794e">API\_ENCRYPTION\_UNAVAILABLE</a>, <a href="/pages/4pqKHnQWBKjlw5k1bzwH#a6aec14d1e03f2a2bf43eeae11b6a0ca4ae3326934d0cb3f4d23c8ef7a04ce52b3">API\_NO\_PAPER</a><br>}</p> |

***

### DataStructure Documentation <a href="#data-structure-documentation" id="data-structure-documentation"></a>

### vficpl::TransactionData <a href="#structvficpl_1_1_transaction_data" id="structvficpl_1_1_transaction_data"></a>

struct vficpl::TransactionData

[TransactionData](/adk-5.0-programmers-guide/readme/namespaces/namespacevficpl.md#structvficpl_1_1_transaction_data) container struct for defined return values of [Api](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.0_staging/classvficpl_1_1_api.md)

|                  |                    |                                                                                                                                                                                                                       |
| ---------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Data Fields      |                    |                                                                                                                                                                                                                       |
| string           | currency           | alphabetic currency code (ISO 4217)                                                                                                                                                                                   |
| string           | errorDescription   | description of error                                                                                                                                                                                                  |
| string           | gratuityAmount     | tip value                                                                                                                                                                                                             |
| string           | invoice            | invoice or bill number this transaction relates to                                                                                                                                                                    |
| bool             | manualEntry        | true permits the payment application to obtain card data via manual card entry. false indicates that the manual card entry is not an option.                                                                          |
| vector< string > | manualPromptOption | <p>Only filled if manualEntry is true.</p><p>Possible values are</p><p>ZIP prompts to enter zipcode</p><p>NOCVV disables prompt for CVV</p><p>If ZIP is specified, the result of the AVS is returned in AVS\_Code</p> |
| string           | panHandle          | reference of payment application ehich refers to the PAN in question.                                                                                                                                                 |
| string           | result             | result of transaction                                                                                                                                                                                                 |
| string           | transactionAmount  | amount of transaction                                                                                                                                                                                                 |
| string           | transactionId      | transaction id provided by the payment gateway, which is a client specific transaction identifier.                                                                                                                    |
| string           | transactionType    | type of transaction executed by the payment application                                                                                                                                                               |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/files/dir_2002fcb36e937be08e088f9ab4e81de8/dir_fad52422ca9a0153aca9cfe879bff259/dir_613e11e510006a27889deef70cf7d9b4/_api_8h.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
