# Chargeback

### Before you begin

Your API requests are authenticated using an access token. Any request that does not include a valid access token will return an error.

You can learn more about how to generate an access token [**here**](https://devcenter.unico.io/unico-idpay/en/integration/apis/api-reference/broken-reference).

{% hint style="info" %}
**Base URL:**

* UA&#x54;**:** <mark style="color:blue;">`https://transactions.transactional.uat.unico.app/api/public/v1`</mark>;
* Production: <mark style="color:blue;">`https://transactions.transactional.unico.app/api/public/v1`</mark>**.**&#x20;
  {% endhint %}

{% openapi src="<https://4215638879-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwXjg7k5gG7wmNiFGOIuw%2Fuploads%2FKV7cimrM8swyoudKAwo1%2FCreateChargeback.yaml?alt=media&token=73231220-c89f-4a92-b59c-0373d9f9eade>" path="/credit/transactions/{transaction\_id}/chargeback" method="post" %}
[CreateChargeback.yaml](https://4215638879-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwXjg7k5gG7wmNiFGOIuw%2Fuploads%2FKV7cimrM8swyoudKAwo1%2FCreateChargeback.yaml?alt=media\&token=73231220-c89f-4a92-b59c-0373d9f9eade)
{% endopenapi %}

{% openapi src="<https://4215638879-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwXjg7k5gG7wmNiFGOIuw%2Fuploads%2FsqEGAJ2ZDSedYPsjy80W%2FGetChargeback.yaml?alt=media&token=9441540e-e53d-41ac-b0e6-e07684edb20c>" path="/credit/transactions/{transaction\_id}/chargeback/{chargeback\_id}" method="get" %}
[GetChargeback.yaml](https://4215638879-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwXjg7k5gG7wmNiFGOIuw%2Fuploads%2FsqEGAJ2ZDSedYPsjy80W%2FGetChargeback.yaml?alt=media\&token=9441540e-e53d-41ac-b0e6-e07684edb20c)
{% endopenapi %}

{% hint style="info" %}
To see all possible statuses, refer to the [<mark style="color:blue;">**Enumerated**</mark>](https://devcenter.unico.io/unico-idpay/en/integration/apis/enumerated) section.
{% endhint %}

{% hint style="success" %}
To optimize your application's performance, you can also implement our [<mark style="color:blue;">**Webhook**</mark>](https://devcenter.unico.io/unico-idpay/en/integration/webhook) to know when to query the Chargeback status.
{% endhint %}
