# Financialization Cancellation

It is used to cancel successful financialized credit card transactions.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/transaction/capture\\_reversal>
{% endhint %}

{% tabs %}
{% tab title="Request Parameters" %}

| Parameter Name | Type   | Required | Description |
| -------------- | ------ | -------- | ----------- |
| **xact\_id**   | string | Yes      | Process id. |
| {% endtab %}   |        |          |             |

{% tab title="Response Parameters" %}

| Parameter Name               | Type     | Description                                                                                                                                                                                                                   |
| ---------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **xact\_id**                 | string   | Process id.                                                                                                                                                                                                                   |
| **xact\_date**               | datetime | The code of response result.                                                                                                                                                                                                  |
| **transaction\_type**        | char     | Response result message.                                                                                                                                                                                                      |
| **pos\_type**                | char     | Paynet POS.                                                                                                                                                                                                                   |
| **is\_tds**                  | bool     | If thetransaction performed with 3D,this value return as true.                                                                                                                                                                |
| **agent\_id**                | string   | Paynet agentcode of the dealer that performed the transaction.                                                                                                                                                                |
| **user\_id**                 | string   | The user who performing the transaction.                                                                                                                                                                                      |
| **email**                    | string   | Mail address.                                                                                                                                                                                                                 |
| **phone**                    | string   | Phone number.                                                                                                                                                                                                                 |
| **bank\_id**                 | char     | The bank's code in the Paynet system.                                                                                                                                                                                         |
| **instalment**               | int      | Installment count.                                                                                                                                                                                                            |
| **ratio**                    | float    | Rate that used during transaction.                                                                                                                                                                                            |
| **card\_no\_masked**         | string   | Masked card number.                                                                                                                                                                                                           |
| **card\_holder**             | string   | Card owner.                                                                                                                                                                                                                   |
| **amount**                   | decimal  | Amount that withdrawn from credit card.                                                                                                                                                                                       |
| **net\_amount**              | decimal  | Amount without commission.                                                                                                                                                                                                    |
| **comission**                | decimal  | Comission.                                                                                                                                                                                                                    |
| **comission\_tax**           | decimal  | Comission tax.                                                                                                                                                                                                                |
| **currency**                 | decimal  | Currency.                                                                                                                                                                                                                     |
| **authorization\_code**      | char     | Bank confirmation code.                                                                                                                                                                                                       |
| **reference\_code**          | string   | Bank reference code.                                                                                                                                                                                                          |
| **order\_id**                | string   | Bank order no.                                                                                                                                                                                                                |
| **is\_succeed**              | string   | It returns true if the transaction successful. If the transactionis successful, it returns as http 200 and is\_succeed return as true. If the bank does not approve, it returns as http 200 and is\_succeed returns as false. |
| **paynet\_error\_id**        | bool     | Paynet system error code.                                                                                                                                                                                                     |
| **paynet\_error\_message**   | string   | Paynet system error code.                                                                                                                                                                                                     |
| **bank\_error\_id**          | string   | Bank error code.                                                                                                                                                                                                              |
| **bank\_error\_message**     | string   | Bank error message.                                                                                                                                                                                                           |
| **bank\_error\_short\_desc** | string   | Bank error message.                                                                                                                                                                                                           |
| **bank\_error\_long\_desc**  | string   | Bank error message.                                                                                                                                                                                                           |
| **object\_name**             | string   | Transaction.                                                                                                                                                                                                                  |
| **code**                     | string   | The code of response result. [Expr](https://doc.paynet.com.tr/genel-bilgiler/hata-kodlari/doenues-kodlari)                                                                                                                    |
| **message**                  | string   | Response result message.                                                                                                                                                                                                      |
| {% endtab %}                 |          |                                                                                                                                                                                                                               |

{% tab title="Request" %}

```
{  
   "xact_id":"xk_EAAAAHTqbS04hq4sU877ZQIiNuIhJ*PVko0sJyhtHOdvxjpf"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
"xact_id": "xk_*******qbS04hq4sU877ZQIiNuIhJ*PVko0sJyh*********"
"xact_date": "2016-04-07T15:33:09.543"
"transaction_type": 6
"pos_type": 5
"is_tds": false
"agent_id": "1001"
"user_id": "PaynetApi"
"email": ""
"phone": ""
"bank_id": "VAKF"
"instalment": 0
"ratio": 0.02
"card_no_masked": "435508******4358"
"card_holder": "cardholder"
"amount": 15
"net_amount": 14.65
"comission": 0.3
"comission_tax": 0.05
"currency": "TRY"
"authorization_code": ""
"reference_code": ""
"order_id": ""
"is_succeed": true
"paynet_error_id": ""
"paynet_error_message": ""
"bank_error_id": "6000"
"bank_error_message": "Invalid Ip Address : "
"bank_error_short_desc": ""
"bank_error_long_desc": ""
"object_name": "transaction"
"code": 1
"message": ""
}
```

{% endtab %}

{% tab title="Service Url" %}

| System          | URL                                                                |
| --------------- | ------------------------------------------------------------------ |
| **Live System** | <https://api.paynet.com.tr/v1/transaction/capture\\_reversal>      |
| **Test System** | <https://pts-api.paynet.com.tr​/v1/transaction/capture\\_reversal> |
| {% endtab %}    |                                                                    |
| {% endtabs %}   |                                                                    |
