{"consumes":["application/json","application/x-www-form-urlencoded"],"definitions":{"AMLRiskLevel":{"default":"Unknown","enum":["Unknown","Low","High"],"type":"string"},"ApiWalletCreateBody":{"example":{"provider":"eth"},"properties":{"address":{"description":"Cold wallet address. Used only with type `cold`","minLength":1,"pattern":"^[a-zA-Z0-9]+$","title":"Address","type":"string"},"provider":{"description":"Cryptocurrency. Allowed codes: eth, btc, bch, ltc, trx, bsc\n\nExample: eth","title":"Provider","type":"string"}},"required":["provider"],"title":"WalletCreateRequest","type":"object"},"ExchangeRateHistoryHistoryRate":{"properties":{"code":{"title":"Cryptocurrency code","type":"string"},"price":{"format":"double","title":"Price","type":"number"},"timestamp":{"format":"date-time","title":"Timestamp","type":"string"}},"type":"object"},"apiHttpBody":{"description":"Message that represents an arbitrary HTTP body. It should only be used for\npayload formats that can't be represented as JSON, such as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming and non-streaming API methods in\nthe request as well as the response.\n\nIt can be used as a top-level request field, which is convenient if one\nwants to extract parameters from either the URL or HTTP template into the\nrequest fields and also want access to the raw HTTP body.\n\nExample:\n\n    message GetResourceRequest {\n      // A unique request id.\n      string request_id = 1;\n\n      // The raw HTTP body is bound to this field.\n      google.api.HttpBody http_body = 2;\n\n    }\n\n    service ResourceService {\n      rpc GetResource(GetResourceRequest)\n        returns (google.api.HttpBody);\n      rpc UpdateResource(google.api.HttpBody)\n        returns (google.protobuf.Empty);\n\n    }\n\nExample with streaming methods:\n\n    service CaldavService {\n      rpc GetCalendar(stream google.api.HttpBody)\n        returns (stream google.api.HttpBody);\n      rpc UpdateCalendar(stream google.api.HttpBody)\n        returns (stream google.api.HttpBody);\n\n    }\n\nUse of this type only changes how the request and response bodies are\nhandled, all other features will continue to work unchanged.","properties":{"contentType":{"description":"The HTTP Content-Type header value specifying the content type of the body.","type":"string"},"data":{"description":"The HTTP request/response body as raw binary.","format":"byte","type":"string"},"extensions":{"description":"Application specific response metadata. Must be set in the first response\nfor streaming APIs.","items":{"$ref":"#/definitions/protobufAny","type":"object"},"type":"array"}},"type":"object"},"protobufAny":{"additionalProperties":{},"description":"`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(\u0026foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := \u0026pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := \u0026pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": \u003cstring\u003e,\n      \"lastName\": \u003cstring\u003e\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }","properties":{"@type":{"description":"A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.","type":"string"}},"type":"object"},"v1AML":{"properties":{"reportUrl":{"type":"string"},"riskLevel":{"$ref":"#/definitions/AMLRiskLevel"}},"type":"object"},"v1Amount":{"properties":{"amount":{"description":"Additional cost amount","title":"Amount","type":"string"},"amountUnit":{"description":"Additional cost amount. Human readable.","title":"Amount unit","type":"string"},"currency":{"description":"Additional cost currency","title":"Currency","type":"string"}},"title":"Amount","type":"object"},"v1ApiKey":{"properties":{"createdAt":{"description":"Creation date","format":"date-time","title":"Created at","type":"string"},"jwtId":{"description":"Unique JWT identifier","title":"JWT ID","type":"string"},"nextRotationAt":{"description":"Next rotation date","format":"date-time","title":"Next rotation at","type":"string"},"rotatedAt":{"description":"Last rotation date. Rotation every 21 days","format":"date-time","title":"Rotated at","type":"string"},"type":{"$ref":"#/definitions/v1MerchantApiKeyType","description":"Key type","title":"Type"},"value":{"description":"Api key value","title":"Value","type":"string"}},"title":"ApiKey","type":"object"},"v1ApiKeys":{"properties":{"keys":{"items":{"$ref":"#/definitions/v1ApiKey","type":"object"},"title":"Api keys list","type":"array"}},"title":"ApiKeys","type":"object"},"v1AuthAccessKey":{"properties":{"access_token":{"title":"Access key","type":"string"},"expires_in":{"format":"int64","title":"Access expiration time","type":"string"},"refresh_expires_in":{"format":"int64","title":"Refresh expiration time","type":"string"},"refresh_token":{"title":"Refresh key","type":"string"},"token_type":{"title":"Token type","type":"string"}},"title":"AuthAccessKey","type":"object"},"v1AuthLevel":{"default":"standard","description":"- standard: Standard level by username/password\n - high: High level with 2fa, hardware tokens, etc","enum":["standard","high"],"title":"AuthLevel","type":"string"},"v1AuthLoginRequest":{"properties":{"authContext":{"type":"string"},"code":{"type":"string"},"redirectUrl":{"type":"string"}},"required":["code","authContext","redirectUrl"],"title":"AuthLoginRequest","type":"object"},"v1AuthRefreshRequest":{"properties":{"refresh_token":{"title":"Refresh token","type":"string"}},"title":"AuthRefreshRequest","type":"object"},"v1AuthRequest":{"properties":{"level":{"$ref":"#/definitions/v1AuthLevel","title":"Auth level"},"redirectUrl":{"title":"Redirect URL","type":"string"}},"required":["redirectUrl","level"],"title":"AuthRequest","type":"object"},"v1AuthUrl":{"properties":{"authUrl":{"type":"string"}},"title":"AuthUrl","type":"object"},"v1Balance":{"properties":{"code":{"description":"Cryptocurrency code: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: usdt","title":"Name","type":"string"},"exchangeRate":{"$ref":"#/definitions/v1ExchangeRate","title":"Exchange rate"},"value":{"description":"Balance amount","title":"Value","type":"string"},"valueUnit":{"description":"Human readable","title":"Value unit","type":"string"}},"title":"Balance","type":"object"},"v1Blockchain":{"properties":{"chainId":{"format":"uint64","type":"string"},"code":{"type":"string"},"minAmount":{"type":"string"},"tokens":{"items":{"$ref":"#/definitions/v1Token","type":"object"},"type":"array"},"unit":{"type":"string"}},"title":"Blockchain","type":"object"},"v1CallbackExampleRequest":{"properties":{"url":{"description":"URL for example request","title":"URL","type":"string"}},"title":"CallbackExampleRequest","type":"object"},"v1Config":{"properties":{"blockchains":{"items":{"$ref":"#/definitions/v1Blockchain","type":"object"},"type":"array"}},"title":"Config","type":"object"},"v1ErrorStatus":{"properties":{"code":{"format":"int32","type":"integer"},"details":{"items":{"$ref":"#/definitions/protobufAny","type":"object"},"type":"array"},"message":{"title":"=","type":"string"}},"title":"ErrorStatus","type":"object"},"v1Exchange":{"properties":{"address":{"description":"Destination address","title":"Address","type":"string"},"amount":{"description":"Final exchange amount.\nThe ~ prefix indicates that this is an estimated value","title":"Amount","type":"string"},"amountUnit":{"description":"Final exchange amount. Human readable.\nThe ~ prefix indicates that this is an estimated value","title":"Amount unit","type":"string"},"code":{"description":"Destination cryptocurrency code","title":"Code","type":"string"},"exchangeRate":{"$ref":"#/definitions/v1ExchangeRate","description":"Exchange rate data","title":"Exchange rate"},"executionTimeForecast":{"description":"Forecast (minutes) of how long it will take to exchange","title":"Execution time forecast","type":"string"},"rate":{"description":"Rate between source and destination currency","title":"Rate","type":"string"},"rateUnit":{"description":"Rate between source and destination currency. Human readable.","title":"Rate unit","type":"string"}},"title":"Exchange","type":"object"},"v1ExchangeAmountCalcBehavior":{"default":"exchange_amount_calc_behavior_direct","description":"- exchange_amount_calc_behavior_direct: Direct\n\nHow much cryptocurrency will the client receive if he sends ${AMOUNT}\n - exchange_amount_calc_behavior_reverse: Reverse\n\nHow many cryptocurrencies need to be sent to receive ${AMOUNT}","enum":["exchange_amount_calc_behavior_direct","exchange_amount_calc_behavior_reverse"],"title":"ExchangeAmountCalcBehavior","type":"string"},"v1ExchangeCreateRequest":{"properties":{"code":{"description":"Cryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: usdt","title":"Code","type":"string"},"destination":{"description":"List of addresses and amounts","items":{"$ref":"#/definitions/v1ExchangeDestination","type":"object"},"title":"Destination","type":"array"},"fromAddress":{"description":"List of merchants wallet addresses with status waiting. Wallets must be of one code and one merchant\nExample: [T111111111111111111111111111111111]","items":{"type":"string"},"title":"From wallet address","type":"array"}},"required":["fromAddress","code"],"title":"ExchangeCreateRequest","type":"object"},"v1ExchangeDestination":{"properties":{"address":{"description":"Destination address","example":"address","minLength":1,"pattern":"^[a-zA-Z0-9]+$","title":"Address","type":"string"},"amount":{"description":"Amount for withdraw. Empty if strategy = withdraw_all","example":1000000,"minLength":1,"pattern":"^[0-9]+$","title":"Amount","type":"string"},"behavior":{"$ref":"#/definitions/v1ExchangeAmountCalcBehavior","description":"How calculate","title":"Behavior"},"code":{"description":"Cryptocurrency code of destination wallet. Used for crypto exchange","title":"Code","type":"string"}},"required":["address","code"],"title":"ExchangeDestination","type":"object"},"v1ExchangeRate":{"properties":{"code":{"description":"Cryptocurrency code: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","title":"Cryptocurrency code","type":"string"},"currency":{"description":"Currency name","title":"Currency","type":"string"},"currencyAmount":{"description":"Multiply exchange rate to cryptocurrency","format":"double","title":"Currency amount","type":"number"},"exchangeRate":{"description":"Exchange rate from currency to crypto","format":"double","title":"Exchange rate","type":"number"}},"title":"ExchangeRate","type":"object"},"v1ExchangeRateEstimateDirection":{"default":"FORWARD","description":"- FORWARD: FORWARD\n\nConvert crypto currency amount to fiat amount\n\nExample:\ndirection = FORWARD\ncurrency = usd\namount = 10000000 (in satoshi, 0.1 btc)\ncode = btc\nFinal amount = 4271.30 (usd dollars)\n - REVERSE: REVERSE\n\nConvert fiat amount to crypt\n\nExample:\ndirection = REVERSE\ncurrency = usd\namount = 4271.30 (usd dollars)\ncode = btc\n\nFinal amount = 10000000 (in satoshi, 0.1 btc)","enum":["FORWARD","REVERSE"],"title":"ExchangeRateEstimateDirection","type":"string"},"v1ExchangeRateEstimateRequest":{"properties":{"amount":{"title":"Amount","type":"string"},"code":{"description":"Cryptocurrency code: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","title":"Cryptocurrency code","type":"string"},"currency":{"description":"Currency name\n\nExample: usd","title":"Currency","type":"string"},"direction":{"$ref":"#/definitions/v1ExchangeRateEstimateDirection","description":"Default: FORWARD","title":"Direction of calculation"}},"required":["currency","amount","code"],"title":"ExchangeRateEstimateRequest","type":"object"},"v1ExchangeRateEstimateResponse":{"properties":{"amount":{"title":"amount","type":"string"},"code":{"description":"Cryptocurrency code: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","title":"Cryptocurrency code","type":"string"},"currency":{"description":"Currency name","title":"Currency","type":"string"},"direction":{"$ref":"#/definitions/v1ExchangeRateEstimateDirection","title":"Direction of calculation"},"exchangeRate":{"description":"Exchange rate from currency to crypto","format":"double","title":"Exchange rate","type":"number"}},"type":"object"},"v1ExchangeRateHistory":{"properties":{"history":{"items":{"$ref":"#/definitions/ExchangeRateHistoryHistoryRate","type":"object"},"type":"array"}},"title":"ExchangeRates","type":"object"},"v1ExchangeRates":{"properties":{"exchangeRates":{"description":"List of exchange rates","items":{"$ref":"#/definitions/v1ExchangeRate","type":"object"},"title":"Exchange rates","type":"array"}},"title":"ExchangeRates","type":"object"},"v1Fiat":{"properties":{"amount":{"description":"Set amount in fiat, like USD","format":"double","title":"Amount","type":"number"},"currency":{"description":"Fiat amount currency. Now supported only USD\n\nDefault: usd","title":"Currency","type":"string"}},"title":"Fiat","type":"object"},"v1IncomingTransaction":{"properties":{"amount":{"description":"Received amount from client","title":"Amount","type":"string"},"amountRequired":{"description":"Merchant transaction required amount.\nExample: 100000","title":"Amount requested","type":"string"},"amountRequiredUnit":{"description":"Merchant transaction required amount. Human readable.\nExample: 0.001","title":"Amount requested unit","type":"string"},"amountUnit":{"description":"Received amount from client. Human readable.\nExample: 0.001\n\n// Fee percent_unit\n  //\n  // Processing fee\n  // Example: 0.001\n  string processing_fee_unit = 19;","title":"Amount unit","type":"string"},"codeRequested":{"description":"Cryptocurrency code requested. Allowed: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","title":"Code requested","type":"string"},"comment":{"title":"Comment","type":"string"},"confirmations":{"description":"Transaction confirmation in blockchain","format":"uint64","title":"Confirmation","type":"string"},"createdAt":{"description":"Transaction creation date. RFC3339 format","format":"date-time","title":"Created at","type":"string"},"exchangeRate":{"$ref":"#/definitions/v1ExchangeRate","description":"Exchange rate data","title":"Exchange rate"},"expiredAt":{"description":"Transaction expiration date. RFC3339 format","format":"date-time","title":"Expiration date","type":"string"},"id":{"description":"Internal ID","title":"ID","type":"string"},"link":{"$ref":"#/definitions/v1Link","title":"Link"},"processingFee":{"description":"Processing fee\nExample: 1000","title":"Fee percent","type":"string"},"processingFeePercent":{"description":"Processing fee in percent\nExample: 1","format":"double","title":"Fee percent","type":"number"},"status":{"$ref":"#/definitions/v1TransactionStatus","description":"Transaction status","title":"Status"},"txHash":{"description":"Transaction hash","title":"Hash","type":"string"},"txId":{"description":"Merchant internal transaction id","format":"uint64","title":"Merchant transaction id","type":"string"},"type":{"$ref":"#/definitions/v1IncomingTransactionType","description":"Transaction type","title":"Type"},"walletAddress":{"description":"Wallet address","title":"Wallet address","type":"string"},"walletType":{"$ref":"#/definitions/v1WalletType","title":"Wallet type"}},"title":"IncomingTransaction","type":"object"},"v1IncomingTransactionType":{"default":"invoice","enum":["invoice","payment_link_invoice","exchange","rotation","operation_deposit","btc_return"],"type":"string"},"v1IncomingTransactions":{"properties":{"total":{"$ref":"#/definitions/v1TotalCount","title":"Total count"},"transactions":{"description":"List of transactions","items":{"$ref":"#/definitions/v1IncomingTransaction","type":"object"},"title":"Transactions","type":"array"}},"title":"IncomingTransactions","type":"object"},"v1InvoiceType":{"default":"invoice_type_default","enum":["invoice_type_default","invoice_type_static","invoice_type_revolver","invoice_type_user"],"title":"InvoiceType","type":"string"},"v1JWK":{"properties":{"e":{"type":"string"},"kid":{"type":"string"},"kty":{"type":"string"},"n":{"type":"string"},"use":{"type":"string"}},"title":"JWK","type":"object"},"v1JWKs":{"properties":{"keys":{"items":{"$ref":"#/definitions/v1JWK","type":"object"},"type":"array"}},"title":"JWKs","type":"object"},"v1Link":{"properties":{"related":{"items":{"$ref":"#/definitions/v1RelatedLink","type":"object"},"type":"array"},"self":{"type":"string"}},"title":"Link","type":"object"},"v1MerchantApiKeyRequest":{"properties":{"redirectUrl":{"type":"string"},"type":{"$ref":"#/definitions/v1MerchantApiKeyType"}},"required":["redirectUrl","type"],"title":"MerchantApiKeyRequest","type":"object"},"v1MerchantApiKeyType":{"default":"api_key_type_default","enum":["api_key_type_default","api_key_type_invoice","api_key_type_withdrawal","api_key_type_invoice_withdrawal"],"title":"MerchantApiKeyType","type":"string"},"v1MerchantPreference":{"properties":{"isDefault":{"title":"Value is default","type":"boolean"},"key":{"title":"Preference key","type":"string"},"updatedAt":{"format":"date-time","title":"Last update date","type":"string"},"value":{"title":"Preference value","type":"string"}},"required":["key","value"],"title":"MerchantPreference","type":"object"},"v1MerchantPreferences":{"properties":{"merchantPreferences":{"items":{"$ref":"#/definitions/v1MerchantPreference","type":"object"},"title":"Preferences list","type":"array"}},"title":"MerchantPreferences","type":"object"},"v1MerchantRestrictions":{"properties":{"allowPaymentLink":{"type":"boolean"}},"type":"object"},"v1MerchantRestrictionsRequest":{"properties":{"geo":{"type":"string"}},"type":"object"},"v1MerchantUpdatePreferenceRequest":{"example":{"preferences":[{"key":"callback-url","value":"https://example.com"}]},"properties":{"preferences":{"items":{"$ref":"#/definitions/v1MerchantPreference","type":"object"},"type":"array"}},"title":"MerchantUpdatePreferenceRequest","type":"object"},"v1OrderDirection":{"default":"desc","enum":["desc","asc"],"title":"OrderDirection","type":"string"},"v1OutgoingDestination":{"properties":{"address":{"description":"Wallet address","title":"Address","type":"string"},"amount":{"description":"Amount","title":"Amount","type":"string"},"amountUnit":{"description":"Withdrawal amount. Human readable.","title":"Amount unit","type":"string"},"exchangeRate":{"$ref":"#/definitions/v1ExchangeRate","description":"Exchange rate data","title":"Exchange rate"},"fee":{"description":"Fee","title":"Fee","type":"string"},"feeCurrency":{"description":"Fee currency\nExample: eth","title":"Fee currency","type":"string"},"feeUnit":{"description":"Transaction fee. Human readable.\nExample: 0.0001","title":"Fee unit","type":"string"}},"title":"OutgoingDestination","type":"object"},"v1OutgoingTransaction":{"properties":{"blockchainAdditionalCost":{"$ref":"#/definitions/v1Amount","title":"Blockchain additional cost"},"code":{"description":"Cryptocurrency code. Allowed: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","title":"Code","type":"string"},"confirmations":{"description":"Transaction confirmation in blockchain","format":"uint64","title":"Confirmation","type":"string"},"createdAt":{"description":"Transaction creation date. RFC3339 format","format":"date-time","title":"Created at","type":"string"},"destination":{"description":"List of destination wallets and amounts","items":{"$ref":"#/definitions/v1OutgoingDestination","type":"object"},"title":"Destination","type":"array"},"exchange":{"$ref":"#/definitions/v1Exchange","description":"Exchange data","title":"Exchange"},"id":{"description":"Internal ID","title":"ID","type":"string"},"link":{"$ref":"#/definitions/v1Link","title":"Link"},"processingAdditionalCost":{"$ref":"#/definitions/v1Amount","title":"Processing additional cost"},"processingFee":{"title":"Processing fee","type":"string"},"status":{"$ref":"#/definitions/v1TransactionStatus","description":"Transaction status","title":"Status"},"transactionSource":{"description":"List of incoming transactions whose funds are involved in the outgoing transaction","items":{"$ref":"#/definitions/v1IncomingTransaction","type":"object"},"title":"Transactions source","type":"array"},"transactionType":{"$ref":"#/definitions/v1TransactionType","title":"Transaction type"},"txHash":{"description":"Transaction hash","title":"Hash","type":"string"},"walletSource":{"description":"List of wallets whose funds are involved in the outgoing transaction","items":{"$ref":"#/definitions/v1Wallet","type":"object"},"title":"Wallet source","type":"array"}},"title":"OutgoingTransaction","type":"object"},"v1OutgoingTransactions":{"properties":{"total":{"$ref":"#/definitions/v1TotalCount","title":"Total count"},"transactions":{"description":"List of transactions","items":{"$ref":"#/definitions/v1OutgoingTransaction","type":"object"},"title":"Transactions","type":"array"}},"title":"OutgoingTransactions","type":"object"},"v1PaymentLink":{"properties":{"amount":{"title":"Crypto amount","type":"string"},"anyAmount":{"title":"Any amount","type":"boolean"},"codes":{"description":"Example: [usdt, eth]","items":{"type":"string"},"title":"Codes\nList of supported cryptocurrency codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","type":"array"},"comment":{"description":"Payment link comment","title":"Comment","type":"string"},"createdAt":{"description":"Creation date","format":"date-time","title":"Created at","type":"string"},"expiredAt":{"description":"Payment link expiration date","format":"date-time","title":"Expiration date","type":"string"},"fiat":{"$ref":"#/definitions/v1Fiat","title":"Fiat amount"},"id":{"title":"ID","type":"string"},"link":{"$ref":"#/definitions/v1Link","title":"Link"},"status":{"$ref":"#/definitions/v1PaymentLinkStatus","title":"Status"},"txId":{"description":"Transaction merchant id","format":"int64","title":"TxID","type":"string"}},"title":"PaymentLink","type":"object"},"v1PaymentLinkCreateRequest":{"example":{"amount":"1000000000000000000","code":["eth"],"txId":"1"},"properties":{"amount":{"description":"Amount in minimal cryptocurrency unit.\nExample: 10000000000000000\n\n1 ETH = 1000000000000000000 wei\n1 BTC = 100000000 satoshi\n1 USDT = 1000000 units","minLength":1,"pattern":"^[0-9]+$","title":"Amount","type":"string"},"code":{"description":"Cryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","items":{"minLength":3,"pattern":"^[a-z0-9_]+$","type":"string"},"title":"List of codes","type":"array"},"comment":{"description":"Payment link comment","maxLength":256,"title":"Comment","type":"string"},"fiat":{"$ref":"#/definitions/v1Fiat","description":"Amount in fiat currency based on exchange rate","pattern":"^[a-zA-Z]+$","title":"Fiat"},"methods":{"description":"List of accepted methods at payment link.\n\nFirst Example: [ONRAMP, DIRECT]\nIn this example at first we will show button \"Pay by card\" and only in second wallet address, qr code and etc.\n\nSecond Example: [ONRAMP]\nWe show only \"Pay by card\" with no mention about crypto\n\nDefault: [DIRECT, ONRAMP]","items":{"$ref":"#/definitions/v1PaymentVendorType"},"title":"Methods","type":"array"},"txId":{"description":"Merchant unique order id (custom transaction id) for internal mapping","format":"uint64","title":"Tx id","type":"string"},"type":{"$ref":"#/definitions/v1InvoiceType","description":"invoice_type_static generate one wallet and rotates by accumulated amount\n\ninvoice_type_revolver generate multiple wallets. Freezes for a while after receiving the amount and show later.\nrotates by accumulated amount\n\ninvoice_type_user generate wallet with txID and always return it by request. wallet is unlimited and client can\ndeposit any amount to wallet\n\nDefault: invoice_type_static","title":"Type"},"urlRedirectFail":{"description":"Url for redirect after failed payment","maxLength":255,"title":"Url redirect fail","type":"string"},"urlRedirectSuccess":{"description":"Url for redirect after success payment","maxLength":255,"title":"Url redirect success","type":"string"},"webhookUrl":{"description":"Invoice comment","title":"Web hook url","type":"string"}},"required":["txId"],"title":"PaymentLinkCreateRequest","type":"object"},"v1PaymentLinkStatus":{"default":"Pending","description":"- Pending: Pending: New transaction, waiting for payment\n - Expired: Expired: Expired payment link\n - Paid: Paid: Transaction completed","enum":["Pending","Expired","Paid"],"title":"PaymentLinkStatus","type":"string"},"v1PaymentLinkVendor":{"description":"Payment link third-party vendor","properties":{"codes":{"description":"Vendors accepted codes","items":{"type":"string"},"title":"Codes","type":"array"},"methods":{"description":"List of vendor methods","items":{"$ref":"#/definitions/v1PaymentVendorMethod","type":"object"},"title":"Methods","type":"array"},"name":{"description":"Vendor name","title":"Name","type":"string"},"type":{"$ref":"#/definitions/v1PaymentVendorType","description":"Vendor type","title":"Type"}},"title":"PaymentLinkVendor","type":"object"},"v1PaymentLinkVendorRequest":{"properties":{"amount":{"description":"Example: usdt","title":"Amount\nCryptocurrency amount","type":"string"},"code":{"description":"Example: usdt","title":"Code\nCryptocurrency code: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb","type":"string"},"fiat":{"$ref":"#/definitions/v1Fiat","title":"Fiat amount"},"geo":{"title":"Geo","type":"string"}},"title":"PaymentLinkVendorRequest","type":"object"},"v1PaymentLinkVendors":{"properties":{"vendors":{"description":"List of vendors","items":{"$ref":"#/definitions/v1PaymentLinkVendor","type":"object"},"title":"Vendors","type":"array"}},"title":"PaymentLinkVendors","type":"object"},"v1PaymentLinks":{"properties":{"links":{"items":{"$ref":"#/definitions/v1PaymentLink","type":"object"},"title":"Payment links","type":"array"},"total":{"$ref":"#/definitions/v1TotalCount","title":"Total count"}},"title":"PaymentLinks","type":"object"},"v1PaymentVendorMethod":{"description":"Payment vendor method","properties":{"currency":{"description":"Method currency","title":"Currency","type":"string"},"link":{"$ref":"#/definitions/v1Link","description":"Link to vendor","title":"Link"},"rate":{"format":"double","title":"Rate","type":"number"},"type":{"description":"Method name","title":"Name","type":"string"}},"title":"PaymentVendorMethod","type":"object"},"v1PaymentVendorType":{"default":"DIRECT","description":"Payment vendor type in payment link\n\n - DIRECT: Direct crypto payment. Include wallet address, QR code, web3 integration\n - ONRAMP: Third party vendor for onramp card payment\n - P2P: P2P payments with local methods (Coming soon)","enum":["DIRECT","ONRAMP","P2P"],"title":"PaymentVendorType","type":"string"},"v1RelatedLink":{"properties":{"href":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"}},"title":"RelatedLink","type":"object"},"v1Token":{"properties":{"address":{"type":"string"},"code":{"type":"string"},"minAmount":{"type":"string"},"unit":{"type":"string"}},"title":"Token","type":"object"},"v1Total":{"properties":{"fee":{"$ref":"#/definitions/v1Amount","description":"Summarize value","title":"Total fee"},"processingAdditionalCost":{"$ref":"#/definitions/v1Amount","description":"Summarize value","title":"Total processing additional cost"}},"type":"object"},"v1TotalBalance":{"properties":{"balance":{"description":"List of wallet balances","items":{"$ref":"#/definitions/v1Balance","type":"object"},"title":"Balance","type":"array"},"code":{"description":"May be different with provider if use ethereum token\n\nExample: usdt","title":"Cryptocurrency code","type":"string"},"provider":{"description":"Cryptocurrency. Allowed codes: eth, btc, bch, ltc, trx, bsc\n\nExample: eth","title":"Provider","type":"string"}},"title":"TotalBalance","type":"object"},"v1TotalBalances":{"properties":{"balances":{"description":"List of total balances by code","items":{"$ref":"#/definitions/v1TotalBalance","type":"object"},"title":"Balances","type":"array"},"total":{"$ref":"#/definitions/v1Fiat","description":"Total balance value at fiat","title":"Total"}},"title":"TotalBalances","type":"object"},"v1TotalCount":{"properties":{"total":{"format":"int64","type":"string"}},"type":"object"},"v1TransactionCreateInvoiceRequest":{"example":{"amount":"1000000000000000000","code":"eth","txId":"1","type":"invoice_type_default"},"properties":{"amount":{"description":"Amount in minimal cryptocurrency unit.\nExample: 10000000000000000\n\n1 ETH = 1000000000000000000 wei\n1 BTC = 100000000 satoshi\n1 USDT = 1000000 units","minLength":1,"pattern":"^[0-9]+$","title":"Amount","type":"string"},"code":{"description":"Cryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","minLength":3,"pattern":"^[a-z0-9_]+$","title":"Code","type":"string"},"comment":{"description":"Invoice comment","maxLength":256,"title":"Comment","type":"string"},"expiredAt":{"description":"Expiration date in RFC3339 format in UTC timezone. Optional. Default expiration time is 30m\nExample: 2023-07-13T13:43:46Z","format":"date-time","title":"Expired At","type":"string"},"fiat":{"$ref":"#/definitions/v1Fiat","description":"Amount in fiat currency based on exchange rate","pattern":"^[a-zA-Z]+$","title":"Fiat"},"txId":{"description":"Merchant unique order id (custom transaction id) for internal mapping","format":"uint64","title":"Tx id","type":"string"},"type":{"$ref":"#/definitions/v1InvoiceType","description":"invoice_type_static generate one wallet and rotates by accumulated amount\n\ninvoice_type_revolver generate multiple wallets. Freezes for a while after receiving the amount and show later.\nrotates by accumulated amount\n\ninvoice_type_user generate wallet with txID and always return it by request. wallet is unlimited and client can\ndeposit any amount to wallet\n\nDefault: invoice_type_static","title":"Type"},"webhookUrl":{"description":"Invoice comment","title":"Web hook url","type":"string"}},"required":["txId","code"],"title":"TransactionCreateInvoiceRequest","type":"object"},"v1TransactionStatus":{"default":"transaction_status_unknown","description":"- transaction_status_pending: Pending\n\nNew transaction\n - transaction_status_sending: Sending\n\nTransaction sending to blockchain\n - transaction_status_waiting: Waiting\n\nTransaction in blockchain, wait confirmation\n - transaction_status_confirmed: Confirmed\n\nTransaction confirmed in blockchain\n - transaction_status_processed: Processed\n\nTransaction processed\n - transaction_status_failed: Failed\n\nTransaction failed in blockchain\n - transaction_status_canceled: Cancelled\n\nTransaction cancelled in processing\n - transaction_status_skipped: Skipped\n\nTransaction processing is skipped\n - transaction_status_dust: Dust\n\nTransaction incoming amount is small. Skip processing\n - transaction_status_processing: Processing\n\nTransaction processing\n - transaction_status_check_required: Check required\n\nNeed some manual check\n - transaction_status_approve_required: Approve required\n\nRequired manual approve for new transactions from merchant\n - transaction_status_refund: Refund\n\nTransaction marked for refund\n - transaction_status_refunded: Refunded\n\nTransaction refunded\n - transaction_status_refunding: Refunding\n\nTransaction in refund process\n - transaction_status_expired: Expired\n\nTransaction expired\n - transaction_status_exchange_waiting: Exchange waiting\n\nExchange waiting receive funds and confirmation from blockchain\n - transaction_status_exchanging: Exchanging\n\nExchanging in progress\n - transaction_status_exchange_sending: Exchange sending\n\nexchange sent exchanged funds to destination wallet\n - transaction_status_exchange_failed: Exchange failed\n\nExchange failed\n - transaction_status_verify_required: Verify required\n\nTransaction paused. Verification required\n - transaction_status_black_listed_sender: Black listed sender\n\nTx received from black listed wallet\n - transaction_status_aml_high_risk: AML high risk\n\nTx received from aml wallet","enum":["transaction_status_unknown","transaction_status_pending","transaction_status_sending","transaction_status_waiting","transaction_status_confirmed","transaction_status_processed","transaction_status_failed","transaction_status_canceled","transaction_status_skipped","transaction_status_dust","transaction_status_processing","transaction_status_check_required","transaction_status_approve_required","transaction_status_refund","transaction_status_refunded","transaction_status_refunding","transaction_status_expired","transaction_status_exchange_waiting","transaction_status_exchanging","transaction_status_exchange_sending","transaction_status_exchange_failed","transaction_status_verify_required","transaction_status_black_listed_sender","transaction_status_aml_high_risk"],"title":"TransactionStatus","type":"string"},"v1TransactionType":{"default":"transaction_type_unknown","enum":["transaction_type_unknown","transaction_type_user","transaction_type_operation","transaction_type_refund","transaction_type_withdraw_processing","transaction_type_withdraw_merchant","transaction_type_exchange","transaction_type_payment_link_invoice","transaction_type_aml"],"title":"TransactionType","type":"string"},"v1TransactionsReportIncomingRequest":{"properties":{"since":{"description":"Filter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","title":"Since","type":"string"},"status":{"description":"Transaction status\n\nExample: pending","items":{"$ref":"#/definitions/v1TransactionStatus"},"title":"TransactionStatus","type":"array"},"until":{"description":"Filter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","title":"Until","type":"string"}},"required":["since","until"],"title":"IncomingReportRequest","type":"object"},"v1Wallet":{"properties":{"address":{"description":"Wallet address","title":"Address","type":"string"},"aml":{"$ref":"#/definitions/v1AML","title":"AML report"},"balance":{"description":"List of wallet balances","items":{"$ref":"#/definitions/v1Balance","type":"object"},"title":"Balance","type":"array"},"code":{"description":"May be different with provider if use ethereum token\n\nExample: usdt","title":"Cryptocurrency code","type":"string"},"createdAt":{"description":"Creation date","format":"date-time","title":"Created at","type":"string"},"id":{"description":"Internal ID","title":"ID","type":"string"},"isDeleted":{"title":"Wallet is deleted","type":"boolean"},"link":{"$ref":"#/definitions/v1Link","title":"Links"},"provider":{"description":"Cryptocurrency. Allowed codes: eth, btc, bch, ltc, trx, bsc\n\nExample: eth","title":"Provider","type":"string"},"status":{"$ref":"#/definitions/v1WalletStatus","description":"Wallet status","title":"Status"},"type":{"$ref":"#/definitions/v1WalletType","description":"Wallet ype","title":"Type"}},"title":"Wallet","type":"object"},"v1WalletStatus":{"default":"wallet_status_unknown","enum":["wallet_status_unknown","wallet_status_pending","wallet_status_waiting","wallet_status_processed","wallet_status_expired","wallet_status_check_required","wallet_status_withdrawn","wallet_status_withdrawing_in_process","wallet_status_approve_required","wallet_status_refund","wallet_status_refunding","wallet_status_refunded","wallet_status_awaiting_withdrawal","wallet_status_dumped","wallet_status_revolve","wallet_status_black_listed_sender","wallet_status_aml_high_risk","wallet_status_aml_required"],"title":"WalletStatus","type":"string"},"v1WalletType":{"default":"wallet_type_unknown","enum":["wallet_type_unknown","wallet_type_operation","wallet_type_user","wallet_type_invoice","wallet_type_cold","wallet_type_black_list"],"title":"WalletType","type":"string"},"v1Wallets":{"properties":{"total":{"$ref":"#/definitions/v1TotalCount","title":"Total count"},"wallets":{"description":"List of wallets","items":{"$ref":"#/definitions/v1Wallet","type":"object"},"title":"Wallets","type":"array"}},"title":"Wallets","type":"object"},"v1Withdrawal":{"properties":{"currency":{"description":"Amount currency","title":"Currency","type":"string"},"exchange":{"$ref":"#/definitions/v1Exchange","description":"Exchange info","title":"Exchange"},"fee":{"description":"Blockchain fee","title":"Fee","type":"string"},"feeCurrency":{"description":"Fee currency\nExample: eth","title":"Fee currency","type":"string"},"feeExchangeRate":{"$ref":"#/definitions/v1ExchangeRate","title":"Fee exchange rate"},"feeUnit":{"description":"Transaction fee. Human readable.\nExample: 0.0001","title":"Fee unit","type":"string"},"processingAdditionalCost":{"$ref":"#/definitions/v1Amount","description":"Additional cost for withdrawal","title":"Processing additional cost"},"txHash":{"description":"Transaction hash","title":"Hash","type":"string"},"withdrawalAddresses":{"items":{"$ref":"#/definitions/v1WithdrawalAddress","type":"object"},"title":"Withdrawal addresses with amount","type":"array"}},"title":"Withdrawal","type":"object"},"v1WithdrawalAddress":{"properties":{"address":{"description":"Destination address","title":"Address","type":"string"},"amount":{"description":"Withdrawal amount","title":"Amount","type":"string"},"amountUnit":{"description":"Withdrawal amount. Human readable.","title":"Amount unit","type":"string"},"code":{"description":"Cryptocurrency code","title":"Code","type":"string"},"exchangeRate":{"$ref":"#/definitions/v1ExchangeRate","title":"Exchange rate"}},"title":"WithdrawalAddress","type":"object"},"v1WithdrawalBehavior":{"default":"unknown","description":"- fee_from_rest_amount: Take a network fee from the rest amount\n - fee_from_amount: Take a network fee from withdrawal amount\n - withdraw_all: Withdraw all funds","enum":["fee_from_rest_amount","fee_from_amount","withdraw_all"],"title":"WithdrawalBehavior","type":"string"},"v1WithdrawalCreateRequest":{"example":{"code":"string","destination":[{"address":"address","amount":"1000000","behavior":"fee_from_rest_amount"}],"fromAddress":["string"]},"properties":{"code":{"description":"Cryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: usdt","title":"Code","type":"string"},"destination":{"description":"List of addresses and amounts","items":{"$ref":"#/definitions/v1WithdrawalDestination","type":"object"},"title":"Destination","type":"array"},"fromAddress":{"description":"List of merchants wallet addresses with status waiting. Wallets must be of one code and one merchant\nExample: [n1FgCvGuVKznM8ezByK8AdysqYwPCF8XKC 2NFABrcHC2pKwuPRhdfEQVtdicw4jTi1PEy]","items":{"type":"string"},"title":"From wallet address","type":"array"}},"required":["fromAddress","code"],"title":"WithdrawalCreateRequest","type":"object"},"v1WithdrawalDestination":{"properties":{"address":{"description":"Destination address","example":"address","minLength":1,"pattern":"^[a-zA-Z0-9]+$","title":"Address","type":"string"},"amount":{"description":"Amount for withdraw. Empty if behavior = withdraw_all","example":1000000,"minLength":1,"pattern":"^[0-9]+$","title":"Amount","type":"string"},"behavior":{"$ref":"#/definitions/v1WithdrawalBehavior","description":"Working only with operation (xamax) wallet. Default: fee_from_rest_amount","title":"Withdrawal behavior"},"fiat":{"$ref":"#/definitions/v1Fiat","title":"Set amount in fiat"}},"required":["address"],"title":"WithdrawalDestination","type":"object"},"v1Withdrawals":{"properties":{"total":{"$ref":"#/definitions/v1Total","title":"Total"},"withdrawals":{"items":{"$ref":"#/definitions/v1Withdrawal","type":"object"},"title":"Withdrawals","type":"array"}},"title":"Withdrawals","type":"object"}},"externalDocs":{"description":"Documentation","url":"https://xamax.io/docs/first-steps/authentication-and-authorization"},"info":{"title":"Xamax","version":"v1"},"paths":{"/.config/processing.json":{"get":{"description":"Return processing service config","operationId":"Api_ConfigGet","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"blockchains":[{"code":"eth","tokens":[{"code":"usdt","unit":"1000000"}],"unit":"1000000000000000000"},{"code":"btc","tokens":[],"unit":"100000000"},{"code":"bch","tokens":[],"unit":"100000000"},{"code":"ltc","tokens":[],"unit":"100000000"},{"code":"qtum","tokens":[],"unit":"100000000"},{"code":"zec","tokens":[],"unit":"100000000"}]}},"schema":{"$ref":"#/definitions/v1Config"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Api"]}},"/.well-known/jwks.json":{"get":{"description":"JWKS keys for validation processing callback","externalDocs":{"description":"More about transaction confirmation and callback processing","url":"https://xamax.io/docs/crypto-processing/transaction-confirmation-and-callback-processing"},"operationId":"Api_JWKsGet","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"keys":[{"e":"AQAB","kid":"fdcb1...","kty":"RSA","n":"6Waooc1gd2d....","use":"sig"}]}},"schema":{"$ref":"#/definitions/v1JWKs"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Api"]}},"/v1/auth":{"post":{"description":"Request login URL","operationId":"Api_AuthUrlRequest","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1AuthRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"auth_url":"https://auth.xamax.iohttps://auth.crypto-bb.gglx.me/auth/realms/xamax/protocol/openid-connect/auth?response_type=code\u0026client_id=example\u0026redirect_uri=https%3A%2F%2Fexample.com%2Foauth2-redirect.html\u0026state=KDxmVFTsGItM3jbjTlfMCDjS1rbo5E0WkVmWsRpFD5HvYMnmDBrY3ex2xkw4kDLYvciJTkdSsgeV"}},"schema":{"$ref":"#/definitions/v1AuthUrl"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Authentication"]},"put":{"description":"Login by code","operationId":"Api_AuthLogin","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1AuthLoginRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"access_token":"eyJhbGciO...","expires_in":300,"refresh_expires_in":0,"refresh_token":"eyJhbGciOiJIUzI1N...","token_type":"Bearer"}},"schema":{"$ref":"#/definitions/v1AuthAccessKey"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Authentication"]}},"/v1/auth/logout":{"post":{"consumes":["application/x-www-form-urlencoded"],"description":"User logout","operationId":"Api_AuthLogout","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1AuthRefreshRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Authentication"]}},"/v1/auth/refresh":{"post":{"consumes":["application/x-www-form-urlencoded"],"description":"Refresh token","operationId":"Api_AuthRefresh","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1AuthRefreshRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"access_token":"eyJhbGciO...","expires_in":300,"refresh_expires_in":0,"refresh_token":"eyJhbGciOiJIUzI1N...","token_type":"Bearer"}},"schema":{"$ref":"#/definitions/v1AuthAccessKey"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Authentication"]}},"/v1/callback/example":{"post":{"description":"Send example callback","operationId":"Api_CallbackExample","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1CallbackExampleRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Callback"]}},"/v1/callback/{id}/resend":{"put":{"description":"Resend callback by transaction internal ID","operationId":"Api_CallbackResend","parameters":[{"description":"ID\n\nTransaction internal ID","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Callback"]}},"/v1/exchange":{"post":{"description":"Exchange cryptocurrency between wallets","operationId":"Api_ExchangeCreate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1ExchangeCreateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"withdrawals":[{"currency":"trx","exchange":{"address":"T111111111111111111111111111111111","amount":"5987603","amountUnit":"5.987603","code":"usdt_trc20","executionTimeForecast":"60"},"fee":"0","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0,"exchangeRate":0.065},"feeUnit":"0","txHash":"1010101010101010101010101010101010101010101010101010101010101010","withdrawalAddresses":[{"address":"exchange","amount":"100000000","amountUnit":"100.00","code":"trx"}]}]}},"schema":{"$ref":"#/definitions/v1Withdrawals"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"429":{"description":"Client have transaction with status sending. Please wait confirmation","examples":{"application/json":{"code":8,"details":[],"message":"wallet have transaction with status 'sending', please wait until the status changes to 'waiting' with confirmation greater than 0"}},"schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Exchange"]}},"/v1/exchange/estimate":{"post":{"description":"Estimate exchange cryptocurrency between wallets","operationId":"Api_ExchangeEstimate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1ExchangeCreateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"withdrawals":[{"currency":"trx","exchange":{"address":"T111111111111111111111111111111111","amount":"5987603","amountUnit":"5.987603","code":"usdt_trc20","executionTimeForecast":"60"},"fee":"0","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0,"exchangeRate":0.065},"feeUnit":"0","txHash":"1010101010101010101010101010101010101010101010101010101010101010","withdrawalAddresses":[{"address":"exchange","amount":"100000000","amountUnit":"100.00","code":"trx"}]}]}},"schema":{"$ref":"#/definitions/v1Withdrawals"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"429":{"description":"Client have transaction with status sending. Please wait confirmation","examples":{"application/json":{"code":8,"details":[],"message":"wallet have transaction with status 'sending', please wait until the status changes to 'waiting' with confirmation greater than 0"}},"schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Exchange"]}},"/v1/exchangerate":{"get":{"description":"Receive list of exchange rates","operationId":"Api_ExchangeRateList","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"exchangeRates":[{"code":"BTC","currency":"usd","currencyAmount":0,"exchangeRate":0.6275402802286509}]}},"schema":{"$ref":"#/definitions/v1ExchangeRates"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Exchange rate"]}},"/v1/exchangerate/estimate":{"post":{"description":"Estimate exchange rate by amount","operationId":"Api_ExchangeRateEstimate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1ExchangeRateEstimateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"code":"BTC","currency":"usd","currencyAmount":0,"exchangeRate":0.6275402802286509}},"schema":{"$ref":"#/definitions/v1ExchangeRates"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Exchange rate"]}},"/v1/exchangerate/history":{"get":{"description":"Receive history of exchange rates","operationId":"Api_ExchangeRateHistoryList","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"history":[{"code":"usdt","price":1.001621672,"timestamp":"2024-02-16T16:17:09.701895Z"},{"code":"usdt","price":1.0068630208,"timestamp":"2024-02-16T16:12:09.701905Z"}]}},"schema":{"$ref":"#/definitions/v1ExchangeRateHistory"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Exchange rate"]}},"/v1/merchant/keys":{"get":{"description":"Return api keys","operationId":"Api_MerchantListApiKey","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"keys":[{"createdAt":"2023-03-21T17:59:11Z","jwtId":"7f00ad8a-3521-4eae-a396-b57e97630b90","nextRotationAt":"2023-04-13T16:11:14Z","rotatedAt":"2023-03-23T16:11:14Z","value":"eyJhbGciOiJIUzI1NiIsInR5cCIgOi..."}]}},"schema":{"$ref":"#/definitions/v1ApiKeys"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]},"post":{"description":"Request for creation new api key","operationId":"Api_MerchantRequestApiKey","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1MerchantApiKeyRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"auth_url":"https://auth.xamax.iohttps://auth.crypto-bb.gglx.me/auth/realms/xamax/protocol/openid-connect/auth?response_type=code\u0026client_id=example\u0026redirect_uri=https%3A%2F%2Fexample.com%2Foauth2-redirect.html\u0026state=KDxmVFTsGItM3jbjTlfMCDjS1rbo5E0WkVmWsRpFD5HvYMnmDBrY3ex2xkw4kDLYvciJTkdSsgeV"}},"schema":{"$ref":"#/definitions/v1AuthUrl"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]},"put":{"description":"Request for creation new api key","operationId":"Api_MerchantCreateApiKey","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1AuthLoginRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"createdAt":null,"jwtId":"7f00ad8a-3521-4eae-a396-b57e97630b90","nextRotationAt":null,"rotatedAt":null,"value":"eyJhbGciOiJIUzI1NiIsInR5cC..."}},"schema":{"$ref":"#/definitions/v1ApiKey"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]}},"/v1/merchant/preferences":{"get":{"description":"Return merchant preferences list","operationId":"Api_MerchantListPreferences","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"merchantPreferences":[{"isDefault":false,"key":"callback-url","updatedAt":"2022-11-03T20:13:07Z","value":"https://example.com"}]}},"schema":{"$ref":"#/definitions/v1MerchantPreferences"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]},"patch":{"description":"Update merchant preferences by key","operationId":"Api_MerchantUpdatePreferences","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1MerchantUpdatePreferenceRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]}},"/v1/merchant/preferences/{key}":{"delete":{"description":"Reset preferences to default","operationId":"Api_MerchantDeletePreferences","parameters":[{"description":"Preference key\n\nkey list you can receive from preference list\n\nexample: callback-url","in":"path","name":"key","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]}},"/v1/merchant/restrictions":{"post":{"description":"Merchants restrictions","operationId":"Api_MerchantsGetRestrictions","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1MerchantRestrictionsRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"allowPaymentLink":true}},"schema":{"$ref":"#/definitions/v1MerchantRestrictions"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Merchant"]}},"/v1/payment-link":{"get":{"description":"Get list of payment link","operationId":"Api_PaymentLinkList","parameters":[{"description":"Page\n\nPagination cursor","in":"query","name":"page","required":false,"type":"string"},{"collectionFormat":"multi","description":"Status\n\nPayment link status\n\n - Pending: Pending: New transaction, waiting for payment\n - Expired: Expired: Expired payment link\n - Paid: Paid: Transaction completed","in":"query","items":{"enum":["Pending","Expired","Paid"],"type":"string"},"name":"status","required":false,"type":"array"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"links":[{"amount":"1000000000","codes":["usdt"],"createdAt":"2024-02-12T00:00:00Z","expiredAt":"2024-02-13T00:00:00Z","id":"WjU9GDKagD-YfK2GVxdOd7k4cOIfHfmgWG3EflLiP6Y","link":{"related":[{"href":"/v1/transaction/incoming/10","name":"incoming_transaction","title":"Incoming transaction"}],"self":"http://example.com"},"status":"Paid","txId":"10"}]}},"schema":{"$ref":"#/definitions/v1PaymentLinks"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Payment link"]},"post":{"description":"Create payment link","operationId":"Api_PaymentLinkCreate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1PaymentLinkCreateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"href":"https://example.com/token","name":"payment_link","title":"Payment link"}},"schema":{"$ref":"#/definitions/v1IncomingTransaction"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Payment link"]}},"/v1/payment-link/vendors":{"post":{"description":"Get third-party vendor list for payment link","operationId":"Api_PaymentLinkVendorsAccepted","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1PaymentLinkVendorRequest"}},{"description":"Authorization header","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"vendors":[{"codes":["usdt_trc20","usdt","eth","trx"],"methods":[{"currency":"EUR","link":{"related":[{"href":"http://example.com/onramp/html","name":"onramp_link","title":""}],"self":"http://example.com/onramp/xama.json"},"rate":0.5,"type":"card"}],"name":"dummy","type":"ONRAMP"}]}},"schema":{"$ref":"#/definitions/v1PaymentLinkVendors"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"security":[],"tags":["Payment link"]}},"/v1/payment-link/{id}":{"get":{"description":"Get payment link details","operationId":"Api_PaymentLinkGet","parameters":[{"description":"Page\n\nPagination cursor","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"amount":"1000000000","codes":["usdt"],"createdAt":"2024-02-12T00:00:00Z","expiredAt":"2024-02-13T00:00:00Z","id":"WjU9GDKagD-YfK2GVxdOd7k4cOIfHfmgWG3EflLiP6Y","link":{"related":[{"href":"/v1/transaction/incoming/10","name":"incoming_transaction","title":"Incoming transaction"}],"self":"http://example.com"},"status":"Paid","txId":"10"}},"schema":{"$ref":"#/definitions/v1PaymentLink"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Payment link"]}},"/v1/transaction/incoming/{idOrTxHash}":{"get":{"description":"Return incoming transaction by ID","operationId":"Api_TransactionIncoming","parameters":[{"description":"Transaction hash or internal ID","in":"path","name":"idOrTxHash","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"amount":"13960716","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"trx","confirmations":"0","createdAt":"2023-04-13T16:11:08Z","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":4.19835899,"exchangeRate":0.3007266236133701},"expiredAt":"0001-01-01T00:00:00Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/wallet/T000000000000000000000000000000000","name":"wallet","title":"Wallet"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/approve","name":"incoming_transaction_approve","title":"Incoming transaction approve"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/refund","name":"incoming_transaction_refund","title":"Incoming transaction refund"}],"self":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000"},"processingFeePercent":0,"processingFeeUnit":"0","status":"transaction_status_approve_required","txHash":"0000000000000000000000000000000000000000000000000000000000000000","txId":"0","walletAddress":"T000000000000000000000000000000000"}},"schema":{"$ref":"#/definitions/v1IncomingTransaction"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transaction/incoming/{txHash}/approve":{"patch":{"description":"Approve process transaction with status approve_required","operationId":"Api_TransactionApprove","parameters":[{"description":"Transaction hash\n\nTransaction hash from blockchain\n\nExample: 0x5bf2671568086b7703386f7985a324781eb4540a27e08b4fc4bcb7b40471c2ca","in":"path","name":"txHash","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transaction/invoice":{"post":{"description":"Create wallet and transaction request for client with unique amount.","externalDocs":{"description":"More about acceptance of payments","url":"https://xamax.io/docs/crypto-processing/invoice"},"operationId":"Api_TransactionCreateInvoice","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1TransactionCreateInvoiceRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"amount":"","amountRequired":"15000000","amountRequiredUnit":"15","codeRequested":"trx","confirmations":"0","createdAt":"2023-04-13T18:03:39.586964Z","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":11.373099751904865,"exchangeRate":0.7582066501269911},"expiredAt":"2023-04-13T18:03:39.586964Z","id":"Pzb3fLj3fogVM_o7b62Rg1tYzLKxfgs7BEJqnCQIFzA","link":null,"processingFeePercent":1,"processingFeeUnit":"150000","status":"transaction_status_pending","txHash":"","txId":"367","walletAddress":"T000000000000000000000000000000000"}},"schema":{"$ref":"#/definitions/v1IncomingTransaction"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transaction/outgoing/{idOrTxHash}":{"get":{"description":"Return withdrawal transaction","operationId":"Api_TransactionOutgoing","parameters":[{"description":"Transaction hash or internal ID","in":"path","name":"idOrTxHash","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"blockchainAdditionalCost":null,"code":"eth","confirmations":"6","createdAt":"2023-03-17T16:21:34Z","destination":[{"address":"0x0202020202020202020202020202020202020202","amount":"108039878060709000","amountUnit":"0,10803988","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0,"exchangeRate":0},"fee":"389369186325000","feeCurrency":"eth","feeUnit":"0,00038937"}],"id":"7U_lS98iy6yE-2i6StIuzHv0IHR4ks196O41DXCzVtA","link":{"related":[],"self":"/v1/transaction/outgoing/0x0000000000000000000000000000000000000000000000000000000000000000"},"processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"processingFee":"810630873675000","status":"transaction_status_confirmed","transactionSource":[{"amount":"50000001000000000","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"eth","confirmations":"7","createdAt":"2023-03-17T08:36:10Z","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0.03551174,"exchangeRate":0.7102347887185954},"expiredAt":"0001-01-01T00:00:00Z","id":"LRpnN_NSnNr5lZiJkyHpo-E3lyw5EWepZLsXeprybqs","link":{"related":[{"href":"/v1/wallet/0x0101010101010101010101010101010101010101","name":"wallet","title":"Wallet"}],"self":"/v1/transaction/incoming/0x1111111111111111111111111111111111111111111111111111111111111111"},"processingFeePercent":1,"processingFeeUnit":"500000010000000","status":"transaction_status_processed","txHash":"0x1111111111111111111111111111111111111111111111111111111111111111","txId":"0","walletAddress":"0x0101010101010101010101010101010101010101"}],"txHash":"0x0000000000000000000000000000000000000000000000000000000000000000","walletSource":[{"address":"0x0101010101010101010101010101010101010101","balance":[{"code":"eth","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0,"exchangeRate":0.08523879661627065},"value":"0"},{"code":"usdt","exchangeRate":{"code":"usdt","currency":"usd","currencyAmount":0,"exchangeRate":0.014280602450680968},"value":"0"}],"code":"eth","createdAt":"2022-12-15T16:23:12Z","id":"p8K7HCc5spZTcTOCwj0tTjA9_MqR6wUcMtqPbSwWM3o","link":{"related":[{"href":"/v1/transactions/incoming/wallet/0x0101010101010101010101010101010101010101","name":"incoming_transactions","title":"Incoming transactions"}],"self":"/v1/wallet/0x0101010101010101010101010101010101010101"},"provider":"eth","status":"wallet_status_withdrawn","type":"wallet_type_invoice"}]}},"schema":{"$ref":"#/definitions/v1OutgoingTransaction"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transactions/incoming":{"get":{"description":"Return incoming transaction list","operationId":"Api_TransactionListIncoming","parameters":[{"description":"Wallet address\n\nWallet address which we want receive transaction list\n\nExample: 0x16dA31C61aD1DACb97936A77530765b464f0F963","in":"query","name":"walletAddress","pattern":"^[a-zA-Z0-9]+$","required":false,"type":"string"},{"collectionFormat":"multi","description":"TransactionStatus\n\nTransaction status\n\nExample: pending\n\n - transaction_status_pending: Pending\n\nNew transaction\n - transaction_status_sending: Sending\n\nTransaction sending to blockchain\n - transaction_status_waiting: Waiting\n\nTransaction in blockchain, wait confirmation\n - transaction_status_confirmed: Confirmed\n\nTransaction confirmed in blockchain\n - transaction_status_processed: Processed\n\nTransaction processed\n - transaction_status_failed: Failed\n\nTransaction failed in blockchain\n - transaction_status_canceled: Cancelled\n\nTransaction cancelled in processing\n - transaction_status_skipped: Skipped\n\nTransaction processing is skipped\n - transaction_status_dust: Dust\n\nTransaction incoming amount is small. Skip processing\n - transaction_status_processing: Processing\n\nTransaction processing\n - transaction_status_check_required: Check required\n\nNeed some manual check\n - transaction_status_approve_required: Approve required\n\nRequired manual approve for new transactions from merchant\n - transaction_status_refund: Refund\n\nTransaction marked for refund\n - transaction_status_refunded: Refunded\n\nTransaction refunded\n - transaction_status_refunding: Refunding\n\nTransaction in refund process\n - transaction_status_expired: Expired\n\nTransaction expired\n - transaction_status_exchange_waiting: Exchange waiting\n\nExchange waiting receive funds and confirmation from blockchain\n - transaction_status_exchanging: Exchanging\n\nExchanging in progress\n - transaction_status_exchange_sending: Exchange sending\n\nexchange sent exchanged funds to destination wallet\n - transaction_status_exchange_failed: Exchange failed\n\nExchange failed\n - transaction_status_verify_required: Verify required\n\nTransaction paused. Verification required\n - transaction_status_black_listed_sender: Black listed sender\n\nTx received from black listed wallet\n - transaction_status_aml_high_risk: AML high risk\n\nTx received from aml wallet","in":"query","items":{"enum":["transaction_status_unknown","transaction_status_pending","transaction_status_sending","transaction_status_waiting","transaction_status_confirmed","transaction_status_processed","transaction_status_failed","transaction_status_canceled","transaction_status_skipped","transaction_status_dust","transaction_status_processing","transaction_status_check_required","transaction_status_approve_required","transaction_status_refund","transaction_status_refunded","transaction_status_refunding","transaction_status_expired","transaction_status_exchange_waiting","transaction_status_exchanging","transaction_status_exchange_sending","transaction_status_exchange_failed","transaction_status_verify_required","transaction_status_black_listed_sender","transaction_status_aml_high_risk"],"type":"string"},"name":"status","required":false,"type":"array"},{"description":"Code\n\nCryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","in":"query","name":"code","required":false,"type":"string"},{"description":"Page\n\nCursor for pagination","in":"query","name":"page","required":false,"type":"string"},{"description":"Order\n\nOrder by. Allowed order: id, status, created_at\nDefault: id","in":"query","name":"order","required":false,"type":"string"},{"default":"desc","description":"Order direction\n\nOrder direction. Allowed direction: asc, desc","enum":["desc","asc"],"in":"query","name":"orderDirection","required":false,"type":"string"},{"description":"Since\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"since","required":false,"type":"string"},{"description":"Until\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"until","required":false,"type":"string"},{"description":"Transaction hash or internal ID\n\nMerchant tx id, internal id or hash","in":"query","name":"idOrTxHash","required":false,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"transactions":[{"amount":"13960716","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"trx","confirmations":"0","createdAt":"2023-04-13T16:11:08Z","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":4.19835899,"exchangeRate":0.3007266236133701},"expiredAt":"0001-01-01T00:00:00Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/wallet/T000000000000000000000000000000000","name":"wallet","title":"Wallet"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/approve","name":"incoming_transaction_approve","title":"Incoming transaction approve"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/refund","name":"incoming_transaction_refund","title":"Incoming transaction refund"}],"self":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000"},"processingFeePercent":0,"processingFeeUnit":"0","status":"transaction_status_approve_required","txHash":"0000000000000000000000000000000000000000000000000000000000000000","txId":"0","walletAddress":"T000000000000000000000000000000000"}]}},"headers":{"Link":{"description":"For page navigation use web linking (https://www.rfc-editor.org/rfc/rfc5988)","type":"string"}},"schema":{"$ref":"#/definitions/v1IncomingTransactions"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transactions/incoming/report":{"post":{"description":"Incoming transaction report","operationId":"Api_TransactionsReportIncoming","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1TransactionsReportIncomingRequest"}}],"produces":["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],"responses":{"200":{"description":"A successful response.","schema":{"format":"binary","type":"string"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transactions/incoming/status/{status}":{"get":{"description":"Return incoming transaction list","operationId":"Api_TransactionListIncoming2","parameters":[{"collectionFormat":"csv","description":"TransactionStatus\n\nTransaction status\n\nExample: pending","in":"path","items":{"enum":["transaction_status_unknown","transaction_status_pending","transaction_status_sending","transaction_status_waiting","transaction_status_confirmed","transaction_status_processed","transaction_status_failed","transaction_status_canceled","transaction_status_skipped","transaction_status_dust","transaction_status_processing","transaction_status_check_required","transaction_status_approve_required","transaction_status_refund","transaction_status_refunded","transaction_status_refunding","transaction_status_expired","transaction_status_exchange_waiting","transaction_status_exchanging","transaction_status_exchange_sending","transaction_status_exchange_failed","transaction_status_verify_required","transaction_status_black_listed_sender","transaction_status_aml_high_risk"],"type":"string"},"minItems":1,"name":"status","required":true,"type":"array"},{"description":"Wallet address\n\nWallet address which we want receive transaction list\n\nExample: 0x16dA31C61aD1DACb97936A77530765b464f0F963","in":"query","name":"walletAddress","pattern":"^[a-zA-Z0-9]+$","required":false,"type":"string"},{"description":"Code\n\nCryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","in":"query","name":"code","required":false,"type":"string"},{"description":"Page\n\nCursor for pagination","in":"query","name":"page","required":false,"type":"string"},{"description":"Order\n\nOrder by. Allowed order: id, status, created_at\nDefault: id","in":"query","name":"order","required":false,"type":"string"},{"default":"desc","description":"Order direction\n\nOrder direction. Allowed direction: asc, desc","enum":["desc","asc"],"in":"query","name":"orderDirection","required":false,"type":"string"},{"description":"Since\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"since","required":false,"type":"string"},{"description":"Until\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"until","required":false,"type":"string"},{"description":"Transaction hash or internal ID\n\nMerchant tx id, internal id or hash","in":"query","name":"idOrTxHash","required":false,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"transactions":[{"amount":"13960716","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"trx","confirmations":"0","createdAt":"2023-04-13T16:11:08Z","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":4.19835899,"exchangeRate":0.3007266236133701},"expiredAt":"0001-01-01T00:00:00Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/wallet/T000000000000000000000000000000000","name":"wallet","title":"Wallet"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/approve","name":"incoming_transaction_approve","title":"Incoming transaction approve"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/refund","name":"incoming_transaction_refund","title":"Incoming transaction refund"}],"self":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000"},"processingFeePercent":0,"processingFeeUnit":"0","status":"transaction_status_approve_required","txHash":"0000000000000000000000000000000000000000000000000000000000000000","txId":"0","walletAddress":"T000000000000000000000000000000000"}]}},"headers":{"Link":{"description":"For page navigation use web linking (https://www.rfc-editor.org/rfc/rfc5988)","type":"string"}},"schema":{"$ref":"#/definitions/v1IncomingTransactions"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transactions/incoming/wallet/{walletAddress}":{"get":{"description":"Return incoming transaction list","operationId":"Api_TransactionListIncoming3","parameters":[{"description":"Wallet address\n\nWallet address which we want receive transaction list\n\nExample: 0x16dA31C61aD1DACb97936A77530765b464f0F963","in":"path","name":"walletAddress","required":true,"type":"string"},{"collectionFormat":"multi","description":"TransactionStatus\n\nTransaction status\n\nExample: pending\n\n - transaction_status_pending: Pending\n\nNew transaction\n - transaction_status_sending: Sending\n\nTransaction sending to blockchain\n - transaction_status_waiting: Waiting\n\nTransaction in blockchain, wait confirmation\n - transaction_status_confirmed: Confirmed\n\nTransaction confirmed in blockchain\n - transaction_status_processed: Processed\n\nTransaction processed\n - transaction_status_failed: Failed\n\nTransaction failed in blockchain\n - transaction_status_canceled: Cancelled\n\nTransaction cancelled in processing\n - transaction_status_skipped: Skipped\n\nTransaction processing is skipped\n - transaction_status_dust: Dust\n\nTransaction incoming amount is small. Skip processing\n - transaction_status_processing: Processing\n\nTransaction processing\n - transaction_status_check_required: Check required\n\nNeed some manual check\n - transaction_status_approve_required: Approve required\n\nRequired manual approve for new transactions from merchant\n - transaction_status_refund: Refund\n\nTransaction marked for refund\n - transaction_status_refunded: Refunded\n\nTransaction refunded\n - transaction_status_refunding: Refunding\n\nTransaction in refund process\n - transaction_status_expired: Expired\n\nTransaction expired\n - transaction_status_exchange_waiting: Exchange waiting\n\nExchange waiting receive funds and confirmation from blockchain\n - transaction_status_exchanging: Exchanging\n\nExchanging in progress\n - transaction_status_exchange_sending: Exchange sending\n\nexchange sent exchanged funds to destination wallet\n - transaction_status_exchange_failed: Exchange failed\n\nExchange failed\n - transaction_status_verify_required: Verify required\n\nTransaction paused. Verification required\n - transaction_status_black_listed_sender: Black listed sender\n\nTx received from black listed wallet\n - transaction_status_aml_high_risk: AML high risk\n\nTx received from aml wallet","in":"query","items":{"enum":["transaction_status_unknown","transaction_status_pending","transaction_status_sending","transaction_status_waiting","transaction_status_confirmed","transaction_status_processed","transaction_status_failed","transaction_status_canceled","transaction_status_skipped","transaction_status_dust","transaction_status_processing","transaction_status_check_required","transaction_status_approve_required","transaction_status_refund","transaction_status_refunded","transaction_status_refunding","transaction_status_expired","transaction_status_exchange_waiting","transaction_status_exchanging","transaction_status_exchange_sending","transaction_status_exchange_failed","transaction_status_verify_required","transaction_status_black_listed_sender","transaction_status_aml_high_risk"],"type":"string"},"name":"status","required":false,"type":"array"},{"description":"Code\n\nCryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","in":"query","name":"code","required":false,"type":"string"},{"description":"Page\n\nCursor for pagination","in":"query","name":"page","required":false,"type":"string"},{"description":"Order\n\nOrder by. Allowed order: id, status, created_at\nDefault: id","in":"query","name":"order","required":false,"type":"string"},{"default":"desc","description":"Order direction\n\nOrder direction. Allowed direction: asc, desc","enum":["desc","asc"],"in":"query","name":"orderDirection","required":false,"type":"string"},{"description":"Since\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"since","required":false,"type":"string"},{"description":"Until\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"until","required":false,"type":"string"},{"description":"Transaction hash or internal ID\n\nMerchant tx id, internal id or hash","in":"query","name":"idOrTxHash","required":false,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"transactions":[{"amount":"13960716","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"trx","confirmations":"0","createdAt":"2023-04-13T16:11:08Z","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":4.19835899,"exchangeRate":0.3007266236133701},"expiredAt":"0001-01-01T00:00:00Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/wallet/T000000000000000000000000000000000","name":"wallet","title":"Wallet"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/approve","name":"incoming_transaction_approve","title":"Incoming transaction approve"},{"href":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000/refund","name":"incoming_transaction_refund","title":"Incoming transaction refund"}],"self":"/v1/transaction/incoming/0000000000000000000000000000000000000000000000000000000000000000"},"processingFeePercent":0,"processingFeeUnit":"0","status":"transaction_status_approve_required","txHash":"0000000000000000000000000000000000000000000000000000000000000000","txId":"0","walletAddress":"T000000000000000000000000000000000"}]}},"headers":{"Link":{"description":"For page navigation use web linking (https://www.rfc-editor.org/rfc/rfc5988)","type":"string"}},"schema":{"$ref":"#/definitions/v1IncomingTransactions"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/transactions/outgoing":{"get":{"description":"Return withdrawal transaction list","operationId":"Api_TransactionListOutgoing","parameters":[{"description":"Code\n\nCryptocurrency. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: eth","in":"query","name":"code","required":false,"type":"string"},{"collectionFormat":"multi","description":"TransactionStatus\n\nTransaction status\n\nExample: transaction_status_pending\n\n - transaction_status_pending: Pending\n\nNew transaction\n - transaction_status_sending: Sending\n\nTransaction sending to blockchain\n - transaction_status_waiting: Waiting\n\nTransaction in blockchain, wait confirmation\n - transaction_status_confirmed: Confirmed\n\nTransaction confirmed in blockchain\n - transaction_status_processed: Processed\n\nTransaction processed\n - transaction_status_failed: Failed\n\nTransaction failed in blockchain\n - transaction_status_canceled: Cancelled\n\nTransaction cancelled in processing\n - transaction_status_skipped: Skipped\n\nTransaction processing is skipped\n - transaction_status_dust: Dust\n\nTransaction incoming amount is small. Skip processing\n - transaction_status_processing: Processing\n\nTransaction processing\n - transaction_status_check_required: Check required\n\nNeed some manual check\n - transaction_status_approve_required: Approve required\n\nRequired manual approve for new transactions from merchant\n - transaction_status_refund: Refund\n\nTransaction marked for refund\n - transaction_status_refunded: Refunded\n\nTransaction refunded\n - transaction_status_refunding: Refunding\n\nTransaction in refund process\n - transaction_status_expired: Expired\n\nTransaction expired\n - transaction_status_exchange_waiting: Exchange waiting\n\nExchange waiting receive funds and confirmation from blockchain\n - transaction_status_exchanging: Exchanging\n\nExchanging in progress\n - transaction_status_exchange_sending: Exchange sending\n\nexchange sent exchanged funds to destination wallet\n - transaction_status_exchange_failed: Exchange failed\n\nExchange failed\n - transaction_status_verify_required: Verify required\n\nTransaction paused. Verification required\n - transaction_status_black_listed_sender: Black listed sender\n\nTx received from black listed wallet\n - transaction_status_aml_high_risk: AML high risk\n\nTx received from aml wallet","in":"query","items":{"enum":["transaction_status_unknown","transaction_status_pending","transaction_status_sending","transaction_status_waiting","transaction_status_confirmed","transaction_status_processed","transaction_status_failed","transaction_status_canceled","transaction_status_skipped","transaction_status_dust","transaction_status_processing","transaction_status_check_required","transaction_status_approve_required","transaction_status_refund","transaction_status_refunded","transaction_status_refunding","transaction_status_expired","transaction_status_exchange_waiting","transaction_status_exchanging","transaction_status_exchange_sending","transaction_status_exchange_failed","transaction_status_verify_required","transaction_status_black_listed_sender","transaction_status_aml_high_risk"],"type":"string"},"name":"status","required":false,"type":"array"},{"collectionFormat":"multi","description":"TransactionType\n\nTransaction type\n\nExample: transaction_type_operation","in":"query","items":{"enum":["transaction_type_unknown","transaction_type_user","transaction_type_operation","transaction_type_refund","transaction_type_withdraw_processing","transaction_type_withdraw_merchant","transaction_type_exchange","transaction_type_payment_link_invoice","transaction_type_aml"],"type":"string"},"name":"type","required":false,"type":"array"},{"description":"Page\n\nCursor for pagination","in":"query","name":"page","required":false,"type":"string"},{"description":"Order\n\nOrder by. Allowed order: id, status, created_at\nDefault: id","in":"query","name":"order","required":false,"type":"string"},{"default":"desc","description":"Order direction\n\nOrder direction. Allowed direction: asc, desc","enum":["desc","asc"],"in":"query","name":"orderDirection","required":false,"type":"string"},{"description":"Since\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"since","required":false,"type":"string"},{"description":"Until\n\nFilter by date. RFC3339 format in UTC timezone\nExample: 2023-07-13T13:43:46Z","format":"date-time","in":"query","name":"until","required":false,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"transactions":[{"blockchainAdditionalCost":null,"code":"eth","confirmations":"6","createdAt":"2023-03-17T16:21:34Z","destination":[{"address":"0x0202020202020202020202020202020202020202","amount":"108039878060709000","amountUnit":"0,10803988","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0,"exchangeRate":0},"fee":"389369186325000","feeCurrency":"eth","feeUnit":"0,00038937"}],"id":"7U_lS98iy6yE-2i6StIuzHv0IHR4ks196O41DXCzVtA","link":{"related":[],"self":"/v1/transaction/outgoing/0x0000000000000000000000000000000000000000000000000000000000000000"},"processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"processingFee":"810630873675000","status":"transaction_status_confirmed","transactionSource":[{"amount":"50000001000000000","amountRequired":"0","amountRequiredUnit":"0","codeRequested":"eth","confirmations":"7","createdAt":"2023-03-17T08:36:10Z","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0.03551174,"exchangeRate":0.7102347887185954},"expiredAt":"0001-01-01T00:00:00Z","id":"LRpnN_NSnNr5lZiJkyHpo-E3lyw5EWepZLsXeprybqs","link":{"related":[{"href":"/v1/wallet/0x0101010101010101010101010101010101010101","name":"wallet","title":"Wallet"}],"self":"/v1/transaction/incoming/0x1111111111111111111111111111111111111111111111111111111111111111"},"processingFeePercent":1,"processingFeeUnit":"500000010000000","status":"transaction_status_processed","txHash":"0x1111111111111111111111111111111111111111111111111111111111111111","txId":"0","walletAddress":"0x0101010101010101010101010101010101010101"}],"txHash":"0x0000000000000000000000000000000000000000000000000000000000000000","walletSource":[{"address":"0x0101010101010101010101010101010101010101","balance":[{"code":"eth","exchangeRate":{"code":"eth","currency":"usd","currencyAmount":0,"exchangeRate":0.08523879661627065},"value":"0"},{"code":"usdt","exchangeRate":{"code":"usdt","currency":"usd","currencyAmount":0,"exchangeRate":0.014280602450680968},"value":"0"}],"code":"eth","createdAt":"2022-12-15T16:23:12Z","id":"p8K7HCc5spZTcTOCwj0tTjA9_MqR6wUcMtqPbSwWM3o","link":{"related":[{"href":"/v1/transactions/incoming/wallet/0x0101010101010101010101010101010101010101","name":"incoming_transactions","title":"Incoming transactions"}],"self":"/v1/wallet/0x0101010101010101010101010101010101010101"},"provider":"eth","status":"wallet_status_withdrawn","type":"wallet_type_invoice"}]}]}},"headers":{"Link":{"description":"For page navigation use web linking (https://www.rfc-editor.org/rfc/rfc5988)","type":"string"}},"schema":{"$ref":"#/definitions/v1OutgoingTransactions"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Transaction"]}},"/v1/wallet/{type}":{"post":{"description":"Create wallet","operationId":"Api_WalletCreate","parameters":[{"description":"Type\n\nWallet type","enum":["wallet_type_unknown","wallet_type_operation","wallet_type_user","wallet_type_invoice","wallet_type_cold","wallet_type_black_list"],"in":"path","name":"type","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/ApiWalletCreateBody"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"address":"0x0202020202020202020202020202020202020202","provider":"eth","type":"operation"}},"schema":{"$ref":"#/definitions/v1Wallet"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Wallet"]}},"/v1/wallet/{walletAddress}":{"get":{"description":"Return wallet by ID","operationId":"Api_WalletByAddress","parameters":[{"description":"Address\n\nWallet address","in":"path","name":"walletAddress","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"address":"T000000000000000000000000000000000","balance":[{"code":"trx","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.029033234220903113,"exchangeRate":0.009910929079687936},"value":"2929416"},{"code":"usdt_trc20","exchangeRate":{"code":"usdt_trc20","currency":"usd","currencyAmount":0,"exchangeRate":0.9604621931184898},"value":"0"}],"code":"usdt_trc20","createdAt":"2023-04-13T15:54:39Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/transactions/incoming/wallet/T000000000000000000000000000000000","name":"incoming_transactions","title":"Incoming transactions"}],"self":"/v1/wallet/T000000000000000000000000000000000"},"provider":"trx","status":"wallet_status_withdrawn","type":"wallet_type_invoice"}},"schema":{"$ref":"#/definitions/v1Wallet"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Wallet"]}},"/v1/wallet/{walletAddress}/rotate":{"patch":{"description":"Rotate user wallet. Set status waiting and mark as deleted","operationId":"Api_WalletRotate","parameters":[{"description":"Wallet address\n\nWallet address","in":"path","name":"walletAddress","required":true,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{}},"schema":{"properties":{},"type":"object"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Wallet"]}},"/v1/wallets":{"get":{"description":"Return wallet list list","operationId":"Api_WalletList","parameters":[{"collectionFormat":"multi","description":"Wallet type\n\nDefault value: wallet_type_user, wallet_type_invoice, wallet_type_cold","in":"query","items":{"enum":["wallet_type_unknown","wallet_type_operation","wallet_type_user","wallet_type_invoice","wallet_type_cold","wallet_type_black_list"],"type":"string"},"name":"type","required":false,"type":"array"},{"description":"Provider\n\nCryptocurrency. Allowed codes: eth, btc, bch, ltc, trx, bsc\n\nExample: eth","in":"query","name":"provider","pattern":"^[a-z0-9A-Z]+$","required":false,"type":"string"},{"description":"Code\n\nCryptocurrency code. Allowed codes: eth, trx, usdt, usdc, usdt_trc20, btc, bch, ltc, bscusd, bnb\n\nExample: usdt","in":"query","name":"code","required":false,"type":"string"},{"collectionFormat":"multi","description":"Status\n\nWallet status","in":"query","items":{"enum":["wallet_status_unknown","wallet_status_pending","wallet_status_waiting","wallet_status_processed","wallet_status_expired","wallet_status_check_required","wallet_status_withdrawn","wallet_status_withdrawing_in_process","wallet_status_approve_required","wallet_status_refund","wallet_status_refunding","wallet_status_refunded","wallet_status_awaiting_withdrawal","wallet_status_dumped","wallet_status_revolve","wallet_status_black_listed_sender","wallet_status_aml_high_risk","wallet_status_aml_required"],"type":"string"},"name":"status","required":false,"type":"array"},{"description":"Page\n\nCursor for pagination","in":"query","name":"page","required":false,"type":"string"}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"wallets":[{"address":"T000000000000000000000000000000000","balance":[{"code":"trx","exchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.029033234220903113,"exchangeRate":0.009910929079687936},"value":"2929416"},{"code":"usdt_trc20","exchangeRate":{"code":"usdt_trc20","currency":"usd","currencyAmount":0,"exchangeRate":0.9604621931184898},"value":"0"}],"code":"usdt_trc20","createdAt":"2023-04-13T15:54:39Z","id":"Nb5Yxe2SL6DABeGp1MTqkUAncsflJZarnB-sigIpZ-4","link":{"related":[{"href":"/v1/transactions/incoming/wallet/T000000000000000000000000000000000","name":"incoming_transactions","title":"Incoming transactions"}],"self":"/v1/wallet/T000000000000000000000000000000000"},"provider":"trx","status":"wallet_status_withdrawn","type":"wallet_type_invoice"}]}},"headers":{"Link":{"description":"For page navigation use web linking (https://www.rfc-editor.org/rfc/rfc5988)","type":"string"}},"schema":{"$ref":"#/definitions/v1Wallets"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Wallet"]}},"/v1/wallets/balance":{"get":{"description":"Total balances","operationId":"Api_WalletTotalBalances","responses":{"200":{"description":"A successful response.","examples":{"application/json":{"balances":[{"balance":[{"code":"usdt","value":"8493082772299742"}],"code":"usdt","provider":"eth"},{"balance":[{"code":"eth","value":"2950446046108274719"}],"code":"eth","provider":"eth"}]}},"schema":{"$ref":"#/definitions/v1TotalBalances"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Wallet"]}},"/v1/withdrawal":{"post":{"description":"Create withdrawal to merchant cold wallet","operationId":"Api_WithdrawalCreate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1WithdrawalCreateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"total":{"fee":{"amount":"13960716","amountUnit":"13.960716","currency":"trx"},"processingAdditionalCost":{"amount":"66000","amountUnit":"0.012","currency":"usdt_trc20"}},"withdrawals":[{"currency":"usdt_trc20","exchange":null,"fee":"6980358","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.45372327,"exchangeRate":0.065},"feeUnit":"6.980358","processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"txHash":"0101010101010101010101010101010101010101010101010101010101010101","withdrawalAddresses":[{"address":"T111111111111111111111111111111111","amount":"2000000","amountUnit":"2.00","code":"usdt_trc20"}]},{"currency":"usdt_trc20","exchange":null,"fee":"6980358","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.45372327,"exchangeRate":0.065},"feeUnit":"6.980358","processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"txHash":"0202020202020202020202020202020202020202020202020202020202020202","withdrawalAddresses":[{"address":"T222222222222222222222222222222222","amount":"2000000","amountUnit":"2.00","code":"usdt_trc20"}]}]}},"schema":{"$ref":"#/definitions/v1Withdrawals"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"429":{"description":"Client have transaction with status sending. Please wait confirmation","examples":{"application/json":{"code":8,"details":[],"message":"wallet have transaction with status 'sending', please wait until the status changes to 'waiting' with confirmation greater than 0"}},"schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Withdrawal"]}},"/v1/withdrawal/estimate":{"post":{"description":"Estimate withdrawal to merchant cold wallet","operationId":"Api_WithdrawalEstimate","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/v1WithdrawalCreateRequest"}}],"responses":{"200":{"description":"A successful response.","examples":{"application/json":{"total":{"fee":{"amount":"13960716","amountUnit":"13.960716","currency":"trx"},"processingAdditionalCost":{"amount":"66000","amountUnit":"0.012","currency":"usdt_trc20"}},"withdrawals":[{"currency":"usdt_trc20","exchange":null,"fee":"6980358","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.45372327,"exchangeRate":0.065},"feeUnit":"6.980358","processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"txHash":"0101010101010101010101010101010101010101010101010101010101010101","withdrawalAddresses":[{"address":"T111111111111111111111111111111111","amount":"2000000","amountUnit":"2.00","code":"usdt_trc20"}]},{"currency":"usdt_trc20","exchange":null,"fee":"6980358","feeCurrency":"trx","feeExchangeRate":{"code":"trx","currency":"usd","currencyAmount":0.45372327,"exchangeRate":0.065},"feeUnit":"6.980358","processingAdditionalCost":{"amount":"6000","amountUnit":"0.006","currency":"usdt_trc20"},"txHash":"0202020202020202020202020202020202020202020202020202020202020202","withdrawalAddresses":[{"address":"T222222222222222222222222222222222","amount":"2000000","amountUnit":"2.00","code":"usdt_trc20"}]}]}},"schema":{"$ref":"#/definitions/v1Withdrawals"}},"400":{"description":"Returned when the request have invalid arguments","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"403":{"description":"Returned when the user does not have permission to access the resource.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"404":{"description":"Returned when the resource does not exist.","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"409":{"description":"Conflict","schema":{"$ref":"#/definitions/v1ErrorStatus"}},"429":{"description":"Client have transaction with status sending. Please wait confirmation","examples":{"application/json":{"code":8,"details":[],"message":"wallet have transaction with status 'sending', please wait until the status changes to 'waiting' with confirmation greater than 0"}},"schema":{"$ref":"#/definitions/v1ErrorStatus"}},"500":{"description":"Server error","schema":{"$ref":"#/definitions/v1ErrorStatus"}}},"tags":["Withdrawal"]}}},"produces":["application/json"],"security":[{"single":[]}],"securityDefinitions":{"single":{"description":"Simple authentication by token","in":"header","name":"Authorization","type":"apiKey"}},"swagger":"2.0","tags":[{"name":"Api"}]}