# Authorization

The Authorization page of the Inqud Crypto Recurring allows you to view user-approved spending agreements for your plans. An authorization represents the user's agreement to be charged based on the plan's conditions and involves an actual ERC-20 approval transaction made by the user using their Web3 wallet.

### **What is an Authorization?**

An authorization is a user-approved spending agreement for a specific plan. It signifies the user's consent to be charged according to the plan's conditions. This process includes an ERC-20 token approval transaction performed by the user via their Web3 wallet, ensuring secure and verifiable permissions for recurring payments.

{% hint style="info" %}
An authorization is created when a user subscribes to a plan.
{% endhint %}

### Authorization parameters

<table><thead><tr><th>Parameter name</th><th width="249">Description</th><th>Value (example)</th></tr></thead><tbody><tr><td>id</td><td>ID of authorization.</td><td>"AGR-55502ab7-d322-465e-b856-51f0ca077dd2"</td></tr><tr><td>wallet</td><td>Wallet used by user to subscribe.</td><td>0x364371e1fbe635922b0f37d569f8d0e12b122822</td></tr><tr><td>cryptoCurrency</td><td>Blockchain and token approved by user for spending.</td><td>"ETHEREUM_USDT"</td></tr><tr><td>status</td><td>Authorization status.</td><td>GRANTED, REVOKED_BY_MERCHANT</td></tr><tr><td>subscriptionId</td><td>ID of subscription associated with authorization.</td><td>"SUB-df39a8ab-0bbc-464c-acae-c0ce265a4713"</td></tr><tr><td>initApprovalTx</td><td>Transaction hash were user approved tokens spending.</td><td>"0xbd01120e922a778cc2047cf089b4772b0323587eaea4996b6572dedb67f6e52a"</td></tr><tr><td>planId</td><td>ID of plan associated with authorization.</td><td>"PLAN-d5208959-5ced-41c7-9d9e-31923b6a22a6"</td></tr></tbody></table>

### Authorization balance

By clicking on an authorization record, a user can see real-time balance details of the given authorization. This includes:

| Parameter name | Description                                                                  | Value (example) |
| -------------- | ---------------------------------------------------------------------------- | --------------- |
| balance        | The current balance of the user's account associated with the authorization. | 1000            |
| allowance      | The total amount approved for spending under this authorization.             | 500             |
| transferable   | The remaining amount that can be transferred based on the authorization      | 500             |

### Authorization statuses

* **GRANTED**: The authorization is active, allowing payments to be processed according to the specified plan conditions.
* **REVOKED\_BY\_MERCHANT**: The authorization has been canceled by the merchant, and no further payments will be processed.

### Authorization status transitions

<img src="https://2493659114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVvChLJdAqFu9uz7E-7%2Fuploads%2FtnvW9jgE0qbILfMfgNsw%2Ffile.excalidraw.svg?alt=media&#x26;token=5dadcc82-cffe-45cd-b712-dd3d77927232" alt="" class="gitbook-drawing">
