---
# System prepended metadata

title: Request Processing (CallbackURL)

---

[УКР](https://hackmd.io/kRWoPPQfSzyI0rk2b7XTmA) | ENG 

# Request Processing (CallbackURL)

## Client Redirect to CallbackURL

After the operation is completed, the client is redirected to the payment results page **CallbackURL** (the parameter sent in the request):

```
"CallbackURL": "https://partner.host/resul_page"
```

The final operation step is to get the operation status to the following Partner URL addresses:  **SuccessCallback** or **FailedCallback** (the parameters sent in the request):

```
"SuccessCallback": "https://partner.host/cb_success"
or
"FailedCallback": "https://partner.host/cb_fail"
```

The `state` and `xrayOperationID` parameters are added during the generation of the URL data:

|Parameter|Required|Type|Description|Example|
|:----:|:----:|:----:|----|:----:|
|`state`|No|Integer|Operation status, according to the table "[Operation status](https://hackmd.io/16yLv895Qo-FWTvrWWQwbg#Operation-Status)". | `10` - operation successfully completed, </br> `21` - operation failed.|
|`xrayOperationID`|No|String|Unique operation identifier in the Operator system.|`245786`|


:::success
<details>
<summary>Example of URL "Operation Successfully Completed"</summary>
<br>

~~~md
https://partner.host/cb_success?state=10&xrayOperationID=245786
~~~
</details>
:::

:::success
<details>
<summary>Example of URL "Operation Failed"</summary>
<br>

~~~md
https://partner.host/cb_fail?state=21&xrayOperationID=245786
~~~
</details>
:::


## Get Operation Status

To get the current operation status at any time, the next request can be sent: [[20003] "Get Operation Status"](https://hackmd.io/_eAjmoG-QPWoWWmsLOGf1g).


## Reference Materials

General parameters of the XPAY system are given in the ["Reference Materials"](https://hackmd.io/16yLv895Qo-FWTvrWWQwbg) section:  operation types, payment types, response codes, operation status, reasons of operation rejection, etc.


## XPAY Support

<details>
<summary>Contacts</summary>
</br>

Phone: +38 (096) 099 20 59
Email: info@xpay.com.ua
Telegram: @xpaysupportbot.
</details>
</br>

:::info
**API navigation:**

:bookmark_tabs: [XPAY API Guide](https://hackmd.io/QA2NYRliRLGviJl5P4-ZCw)

:arrow_left: [General API Integration Information](https://hackmd.io/ijxPm0xtTpycgTjuU_NHQQ)
:::

