> For the complete documentation index, see [llms.txt](https://docs.payshield.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payshield.ai/transaction-processing/integrations-and-apis/responses.md).

# Responses

#### To Redirect Page and to Postback Url

The response from the server is an array. If the status has the value "**OK**" the transaction has been successfully processed.

The response array has the following structure:

| Name         | Data Type | Description                                                                                                                                     |
| ------------ | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| sid          | String    | Has the sid where transaction was processed                                                                                                     |
| status       | String    | Has the value "OK" for a successful transaction, or "EXC" for a failed transaction                                                              |
| parent\_txid | String    | Parent transaction id                                                                                                                           |
| txid         | String    | The transaction ID                                                                                                                              |
| tx\_action   | String    | The state change txaction, e.g. "PAYMENT"                                                                                                       |
| amount       | String    | The amount processed. The gateway currency amount                                                                                               |
| currency     | String    | The currency in which the transaction was processed                                                                                             |
| comment      | String    | Response from the gateway                                                                                                                       |
| rebillkey    | String    | rebillkey for the transaction, if rebill is allowed                                                                                             |
| descriptor   | String    | Gateway descriptor name                                                                                                                         |
| tid          | String    | From the original transaction                                                                                                                   |
| ref1         | String    | From the original transaction                                                                                                                   |
| ref2         | String    | From the original transaction                                                                                                                   |
| ref3         | String    | From the original transaction                                                                                                                   |
| ref4         | String    | From the original transaction                                                                                                                   |
| vrfy         | String    | This is a sha 256 hash so the data can be verified. To generate hash with sha256 the string of *sid;rcode;txid;status;amount;currency;txaction* |
|              |           |                                                                                                                                                 |
| **error**    |           | **f an error has occurred, then the status value will equal "EXC" and these parameters will be sent as well**                                   |
| error\_type  | String    | The error type                                                                                                                                  |
| error\_sys   | String    | The system that caused the error (client or server)                                                                                             |
| error\_msg   | String    | The error message                                                                                                                               |
| error\_info  | String    | Error information that contains the bank message and bank code                                                                                  |
| error\_code  | String    | Txprocess UAT error code                                                                                                                        |


---

# 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://docs.payshield.ai/transaction-processing/integrations-and-apis/responses.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.
