# Sell Configuration GET https://api-stg.transak.com/metamask/v1/sell-configuration This API provide the details related to supported Off Ramp Fiat currencies, Crypto currency limits and Countries with payment methods. ![Sell config](https://assets.transak.com/doc/Q2xlYW5TaG90IDIwMjUtMDMtMTMgYXQgMTIuMTcuNDFAMngucG5n.png) Reference: https://docs.transak.com/api/metamask-wrapper-api/sell-configuration ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: metamask-api version: 1.0.0 paths: /metamask/v1/sell-configuration: get: operationId: sell-configuration summary: Sell Configuration description: >- This API provide the details related to supported Off Ramp Fiat currencies, Crypto currency limits and Countries with payment methods. ![Sell config](https://assets.transak.com/doc/Q2xlYW5TaG90IDIwMjUtMDMtMTMgYXQgMTIuMTcuNDFAMngucG5n.png) tags: - '' parameters: - name: x-api-key in: header description: Transak API key. Present in dashboard.transak.com required: true schema: type: string default: responses: '200': description: 200 - Success content: application/json: schema: $ref: '#/components/schemas/sell-configuration_Response_200' '400': description: 400 - Bad Request content: application/json: schema: $ref: '#/components/schemas/Sell-configurationRequestBadRequestError' servers: - url: https://api-stg.transak.com - url: https://api.transak.com components: schemas: MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesQuotes: type: object properties: enabled: type: boolean default: true description: Response field `enabled`. required: - enabled description: Response field `quotes`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesQuotes MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthenticationApiKey: type: object properties: locationType: type: string default: HEADER description: Response field `locationType`. location: type: string default: x-api-key description: Response field `location`. required: - locationType - location description: Response field `api_key`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthenticationApiKey MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthentication: type: object properties: scheme: type: string default: API-KEY description: Response field `scheme`. api_key: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthenticationApiKey description: Response field `api_key`. required: - scheme - api_key description: Response field `authentication`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthentication MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderTracking: type: object properties: enabled: type: boolean default: true description: Response field `enabled`. required: - enabled description: Response field `orderTracking`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderTracking MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderAnalytics: type: object properties: enabled: type: boolean default: false description: Response field `enabled`. required: - enabled description: Response field `orderAnalytics`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderAnalytics MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuy: type: object properties: enabled: type: boolean default: true description: Response field `enabled`. authentication: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyAuthentication description: Response field `authentication`. orderTracking: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderTracking description: Response field `orderTracking`. orderAnalytics: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuyOrderAnalytics description: Response field `orderAnalytics`. redirectOrderId: type: array items: type: string default: orderId description: Response field `redirectOrderId`. required: - enabled - authentication - orderTracking - orderAnalytics - redirectOrderId description: Response field `buy`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuy MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeatures: type: object properties: quotes: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesQuotes description: Response field `quotes`. buy: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeaturesBuy description: Response field `buy`. required: - quotes - buy description: Response field `features`. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeatures MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaPaymentsItems: type: object properties: id: type: string default: gbp-bank-transfer description: Response field `id`. required: - id description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaPaymentsItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCountriesItems: type: object properties: id: type: string default: gb description: Response field `id`. states: type: array items: type: string default: us-al description: Response field `states`. required: - id description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCountriesItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsPaymentLimitsItems: type: object properties: id: type: string default: gbp-bank-transfer description: Response field `id`. min: type: string default: '15' description: Response field `min`. max: type: string default: '58010' description: Response field `max`. required: - id - min - max description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsPaymentLimitsItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsUnsupportedItems: type: object properties: feature: type: string default: sell description: Response field `feature`. payment: type: string default: apple-pay description: Response field `payment`. required: - feature - payment description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsUnsupportedItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItems: type: object properties: id: type: string default: GBP description: Response field `id`. paymentLimits: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsPaymentLimitsItems description: Response field `paymentLimits`. unsupported: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItemsUnsupportedItems description: Response field `unsupported`. required: - id - paymentLimits - unsupported description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItemsPayoutLimitsItems: type: object properties: id: type: string default: sepa-bank-transfer description: Response field `id`. min: type: number format: double default: 0.00534965 description: Response field `min`. max: type: number format: double default: 12.33273314 description: Response field `max`. required: - id - min - max description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItemsPayoutLimitsItems MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItems: type: object properties: id: type: string default: ETHethereum description: Response field `id`. address: type: string default: '0x0000000000000000000000000000000000000000' description: Response field `address`. network: type: string default: '1' description: Response field `network`. unsupported: type: array items: description: Any type description: Response field `unsupported`. payoutLimits: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItemsPayoutLimitsItems description: Response field `payoutLimits`. assetId: type: string default: slip44:0 description: Response field `assetId`. required: - id - network - unsupported - payoutLimits description: Response value. title: >- MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItems sell-configuration_Response_200: type: object properties: features: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFeatures description: Response field `features`. payments: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaPaymentsItems description: Response field `payments`. countries: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCountriesItems description: Response field `countries`. fiat: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaFiatItems description: Response field `fiat`. crypto: type: array items: $ref: >- #/components/schemas/MetamaskV1SellConfigurationGetResponsesContentApplicationJsonSchemaCryptoItems description: Response field `crypto`. required: - features - payments - countries - fiat - crypto description: Response value. title: sell-configuration_Response_200 Sell-configurationRequestBadRequestError: type: object properties: error: type: string default: x-api-key is a required argument description: Response field `error`. required: - error description: Response value. title: Sell-configurationRequestBadRequestError ``` ## SDK Code Examples ```python 200 - Success import requests url = "https://api-stg.transak.com/metamask/v1/sell-configuration" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 - Success const url = 'https://api-stg.transak.com/metamask/v1/sell-configuration'; const options = {method: 'GET', headers: {'x-api-key': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 - Success package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api-stg.transak.com/metamask/v1/sell-configuration" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 - Success require 'uri' require 'net/http' url = URI("https://api-stg.transak.com/metamask/v1/sell-configuration") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` ```java 200 - Success import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api-stg.transak.com/metamask/v1/sell-configuration") .header("x-api-key", "") .asString(); ``` ```php 200 - Success request('GET', 'https://api-stg.transak.com/metamask/v1/sell-configuration', [ 'headers' => [ 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp 200 - Success using RestSharp; var client = new RestClient("https://api-stg.transak.com/metamask/v1/sell-configuration"); var request = new RestRequest(Method.GET); request.AddHeader("x-api-key", ""); IRestResponse response = client.Execute(request); ``` ```swift 200 - Success import Foundation let headers = ["x-api-key": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-stg.transak.com/metamask/v1/sell-configuration")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```