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

# Transaction

## Process Transaction

> Use this endpoint to process a one-time customer transaction using a stored payment method in the Customer & Recurring API. It is useful for ad hoc charges that should be run outside the normal recurring schedule cadence while still using the stored billing relationship.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - Transaction APIs","version":"1.0.0"},"tags":[{"name":"Transaction"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v2/ProcessTransaction":{"post":{"summary":"Process Transaction","description":"Use this endpoint to process a one-time customer transaction using a stored payment method in the Customer & Recurring API. It is useful for ad hoc charges that should be run outside the normal recurring schedule cadence while still using the stored billing relationship.\n","operationId":"API_064_ProcessTransaction","tags":["Transaction"],"deprecated":false,"parameters":[{"in":"header","name":"Authorization","required":true,"schema":{"type":"string"},"description":"This endpoint is authenticated using your Sola API key. Include the key in the `Authorization` header.\n"},{"in":"header","name":"X-Recurring-Api-Version","required":true,"schema":{"type":"string"},"description":"Include the Customer and Recurring API minor version in the `X-Recurring-Api-Version` request header.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"SoftwareName":{"type":"string","description":"The name of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"SoftwareVersion":{"type":"string","description":"The version of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"CustomerId":{"type":"string","description":"Customer's unique ID number.\n\n**Conditional:** Required if PaymentMethodId not passed.\n","X-required-conditional":true,"X-condition-logic":"Required if PaymentMethodId not passed."},"PaymentMethodId":{"type":"string","description":"The ID of the payment method to use for the transaction.\n\n**Conditional:** Required if using non-default payment method.\n","X-required-conditional":true,"X-condition-logic":"Required if using non-default payment method."},"Amount":{"type":"number","description":"The amount of the transaction.","X-required-conditional":false,"X-condition-logic":""},"Tax":{"type":"number","description":"The tax portion that is included in the total transaction amount.","X-required-conditional":false,"X-condition-logic":""},"PaymentDetails":{"type":"object","description":"The details for a new method of payment.\n\n**Conditional:** Required if not using existing payment method\n","X-required-conditional":true,"X-condition-logic":"Required if not using existing payment method"},"UseBackupPaymentMethods":{"type":"boolean","description":"Indicates that the system should try another card if the default card fails.","X-required-conditional":false,"X-condition-logic":""},"Invoice":{"type":"string","description":"Customer's invoice number for the transaction. Use Invoice when available for improved duplicate handling (recommended).","X-required-conditional":false,"X-condition-logic":""},"PONumber":{"type":"string","description":"Customer's purchase order number for the transaction.","X-required-conditional":false,"X-condition-logic":""},"Description":{"type":"string","description":"Additional data sent with the transaction.","X-required-conditional":false,"X-condition-logic":""},"AllowDuplicates":{"type":"boolean","description":"A flag indicating whether to disable duplicate detection. Useful for testing, but it is not suggested that this be set to true in production.","X-required-conditional":false,"X-condition-logic":""},"CustReceipt":{"type":"boolean","description":"A flag that can be set to send the receipts to the email address set in Email for the customer.","X-required-conditional":false,"X-condition-logic":""},"Cvv":{"type":"string","description":"The CVV value for the transaction.","X-required-conditional":false,"X-condition-logic":""},"Email":{"type":"string","description":"Customer's email address.","X-required-conditional":false,"X-condition-logic":""},"Fax":{"type":"string","description":"Customer's fax number.","X-required-conditional":false,"X-condition-logic":""},"BillFirstName":{"type":"string","description":"Customer's first name for their billing profile.\n\n**Conditional:** One of BillFirstName+BillLastName or BillCompany required\n","X-required-conditional":true,"X-condition-logic":"One of BillFirstName+BillLastName or BillCompany required"},"BillMiddleName":{"type":"string","description":"Customer's middle name or initial for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillLastName":{"type":"string","description":"Customer's last/family name for their billing profile.\n\n**Conditional:** One of BillFirstName+BillLastName or BillCompany required\n","X-required-conditional":true,"X-condition-logic":"One of BillFirstName+BillLastName or BillCompany required"},"BillCompany":{"type":"string","description":"Customer's company for their billing profile.\n\n**Conditional:** One of BillFirstName+BillLastName or BillCompany required\n","X-required-conditional":true,"X-condition-logic":"One of BillFirstName+BillLastName or BillCompany required"},"BillStreet":{"type":"string","description":"Customer's street address for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillStreet2":{"type":"string","description":"Customer's street address second line for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillCity":{"type":"string","description":"Customer's city for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillState":{"type":"string","description":"Customer's state for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillZip":{"type":"string","description":"Customer's ZIP code or postal code for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillCountry":{"type":"string","description":"Customer's country for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillPhone":{"type":"string","description":"Customer's phone number for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"BillMobile":{"type":"string","description":"Customer's mobile number for their billing profile.","X-required-conditional":false,"X-condition-logic":""},"ShipFirstName":{"type":"string","description":"Customer’s first name for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipMiddleName":{"type":"string","description":"Customer’s middle name or initial for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipLastName":{"type":"string","description":"Customer’s last/family name for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipCompany":{"type":"string","description":"Customer’s company name for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipStreet":{"type":"string","description":"Customer’s street address for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipStreet2":{"type":"string","description":"Customer’s street address second line for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipCity":{"type":"string","description":"Customer’s city for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipState":{"type":"string","description":"Customer’s state for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipZip":{"type":"string","description":"Customer’s ZIP or postal code for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipCountry":{"type":"string","description":"Customer’s country for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipPhone":{"type":"string","description":"Customer’s phone number for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipMobile":{"type":"string","description":"Customer’s mobile number for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"ShipEmail":{"type":"string","description":"Customer’s shipping email address for their shipping profile.","X-required-conditional":false,"X-condition-logic":""},"Custom02":{"type":"string","description":"Custom field 02. Custom fields (19 available) used for custom data, such as customer comments and so forth. Custom01 is reserved. Use Custom02 - Custom20.","X-required-conditional":false,"X-condition-logic":""},"Custom03":{"type":"string","description":"Custom field 03.","X-required-conditional":false,"X-condition-logic":""},"Custom04":{"type":"string","description":"Custom field 04.","X-required-conditional":false,"X-condition-logic":""},"Custom05":{"type":"string","description":"Custom field 05.","X-required-conditional":false,"X-condition-logic":""},"Custom06":{"type":"string","description":"Custom field 06.","X-required-conditional":false,"X-condition-logic":""},"Custom07":{"type":"string","description":"Custom field 07.","X-required-conditional":false,"X-condition-logic":""},"Custom08":{"type":"string","description":"Custom field 08.","X-required-conditional":false,"X-condition-logic":""},"Custom09":{"type":"string","description":"Custom field 09.","X-required-conditional":false,"X-condition-logic":""},"Custom10":{"type":"string","description":"Custom field 10.","X-required-conditional":false,"X-condition-logic":""},"Custom11":{"type":"string","description":"Custom field 11.","X-required-conditional":false,"X-condition-logic":""},"Custom12":{"type":"string","description":"Custom field 12.","X-required-conditional":false,"X-condition-logic":""},"Custom13":{"type":"string","description":"Custom field 13.","X-required-conditional":false,"X-condition-logic":""},"Custom14":{"type":"string","description":"Custom field 14.","X-required-conditional":false,"X-condition-logic":""},"Custom15":{"type":"string","description":"Custom field 15.","X-required-conditional":false,"X-condition-logic":""},"Custom16":{"type":"string","description":"Custom field 16.","X-required-conditional":false,"X-condition-logic":""},"Custom17":{"type":"string","description":"Custom field 17.","X-required-conditional":false,"X-condition-logic":""},"Custom18":{"type":"string","description":"Custom field 18.","X-required-conditional":false,"X-condition-logic":""},"Custom19":{"type":"string","description":"Custom field 19.","X-required-conditional":false,"X-condition-logic":""},"Custom20":{"type":"string","description":"Custom field 20.","X-required-conditional":false,"X-condition-logic":""},"Currency":{"type":"string","description":"Currency code for the transaction.","X-required-conditional":false,"X-condition-logic":""},"SplitInstruction":{"type":"string","description":"On Instructional Funding accounts, add split instructions for the transaction. Format is an array of json objects, each having a mid and the amount for that mid.","X-required-conditional":false,"X-condition-logic":""}},"required":["SoftwareName","SoftwareVersion","Amount"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"Result":{"type":"string","description":"The result of the API call. S=success E=error."},"RefNum":{"type":"string","description":"A unique request ID."},"Error":{"type":"string","description":"Error message if Result is E."},"GatewayRefnum":{"type":"string","description":"Gateway reference number."},"GatewayStatus":{"type":"string","description":"Transaction status."},"GatewayErrorMessage":{"type":"string","description":"Gateway error message."}}}}}}}}}}}
```

## Get Transaction

> Use this endpoint to retrieve a customer or recurring transaction by its identifier. It is useful for reconciliation, customer support, and reviewing the full details of a previously processed transaction.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - Transaction APIs","version":"1.0.0"},"tags":[{"name":"Transaction"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v2/GetTransaction":{"post":{"summary":"Get Transaction","description":"Use this endpoint to retrieve a customer or recurring transaction by its identifier. It is useful for reconciliation, customer support, and reviewing the full details of a previously processed transaction.\n","operationId":"API_065_GetTransaction","tags":["Transaction"],"deprecated":false,"parameters":[{"in":"header","name":"Authorization","required":true,"schema":{"type":"string"},"description":"This endpoint is authenticated using your Sola API key. Include the key in the `Authorization` header.\n"},{"in":"header","name":"X-Recurring-Api-Version","required":true,"schema":{"type":"string"},"description":"Include the Customer and Recurring API minor version in the `X-Recurring-Api-Version` request header.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"SoftwareName":{"type":"string","description":"The name of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"SoftwareVersion":{"type":"string","description":"The version of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"RefNum":{"type":"string","description":"The transaction ID to retrieve.","X-required-conditional":false,"X-condition-logic":""}},"required":["SoftwareName","SoftwareVersion","RefNum"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"Result":{"type":"string","description":"The result of the API call. S=success E=error."},"RefNum":{"type":"string","description":"A unique request ID."},"Error":{"type":"string","description":"Error message if Result is E."},"TransactionId":{"type":"string","description":"Transaction TransactionId."},"ScheduleId":{"type":"string","description":"Transaction ScheduleId."},"CustomerId":{"type":"string","description":"Transaction CustomerId."},"PaymentMethodId":{"type":"string","description":"The ID of the payment method used in the transaction."},"TransactionDate":{"type":"string","description":"Transaction TransactionDate."},"GatewayRefNum":{"type":"string","description":"Transaction GatewayRefNum."},"GatewayStatus":{"type":"string","description":"Transaction GatewayStatus."},"GatewayError":{"type":"string","description":"Transaction GatewayError."}}}}}}}}}}}
```

## List Transactions

> Use this endpoint to list transactions associated with customer or recurring billing activity. It is useful for reporting views, customer-history screens, and operational workflows that need paginated transaction retrieval.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - Transaction APIs","version":"1.0.0"},"tags":[{"name":"Transaction"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v2/ListTransactions":{"post":{"summary":"List Transactions","description":"Use this endpoint to list transactions associated with customer or recurring billing activity. It is useful for reporting views, customer-history screens, and operational workflows that need paginated transaction retrieval.\n","operationId":"API_066_ListTransactions","tags":["Transaction"],"deprecated":false,"parameters":[{"in":"header","name":"Authorization","required":true,"schema":{"type":"string"},"description":"This endpoint is authenticated using your Sola API key. Include the key in the `Authorization` header.\n"},{"in":"header","name":"X-Recurring-Api-Version","required":true,"schema":{"type":"string"},"description":"Include the Customer and Recurring API minor version in the `X-Recurring-Api-Version` request header.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"SoftwareName":{"type":"string","description":"The name of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"SoftwareVersion":{"type":"string","description":"The version of the software making the request.","X-required-conditional":false,"X-condition-logic":""},"PageSize":{"type":"integer","description":"The maximum number of items to retrieve for this request.","X-required-conditional":false,"X-condition-logic":""},"NextToken":{"type":"string","description":"A token that can be sent in to the following request to get the next set of transactions.","X-required-conditional":false,"X-condition-logic":""},"SortOrder":{"type":"string","description":"The list order. Order is determined by the date the transaction ran.","X-required-conditional":false,"X-condition-logic":""},"Filters":{"type":"object","description":"Filters that can be applied to limit the result set. Filters will remove any items that do not contain the string for that filter value. If there are multiple filters applied, the item must match all of them. Available filters: IsApproved FromDate ToDate CustomerId ScheduleId PaymentMethodId TransactionId.","X-required-conditional":false,"X-condition-logic":""}},"required":["SoftwareName","SoftwareVersion"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"Result":{"type":"string","description":"The result of the API call. S=success E=error."},"RefNum":{"type":"string","description":"A unique request ID."},"Error":{"type":"string","description":"Error message if Result is E."},"Transactions":{"type":"string","description":"An array of transaction objects. Refer to the /GetTransaction endpoint for the values that are returned for each transaction."},"NextToken":{"type":"string","description":"Token for next results."}}}}}}}}}}}
```


---

# 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/customer-and-recurring-api/transaction.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.
