> For the complete documentation index, see [llms.txt](https://docs.xy.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xy.finance/bridge-aggregator-integration/xy-finance-api-multiple-bridges-aggregator/get-allowance.md).

# Get Allowance

If source quoting asset is an ERC20 token, you should ensure that source token owner has approved sufficient token amount to spender before proceed swap operation. This endpoint provide convenient way to check ERC20 allowance amount.

{% openapi src="/files/WHsYhaZR0heNBFy7A96c" path="/allowance" method="get" %}
[openapi.json](https://3694085950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mcs9EhDrgbKHodtcAT6%2Fuploads%2FnbSx9SgRqHu6Fj5VWo1E%2Fopenapi.json?alt=media\&token=aa194fc4-5d6d-43c2-b4f2-e972276123f6)
{% endopenapi %}

{% hint style="info" %}
**NOTE :** The spender should be the `contractAddress` in the response of [Get Quote](/bridge-aggregator-integration/xy-finance-api-multiple-bridges-aggregator/get-quote.md).\
e.g. `routes[{ROUTE_INDEX}]["contractAddress"]`
{% endhint %}

{% hint style="info" %}
Here you can find our full [API reference](https://aggregator-api.xy.finance/v1/docs)
{% endhint %}
