# 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: 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:

```
GET https://docs.payshield.ai/transaction-processing/integrations-and-apis/responses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
