# Success parameters

{% hint style="info" %}
In some cases, the set of parameters transmitted in the notification may be changed without prior notice.
{% endhint %}

<table data-full-width="true"><thead><tr><th>Parameters</th><th>Required</th><th>Format</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>site_id</td><td>Yes</td><td>integer</td><td>Site ID</td><td>123</td></tr><tr><td>site_login</td><td>Yes</td><td>string</td><td>User login on the merchant's website</td><td>test_login</td></tr><tr><td>status</td><td>Yes</td><td>Enum</td><td>Operation status</td><td>4</td></tr><tr><td>invoice_id</td><td>Yes</td><td>int</td><td>Unique id in the cactus system</td><td>905910</td></tr><tr><td>request_id</td><td>Yes</td><td>string</td><td>Payment ID from the merchant</td><td>kjksjf-fsdff-s</td></tr><tr><td>amount</td><td>Yes</td><td>int</td><td>Transaction amount in order currency in minor units, for example for US dollars - in cents</td><td>10000</td></tr><tr><td>received_amount</td><td>Yes</td><td>int</td><td>Final payment amount (if payment is unsuccessful, returns 0) minor units</td><td>10000</td></tr><tr><td>is_payout</td><td>No</td><td>bool</td><td>whether the transaction is a payment</td><td>false</td></tr><tr><td>currency</td><td>Yes</td><td>string</td><td>Currency</td><td>KZT</td></tr><tr><td>received_currency</td><td>Yes</td><td>string</td><td>Currency in which the payment will be made</td><td>KZT</td></tr><tr><td>method</td><td>Yes</td><td>string</td><td>Type of method used in the invoice</td><td>card</td></tr><tr><td>signature</td><td>Yes</td><td>string</td><td>See request signature. <a href="../signature">Rules for forming a request signature</a></td><td></td></tr><tr><td>description</td><td>Yes</td><td>string</td><td>Description of failed results or cases of exceptions. The value is empty if the response is successful</td><td>Session expired</td></tr></tbody></table>

#### Example of a successful callback

{% tabs %}
{% tab title="shell" %}

```sh
{
    "request_id": "280",
    "signature": "f4eb33161e94aa78d816a9d053e7008f6ae9237c",
    "site_login": "qtywugbjhdbjbal123",
    "amount": 8000,
    "description": "",
    "transaction_id": "116579133176442782754521496079",
    "status": 3,
    "currency": "USD",
    "site_id": 21,
    "invoice_id": 905910,
    "received_amount": 8000,
    "received_currency": "USD",
    "method": "card"
}
```

{% endtab %}

{% tab title="python" %}

```python
{
    "request_id": "280",
    "signature": "f4eb33161e94aa78d816a9d053e7008f6ae9237c",
    "site_login": "qtywugbjhdbjbal123",
    "amount": 8000,
    "description": "",
    "transaction_id": "116579133176442782754521496079",
    "status": 3,
    "currency": "USD",
    "site_id": 21,
    "invoice_id": 905910,
    "received_amount": 8000,
    "received_currency": "USD",
    "method": "card"
}
```

{% endtab %}
{% endtabs %}

#### Description in exceptional cases <a href="#id-skhemassozdanieminvoisanastoronecactus-descriptioninexceptionalcases" id="id-skhemassozdanieminvoisanastoronecactus-descriptioninexceptionalcases"></a>

| Value in "description" parameter                      | Response description                                                                        |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `Payout Invoice status set to Success by user {user}` | The Cactus operator ({user}) has manually set the status of the payout invoice to 'Success' |
| `Manual created payment`                              | The Cactus operator has manually made an invoice for the lost accrual                       |

#### Description of other cases

| Value in "description" parameter                                    | Response description                                                                                                                  |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `Session expired. No success payment`                               | The user's session has expired due to inactivity or authentication timeout                                                            |
| `Receive {response['status']} after request - {response['status']}` | Final status in integration with processing                                                                                           |
| `Could not make payout. Server respond incorrect`                   | Some problems with automatic payouts                                                                                                  |
| `Another bill has already been paid`                                | When the user has "n" invoices and receives a successful payment on one of them, we will close the remaining invoices (only deposits) |
| `No payment received`                                               | The expected payment for the invoice was not received                                                                                 |
| `Payout Invoice status set to Decline by user {user}`               | The Cactus operator ({user}) has manually set the status of the payout invoice to 'Declined'                                          |
| `Payout Invoice status set to Success by user {user}`               | The Cactus operator ({user}) has manually set the status of the payout invoice to 'Success'                                           |
| `User close invoice`                                                | The user has closed the invoice, and no further action will be taken                                                                  |
