{"openapi":"3.1.0","info":{"title":"Swap API","description":"Facilitates the swap of cryptocurrency assets.\n\nSwaps can be made from wallets of verified identities (see the Identity API).\n\nCFX swaps continue to expand. Please contact your CFX account representative should you have enquiries about a particular currency.","termsOfService":"","contact":{"name":"API Owner","email":"api@cfxlabs.com"},"license":{"name":"","url":""},"version":"@VERSION@","summary":"CFX Swap API"},"components":{"securitySchemes":{"ApiKeyAuth":{"name":"x-api-key","type":"apiKey","in":"header"},"ApiSecretAuth":{"name":"x-api-secret","type":"apiKey","in":"header"}},"schemas":{}},"paths":{"/v1/swap/{id}":{"get":{"summary":"Get Swap","tags":["Swap"],"description":"Retrieves details associated with a specific swap.","parameters":[{"schema":{"type":"string"},"example":"swp_z0gtth3sCEHElc8w30sJt","in":"path","name":"id","required":true,"description":"Unique identifier for a swap"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"allOf":[{"type":"object","required":["id","status","createdAt"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap","examples":["swp_z0gtth3sCEHElc8w30sJt"]},"status":{"type":"string","enum":["CREATED","PENDING","COMPLETED","FAILED"],"description":"Status of the swap"},"receipt":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap route receipt instance","examples":["4Sb5a8gtvUXD1kqnCj8HRQw3Q15twjgbevB1hfXNMXb5QiQBympzVk(d4GWL3RrVSuGxxVv6769VFegYLtg1WnM2","rew_k9Ii3Mtd8UdgxCgTkW22k"]},"type":{"type":"string","enum":["SOLANA_TRANSACTION_SIGNATURE","REWARD_ID","REWARD_CLAIM_ID"],"description":"The type of receipt generated"}}}},"createdAt":{"type":"string","description":"The datetime the swap instance was created","examples":["2023-10-23T06:20:04.366+00:00"]}}},{"type":"object","required":["quote"],"properties":{"quote":{"allOf":[{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}}]}}}]}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"allOf":[{"type":"object","required":["id","status","createdAt"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap","examples":["swp_z0gtth3sCEHElc8w30sJt"]},"status":{"type":"string","enum":["CREATED","PENDING","COMPLETED","FAILED"],"description":"Status of the swap"},"receipt":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap route receipt instance","examples":["4Sb5a8gtvUXD1kqnCj8HRQw3Q15twjgbevB1hfXNMXb5QiQBympzVk(d4GWL3RrVSuGxxVv6769VFegYLtg1WnM2","rew_k9Ii3Mtd8UdgxCgTkW22k"]},"type":{"type":"string","enum":["SOLANA_TRANSACTION_SIGNATURE","REWARD_ID","REWARD_CLAIM_ID"],"description":"The type of receipt generated"}}}},"createdAt":{"type":"string","description":"The datetime the swap instance was created","examples":["2023-10-23T06:20:04.366+00:00"]}}},{"type":"object","required":["quote"],"properties":{"quote":{"allOf":[{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}}]}}}]}]}]}}}},"400":{"description":"There is a problem with the request.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"404":{"description":"The requested resource not found.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["notFound"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"The requested resource not found."}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}},"/v1/swap/estimate":{"get":{"summary":"Get Swap Estimate","description":"Get an estimate for a Swap on the CFX network.\n\nAn estimate will calculate the source amount, the total fees extracted and the target amount to swap between cryptocurrency assets.\n\nNote this endpoint is purely for the estimation of swap amounts and fees.\nThe actual swap is actioned via other swap endpoints which facilitate the creation of a binding swap quote and capturing explicit acceptance.","parameters":[{"schema":{"type":"string"},"example":"id_VfsdSMtd8UdgxCgTnz0tm","in":"query","name":"identityId","required":false,"description":"Identity ID associated with the deposit request"},{"schema":{"type":"string"},"example":"org_RD2of9vs3XFodUSd8T5hW","in":"query","name":"organizationId","required":false,"description":"Organization ID associated with the deposit request"},{"schema":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]},"in":"query","name":"sourceCurrency","required":true,"description":"Currency to swap from"},{"schema":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]},"in":"query","name":"targetCurrency","required":true,"description":"Currency to swap to"},{"schema":{"type":"number"},"example":1712.13,"in":"query","name":"sourceAmount","required":true,"description":"Amount of the source currency associated with the swap"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}},{"type":"object","properties":{"rawQuote":{}}}]}}}},"400":{"description":"There is a problem with the request.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}},"/v1/swap/quote":{"post":{"summary":"Create Quote","description":"Generate a quote for Swap on the CFX network.\n\nThe Get Estimate endpoint provides a non-binding estimate for a swap transaction.\n\nThis Create Quote generates a binding quote, which includes an unsigned Solana transaction facilitating the swapping of assets from the nominated user wallet.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"type":"object","required":["sourceCurrency","sourceAmount","targetCurrency","wallet"],"properties":{"sourceCurrency":{"anyOf":[{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"}]},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"targetCurrency":{"anyOf":[{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"}]},"wallet":{"anyOf":[{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"}]}}}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"type":"object","required":["sourceCurrency","sourceAmount","targetCurrency","wallet"],"properties":{"sourceCurrency":{"anyOf":[{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"}]},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"targetCurrency":{"anyOf":[{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"}]},"wallet":{"anyOf":[{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"}]}}}]}]}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"Idempotency-Key","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"allOf":[{"type":"object","required":["id","createdAt","status"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]},"createdAt":{"type":"string","description":"Datetime the withdrawal quote was created","examples":["2023-10-23T06:20:04.366+00:00"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","ACCEPTED","REJECTED"],"description":"Status of the swap quote"}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}},{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},"unsignedTransaction":{"type":"string","description":"An unsigned Solana transaction associated with the swap quote (base64 encoded buffer)"}}}]}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"allOf":[{"type":"object","required":["id","createdAt","status"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]},"createdAt":{"type":"string","description":"Datetime the withdrawal quote was created","examples":["2023-10-23T06:20:04.366+00:00"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","ACCEPTED","REJECTED"],"description":"Status of the swap quote"}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}},{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},"unsignedTransaction":{"type":"string","description":"An unsigned Solana transaction associated with the swap quote (base64 encoded buffer)"}}}]}]}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST"]},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"title":"INVALID_REQUEST","description":"The service cannot understand the request"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["MISSING_IDEMPOTENCY_KEY"]},"message":{"type":"string"}},"title":"MISSING_IDEMPOTENCY_KEY","description":"Missing required idempotency key header"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}]}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"409":{"description":"A duplicate request with this idempotency key is already in progress","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_IN_PROGRESS"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_IN_PROGRESS","description":"A duplicate request with this idempotency key is already in progress"}}}},"422":{"description":"Another request with this idempotency key was made using a different body","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_KEY_REUSED"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_KEY_REUSED","description":"Another request with this idempotency key was made using a different body"}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}},"/v1/swap/quote/{id}/accept":{"post":{"summary":"Accept Quote","tags":["Quote"],"description":"Accepts a swap quote for execution.\n\nThis endpoint confirms acceptance of a quote previously generated by the Create Quote endpoint.","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"type":"object","properties":{}}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"type":"object","properties":{}}]}]},{"type":"object","properties":{"signedTransaction":{"type":"string","description":"A signed Solana transaction that when submitted to the blockchain will swap assets of a user's wallet"}}}]}}}},"parameters":[{"schema":{"type":"string"},"example":"spqt_zS3bEk&c4aolE0vseBG3x","in":"path","name":"id","required":true,"description":"Unique identifier for a swap quote"},{"schema":{"type":"string"},"in":"header","name":"Idempotency-Key","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"allOf":[{"type":"object","required":["id","status","createdAt"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap","examples":["swp_z0gtth3sCEHElc8w30sJt"]},"status":{"type":"string","enum":["CREATED","PENDING","COMPLETED","FAILED"],"description":"Status of the swap"},"receipt":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap route receipt instance","examples":["4Sb5a8gtvUXD1kqnCj8HRQw3Q15twjgbevB1hfXNMXb5QiQBympzVk(d4GWL3RrVSuGxxVv6769VFegYLtg1WnM2","rew_k9Ii3Mtd8UdgxCgTkW22k"]},"type":{"type":"string","enum":["SOLANA_TRANSACTION_SIGNATURE","REWARD_ID","REWARD_CLAIM_ID"],"description":"The type of receipt generated"}}}},"createdAt":{"type":"string","description":"The datetime the swap instance was created","examples":["2023-10-23T06:20:04.366+00:00"]}}},{"type":"object","required":["quote"],"properties":{"quote":{"allOf":[{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}}]}}}]}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"allOf":[{"type":"object","required":["id","status","createdAt"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap","examples":["swp_z0gtth3sCEHElc8w30sJt"]},"status":{"type":"string","enum":["CREATED","PENDING","COMPLETED","FAILED"],"description":"Status of the swap"},"receipt":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap route receipt instance","examples":["4Sb5a8gtvUXD1kqnCj8HRQw3Q15twjgbevB1hfXNMXb5QiQBympzVk(d4GWL3RrVSuGxxVv6769VFegYLtg1WnM2","rew_k9Ii3Mtd8UdgxCgTkW22k"]},"type":{"type":"string","enum":["SOLANA_TRANSACTION_SIGNATURE","REWARD_ID","REWARD_CLAIM_ID"],"description":"The type of receipt generated"}}}},"createdAt":{"type":"string","description":"The datetime the swap instance was created","examples":["2023-10-23T06:20:04.366+00:00"]}}},{"type":"object","required":["quote"],"properties":{"quote":{"allOf":[{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}}]}}}]}]}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST"]},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"title":"INVALID_REQUEST","description":"The service cannot understand the request"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["MISSING_IDEMPOTENCY_KEY"]},"message":{"type":"string"}},"title":"MISSING_IDEMPOTENCY_KEY","description":"Missing required idempotency key header"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}]}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"404":{"description":"The requested resource not found.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["notFound"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"The requested resource not found."}}}},"409":{"description":"A duplicate request with this idempotency key is already in progress","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_IN_PROGRESS"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_IN_PROGRESS","description":"A duplicate request with this idempotency key is already in progress"}}}},"422":{"description":"Another request with this idempotency key was made using a different body","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_KEY_REUSED"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_KEY_REUSED","description":"Another request with this idempotency key was made using a different body"}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}},"/v1/swap/quote/{id}/reject":{"post":{"summary":"Reject Quote","tags":["Quote"],"description":"Rejects a swap quote.","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"type":"object","properties":{}}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"type":"object","properties":{}}]}]}}}},"parameters":[{"schema":{"type":"string"},"example":"spqt_zS3bEk&c4aolE0vseBG3x","in":"path","name":"id","required":true,"description":"Unique identifier for a swap quote"},{"schema":{"type":"string"},"in":"header","name":"Idempotency-Key","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","example":"spqt_zS3bEk&c4aolE0vseBG3x"}}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST"]},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}}},"title":"INVALID_REQUEST","description":"The service cannot understand the request"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["MISSING_IDEMPOTENCY_KEY"]},"message":{"type":"string"}},"title":"MISSING_IDEMPOTENCY_KEY","description":"Missing required idempotency key header"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}]}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"404":{"description":"The requested resource not found.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["notFound"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"The requested resource not found."}}}},"409":{"description":"A duplicate request with this idempotency key is already in progress","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_IN_PROGRESS"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_IN_PROGRESS","description":"A duplicate request with this idempotency key is already in progress"}}}},"422":{"description":"Another request with this idempotency key was made using a different body","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["IDEMPOTENCY_KEY_REUSED"]},"message":{"type":"string"}},"title":"IDEMPOTENCY_KEY_REUSED","description":"Another request with this idempotency key was made using a different body"}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}},"/v1/swap/quote/{id}":{"get":{"summary":"Get Swap Quote","tags":["Quote"],"description":"Retrieves a specific swap quote.","parameters":[{"schema":{"type":"string"},"in":"query","name":"identityId","required":true},{"schema":{"type":"string"},"example":"spqt_zS3bEk&c4aolE0vseBG3x","in":"path","name":"id","required":true,"description":"Unique identifier for a swap quote"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"allOf":[{"type":"object","required":["identityId"],"properties":{"identityId":{"type":"string","description":"Identity ID associated with the deposit request","examples":["id_VfsdSMtd8UdgxCgTnz0tm"]}},"title":"Individual"},{"allOf":[{"type":"object","required":["id","createdAt","status"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]},"createdAt":{"type":"string","description":"Datetime the withdrawal quote was created","examples":["2023-10-23T06:20:04.366+00:00"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","ACCEPTED","REJECTED"],"description":"Status of the swap quote"}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}},{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},"unsignedTransaction":{"type":"string","description":"An unsigned Solana transaction associated with the swap quote (base64 encoded buffer)"}}}]}]},{"allOf":[{"type":"object","required":["organizationId"],"properties":{"organizationId":{"type":"string","description":"Organization ID associated with the deposit request","examples":["org_RD2of9vs3XFodUSd8T5hW"]}},"title":"Organization"},{"allOf":[{"type":"object","required":["id","createdAt","status"],"properties":{"id":{"type":"string","description":"Unique identifier for a swap quote","examples":["spqt_zS3bEk&c4aolE0vseBG3x"]},"createdAt":{"type":"string","description":"Datetime the withdrawal quote was created","examples":["2023-10-23T06:20:04.366+00:00"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","ACCEPTED","REJECTED"],"description":"Status of the swap quote"}}},{"type":"object","required":["sourceCurrency","sourceAmount","sourceAmountAfterFees","targetCurrency","targetAmount","targetAmountAfterFees","fees"],"properties":{"sourceCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap from"},"sourceAmount":{"type":"number","description":"Amount of the source currency associated with the swap","examples":[1712.13]},"sourceAmountAfterFees":{"type":"number","description":"Amount of the source currency after fees have been extracted","examples":[1712.13]},"targetCurrency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}],"description":"Currency to swap to"},"targetAmount":{"type":"number","description":"Amount of the target currency associated with the swap","examples":[1712.13]},"targetAmountAfterFees":{"type":"number","description":"Amount of the target currency after fees have been extracted","examples":[1712.13]},"fees":{"type":"array","items":{"type":"object","required":["fee","type"],"properties":{"fee":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"anyOf":[{"type":"string","enum":["MOVEUSD","USDC","SOL","WETH","WBTC"],"title":"CRYPTO"},{"type":"string","title":"REWARD","description":"Reward points","enum":["REWARD"]}]}}},"type":{"type":"string","enum":["CFX_FIXED_FEE","CFX_VARIABLE_FEE","PROVIDER_FIXED_FEE","PROVIDER_VARIABLE_FEE","CUSTOMER_FIXED_FEE","CUSTOMER_VARIABLE_FEE"]}}}}}},{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"object","required":["address","blockchain"],"properties":{"address":{"type":"string","description":"Blockchain address or account"},"blockchain":{"type":"string","description":"The blockchain upon which this address is associated","examples":["SOLANA"],"enum":["SOLANA"]}},"description":"Blockchain wallet where the assets will be swapped"},"unsignedTransaction":{"type":"string","description":"An unsigned Solana transaction associated with the swap quote (base64 encoded buffer)"}}}]}]}]}}}},"400":{"description":"There is a problem with the request.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"There is a problem with the request."}}}},"401":{"description":"The access to this resource has been denied","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"]},"message":{"type":"string"}},"title":"UNAUTHORIZED","description":"The access to this resource has been denied"}}}},"404":{"description":"The requested resource not found.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["notFound"]},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"description":"The requested resource not found."}}}},"default":{"description":"Catch-all error response for any unexpected internal errors","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INTERNAL"]},"message":{"type":"string","enum":["An unexpected internal error has occurred"]}},"title":"INTERNAL","description":"Catch-all error response for any unexpected internal errors"}}}}}}}},"servers":[{"url":"https://api.dev.cfx.to","description":"Customer Sandbox"},{"url":"https://api.cfx.to","description":"Production"}],"security":[{"ApiKeyAuth":[],"ApiSecretAuth":[]}],"tags":[{"name":"Swap"}],"externalDocs":{"description":"Find out more about CFX","url":"https://www.cfxlabs.com/"}}