# Create Off Ramp Request

## Create an Off-Ramp Transfer

Initiate a mutation to create off ramp transaction request for approval,  from one of your organization's inabit wallets.

{% hint style="warning" %}
Please note that this feature is permitted **only** for **inabit** **wallets**.
{% endhint %}

```graphql
mutation CreateOfframpTransaction($data: OfframpCreateInput!) {
  createOfframpTransaction(data: $data) {
    id
    status {
      status
    }
    subStatus {
      subStatus
    }
  }
} 
```

### **Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

### Body (<mark style="color:orange;">OfframpCreateInput</mark>) object

| Name                                               | Type    | Description                             |
| -------------------------------------------------- | ------- | --------------------------------------- |
| amount<mark style="color:red;">\*</mark>           | Integer | Transfer Amount (of the financialAsset) |
| walletId<mark style="color:red;">\*</mark>         | String  | Wallet's ID                             |
| financialAssetId<mark style="color:red;">\*</mark> | String  | Financial Asset ID                      |
| blockchainId<mark style="color:red;">\*</mark>     | String  | Blockchain ID                           |
| note                                               | String  | Transaction Note (optional)             |

Example body:

```graphql
{
  "data": {
    "amount": 15000,
    "wallet": {
      "id": "clp5bm4f1002icg01d526dgw9" # inabit wallet iD
    }
    "financialAsset": {
      "id": "clefn78h5012plc6rxbmofnop" # USDT Asset
    },
    "blockchain": {
      "id": "clefn78gv011olc6rcwtt0wel" # Ethereum network
    },
    "note": "Transfer to my bank account" # Optional note of the transaction
  }
}
```

### Response

Return values:

| Name      | Type   | Description             |
| --------- | ------ | ----------------------- |
| id        | String | Off Ramp Transaction ID |
| status    | String | Transaction Status      |
| subStatus | String | Transaction Sub Status  |

{% tabs %}
{% tab title="🟢 Success" %}

```graphql
{
	"data": {
		"CreateOfframpTransaction": {
			"id": "clph3mik5000t8f01qqr0ol71",
			"status": "Processing",
			"subStatus": "Fiat Processing" # crypto was sent, fiat transfer is being processed
		}
	}
}
```

{% endtab %}

{% tab title="🔴 Failure" %}

{% endtab %}
{% endtabs %}

### Try it out!

{% embed url="<https://studio.apollographql.com/sandbox/explorer?endpoint=https://api.inabit.dev/graphql&explorerURLState=N4IgJg9gxgrgtgUwHYBcQC4RxighigSwiQAIBhAJwXwQGUB3XABwAoASMfXdEh5y6igQBJJExwBCAJQlgAHVIkoVGn1ac8PDlxnzFJEgTAKDB3HAgxUJ0wDMECGwYgUwCCgBUAnk0eKAvgr+IAA0IABuuBQEuABGADYIAM4YIHoGcuBcmTzpppnmltYYJAAMAHSlpQCsAIwhTiSZtgRIuEhQMfEAgklJCCg5so0ZIEZDmVCJtkgA7AAcABbVpbUATEzxUABsFAAesRYzEEyZjf4N+k0gSYxMvf0oHhBDeabX4yWT03PzAObhVa1CBbXZQegoFClegIeJnK4XRqZRjxRKDEpvfJjYxfEBTJjVQ4AFlstSqawIUD+qzA1TW2zAf3oAE54e9AgEgqEQItqG4KClMGcQNymBAkihbPECH9FigAPK+Cj4IhIWjKAhMNCYED+IA>" %}
