{"openapi":"3.1.0","info":{"title":"API","version":"0.1.0"},"paths":{"/assets":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"assets","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"issuer":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"},"alias":{"type":"string"},"image_url":{"type":"string"}},"required":["issuer","name","symbol","decimals"]},{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"},"alias":{"type":"string"},"image_url":{"type":"string"},"is_native":{"type":"boolean"},"is_oft":{"type":"boolean"},"coingecko_id":{"type":"string"},"wrapper":{"type":"string"}},"required":["chain","address","name","symbol","decimals"]}]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/assets/available-inputs":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"inputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"outputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"onramps","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"offramps","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"flags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"object","properties":{"fiats":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"type":"string"}},"token_traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"funding_actions":{"type":"array","items":{"type":"string","enum":["TRANSFER","CONTRACT_CALL","SIGN"]}}},"required":["funding_actions"]}}},"required":["fiats","tokens","token_traits"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/assets/available-outputs":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"inputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"outputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"onramps","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"offramps","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"flags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"object","properties":{"fiats":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"type":"string"}},"token_traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"funding_actions":{"type":"array","items":{"type":"string","enum":["TRANSFER","CONTRACT_CALL","SIGN"]}}},"required":["funding_actions"]}}},"required":["fiats","tokens","token_traits"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/chains":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"chain_id":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"network":{"type":"string"},"display":{"type":"string"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"explorer":{"type":"string","format":"uri"},"image":{"type":"string","format":"uri"},"is_testnet":{"type":"boolean"}},"required":["chain_id","network","address_family","is_testnet"]},{"type":"object","properties":{"chain_id":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"network":{"type":"string"},"display":{"type":"string"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"explorer":{"type":"string","format":"uri"},"image":{"type":"string","format":"uri"},"is_testnet":{"type":"boolean"},"native_currency":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"number"}},"required":["name","symbol","decimals"]},"rpc":{"type":"string","format":"uri"}},"required":["chain_id","network","address_family","is_testnet","native_currency"]}]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/chains/rpc/:chain/:rpc_id":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"method":{"type":"string"},"params":{"type":"array","items":{}},"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"jsonrpc":{"type":"string"}},"required":["method"]}]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/me":{"get":{"parameters":[{"in":"query","name":"limit","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","default":25,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"in":"query","name":"pagination_key","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"membership":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_address":{"type":"string"},"member_since":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"effective_permissions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"description":{"type":"string"}},"required":["key","description"]}}},"required":["user_id","user_address","member_since","updated_at","effective_permissions"]},"commit_contract":{"type":"object","properties":{"status":{"type":"string","enum":["ACTIVE","TERMINATED","DEFAULTED","EXPIRED"]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]}},"required":["status","period","rate_bounds","term_start","term_end"]}},"required":["id","name","settings","membership"]}},"next_pagination_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"super_perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["orgs","next_pagination_key","super_perms"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs":{"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"created_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","name","settings","created_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1},"msa":{"type":"object","properties":{"signer_name":{"type":"string"},"signer_email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"signer_title":{"type":"string"},"attribution":{"type":"string"},"version":{"type":"string","minLength":1}},"required":["signer_name","signer_email","version"]}},"required":["name"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1},"settings":{"type":"object","properties":{"display_name":{"type":"string"}}}}}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/domains":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domains":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["domains"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}},"required":["allowed_origins"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domains":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["domains"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}},"required":["allowed_origins"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}},"required":["allowed_origins"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/info":{"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"allow_fiat":{"type":"boolean"},"settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"created_at":{"anyOf":[{},{"type":"string"}]},"features":{"type":"array","items":{"type":"string"}},"config":{"type":"object","properties":{"allowed_flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"number","minimum":0,"maximum":500},"rules":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"output":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"relation":{"type":"string","enum":["IDENTITY"]},"bps":{"type":"number","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]},"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"request_concurrency":{"type":"integer","minimum":2,"maximum":1000}}},"msa":{"anyOf":[{"type":"object","properties":{"signer_name":{"type":"string"},"signer_email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"signer_title":{"type":"string"},"attribution":{"type":"string"},"accepted_at":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"anyOf":[{},{"type":"string"}]}}},"required":["signer_name","signer_email","accepted_at"]},{"type":"null"}]},"commit_contract":{"type":"object","properties":{"status":{"type":"string","enum":["ACTIVE","TERMINATED","DEFAULTED","EXPIRED"]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]}},"required":["status","period","rate_bounds","term_start","term_end"]}},"required":["id","name","settings","created_at","features","msa"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/keys":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["label","perms"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"public_key":{"type":"string"},"secret_key":{"type":"string"}},"required":["label","public_key","secret_key"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"public_key":{"type":"string"},"label":{"type":"string"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["public_key"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"public_key":{"type":"string"}},"required":["public_key"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"public_key":{"type":"string"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}},"created_at":{"anyOf":[{},{"type":"string"}]}},"required":["label","public_key","perms","created_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/inquiries":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"inquiry":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["inquiry"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"inquiries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"submitter":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inquiry":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"created_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","submitter","inquiry","created_at"]}}},"required":["inquiries"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/webhooks":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"label":{"type":"string"},"sandbox":{"type":"boolean"},"event_types":{"minItems":1,"type":"array","items":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]}},"signing_secret":{"type":"string"},"auth_header":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]}},"required":["url","label","event_types"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"url":{"type":"string"},"sandbox":{"type":"boolean"},"signing_secret":{"type":"string"}},"required":["id","label","url","sandbox","signing_secret"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"sandbox":{"type":"boolean"},"url":{"type":"string"},"auth_header":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]},{"type":"null"}]}},"required":["label","sandbox"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"sandbox":{"type":"boolean"}},"required":["label","sandbox"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"webhooks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"url":{"type":"string"},"sandbox":{"type":"boolean"},"event_types":{"type":"array","items":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]}},"auth_header_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","label","url","sandbox","event_types","auth_header_name","created_at"]}}},"required":["webhooks"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/webhooks/rotate-secret":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"sandbox":{"type":"boolean"},"signing_secret":{"type":"string"},"retire_after":{"anyOf":[{},{"type":"string"}]}},"required":["label","sandbox"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"signing_secret":{"type":"string"}},"required":["id","signing_secret"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/webhooks/sample":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string"},"sandbox":{"type":"boolean"},"event_type":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]}},"required":["label","sandbox","event_type"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"event":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"time":{"anyOf":[{},{"type":"string"}]},"event_type":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]},"event":{"type":"object","properties":{"workflow_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"COMPLETE"},{"type":"string","const":"FAILED"},{"type":"string","const":"EXPIRED"}]},"tags":{"type":"array","items":{"type":"string","minLength":1}}},"required":["workflow_id","status"]},"sample":{"default":false,"type":"boolean"}},"required":["id","time","event_type","event"]},"status_code":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["event","status_code","error"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/webhooks/deliveries":{"get":{"parameters":[{"in":"query","name":"webhook_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"event_types","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]}}},{"in":"query","name":"statuses","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["PENDING","SUCCESS","FAILED"]}}},{"in":"query","name":"from","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"to","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"limit","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}},{"in":"query","name":"offset","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deliveries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"webhook_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflow_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"event_type":{"type":"string","enum":["WORKFLOW_COMPLETED","WORKFLOW_FAILED"]},"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_status_code":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_attempt_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]},"next_attempt_at":{"anyOf":[{},{"type":"string"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"label":{"type":"string"}},"required":["id","webhook_id","workflow_id","event_type","status","attempts","max_attempts","last_status_code","last_error","last_attempt_at","next_attempt_at","created_at","label"]}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deliveries","total"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/members":{"get":{"parameters":[{"in":"query","name":"user_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}},"user_address":{"type":"string"}},"required":["org_id","user_id","created_at","updated_at","perms","user_address"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["user_id"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/members/perms":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["user_id","perms"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/invites":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"invitee_address":{"type":"string"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["invitee_address","perms"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"statuses","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["pending","accepted","declined","cancelled"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_name":{"type":"string"},"org_settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"inviter":{"type":"string"},"inviter_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"invitee_address":{"type":"string"},"status":{"type":"string","enum":["pending","accepted","declined","cancelled"]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","org_name","org_settings","inviter","inviter_address","invitee_address","status","created_at","updated_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","accepted","declined","cancelled"]}},"required":["id","status"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/invites/me":{"get":{"parameters":[{"in":"query","name":"statuses","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["pending","accepted","declined","cancelled"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_name":{"type":"string"},"org_settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"inviter":{"type":"string"},"inviter_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"invitee_address":{"type":"string"},"status":{"type":"string","enum":["pending","accepted","declined","cancelled"]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","org_name","org_settings","inviter","inviter_address","invitee_address","status","created_at","updated_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/owner":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["user_id"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/rev-share":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"preferred_tokens":{"type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"addresses":{"type":"object","properties":{"EVM":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"SOL":{"type":"string"},"BTC":{"type":"string","pattern":"^(1[1-9A-HJ-NP-Za-km-z]{25,34}|3[1-9A-HJ-NP-Za-km-z]{25,34}|[bB][cC]1[a-z0-9]{25,87}|[bB][cC]1[A-Z0-9]{25,87})$"},"TON":{"type":"string","pattern":"^[a-zA-Z0-9_-]{48}$"},"TRON":{"type":"string"},"ALEO":{"type":"string","pattern":"^aleo1[a-z0-9]{58}$"},"DOGE":{"type":"string"},"LTC":{"type":"string","pattern":"^([LM3][1-9A-HJ-NP-Za-km-z]{25,33}|ltc1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{39,59})$"},"XRPL":{"type":"string","pattern":"^(r[1-9A-HJ-NP-Za-km-z]{24,34}|X[1-9A-HJ-NP-Za-km-z]{46})$"},"SUI":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"ZEC":{"type":"string"}}},"allow_arbitrary":{"type":"boolean"}},"required":["name","percentage","preferred_tokens","addresses","allow_arbitrary"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"percentage":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"preferred_tokens":{"type":"array","items":{"type":"string"}},"addresses":{"type":"object","properties":{"EVM":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"SOL":{"type":"string"},"BTC":{"type":"string","pattern":"^(1[1-9A-HJ-NP-Za-km-z]{25,34}|3[1-9A-HJ-NP-Za-km-z]{25,34}|[bB][cC]1[a-z0-9]{25,87}|[bB][cC]1[A-Z0-9]{25,87})$"},"TON":{"type":"string","pattern":"^[a-zA-Z0-9_-]{48}$"},"TRON":{"type":"string"},"ALEO":{"type":"string","pattern":"^aleo1[a-z0-9]{58}$"},"DOGE":{"type":"string"},"LTC":{"type":"string","pattern":"^([LM3][1-9A-HJ-NP-Za-km-z]{25,33}|ltc1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{39,59})$"},"XRPL":{"type":"string","pattern":"^(r[1-9A-HJ-NP-Za-km-z]{24,34}|X[1-9A-HJ-NP-Za-km-z]{46})$"},"SUI":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"ZEC":{"type":"string"}}},"allow_arbitrary":{"type":"boolean"},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","percentage","preferred_tokens","addresses","allow_arbitrary","created_by","created_at","updated_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"name","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"percentage":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"preferred_tokens":{"type":"array","items":{"type":"string"}},"addresses":{"type":"object","properties":{"EVM":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"SOL":{"type":"string"},"BTC":{"type":"string","pattern":"^(1[1-9A-HJ-NP-Za-km-z]{25,34}|3[1-9A-HJ-NP-Za-km-z]{25,34}|[bB][cC]1[a-z0-9]{25,87}|[bB][cC]1[A-Z0-9]{25,87})$"},"TON":{"type":"string","pattern":"^[a-zA-Z0-9_-]{48}$"},"TRON":{"type":"string"},"ALEO":{"type":"string","pattern":"^aleo1[a-z0-9]{58}$"},"DOGE":{"type":"string"},"LTC":{"type":"string","pattern":"^([LM3][1-9A-HJ-NP-Za-km-z]{25,33}|ltc1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{39,59})$"},"XRPL":{"type":"string","pattern":"^(r[1-9A-HJ-NP-Za-km-z]{24,34}|X[1-9A-HJ-NP-Za-km-z]{46})$"},"SUI":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"ZEC":{"type":"string"}}},"allow_arbitrary":{"type":"boolean"},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","percentage","preferred_tokens","addresses","allow_arbitrary","created_by","created_at","updated_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"preferred_tokens":{"type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"addresses":{"type":"object","properties":{"EVM":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"SOL":{"type":"string"},"BTC":{"type":"string","pattern":"^(1[1-9A-HJ-NP-Za-km-z]{25,34}|3[1-9A-HJ-NP-Za-km-z]{25,34}|[bB][cC]1[a-z0-9]{25,87}|[bB][cC]1[A-Z0-9]{25,87})$"},"TON":{"type":"string","pattern":"^[a-zA-Z0-9_-]{48}$"},"TRON":{"type":"string"},"ALEO":{"type":"string","pattern":"^aleo1[a-z0-9]{58}$"},"DOGE":{"type":"string"},"LTC":{"type":"string","pattern":"^([LM3][1-9A-HJ-NP-Za-km-z]{25,33}|ltc1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{39,59})$"},"XRPL":{"type":"string","pattern":"^(r[1-9A-HJ-NP-Za-km-z]{24,34}|X[1-9A-HJ-NP-Za-km-z]{46})$"},"SUI":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"ZEC":{"type":"string"}}},"allow_arbitrary":{"type":"boolean"}},"required":["name"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"percentage":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"preferred_tokens":{"type":"array","items":{"type":"string"}},"addresses":{"type":"object","properties":{"EVM":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"SOL":{"type":"string"},"BTC":{"type":"string","pattern":"^(1[1-9A-HJ-NP-Za-km-z]{25,34}|3[1-9A-HJ-NP-Za-km-z]{25,34}|[bB][cC]1[a-z0-9]{25,87}|[bB][cC]1[A-Z0-9]{25,87})$"},"TON":{"type":"string","pattern":"^[a-zA-Z0-9_-]{48}$"},"TRON":{"type":"string"},"ALEO":{"type":"string","pattern":"^aleo1[a-z0-9]{58}$"},"DOGE":{"type":"string"},"LTC":{"type":"string","pattern":"^([LM3][1-9A-HJ-NP-Za-km-z]{25,33}|ltc1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{39,59})$"},"XRPL":{"type":"string","pattern":"^(r[1-9A-HJ-NP-Za-km-z]{24,34}|X[1-9A-HJ-NP-Za-km-z]{46})$"},"SUI":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"ZEC":{"type":"string"}}},"allow_arbitrary":{"type":"boolean"},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","percentage","preferred_tokens","addresses","allow_arbitrary","created_by","created_at","updated_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PERCENTAGE"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}},"required":["kind","percentage"]},{"type":"object","properties":{"kind":{"type":"string","const":"PAR"}},"required":["kind"]}]},"routes":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ASSET"},"asset":{"anyOf":[{},{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}]}},"required":["kind","asset"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},{"type":"object","properties":{"include":{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"exclude":{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}}},"additionalProperties":false}]}},"required":["kind","ref"]}]},"output":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["input","output"]}},"max_fee_sponsorship_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_input_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["name","enabled","policy","routes"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PERCENTAGE"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}},"required":["kind","percentage"]},{"type":"object","properties":{"kind":{"type":"string","const":"PAR"}},"required":["kind"]}]},"routes":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ASSET"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]}},"required":["kind","asset"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]}]},"output":{"type":"string"}},"required":["input","output"]}},"max_fee_sponsorship_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_input_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","enabled","policy","routes","created_by","created_at","updated_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"name","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PERCENTAGE"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}},"required":["kind","percentage"]},{"type":"object","properties":{"kind":{"type":"string","const":"PAR"}},"required":["kind"]}]},"routes":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ASSET"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]}},"required":["kind","asset"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]}]},"output":{"type":"string"}},"required":["input","output"]}},"max_fee_sponsorship_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_input_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","enabled","policy","routes","created_by","created_at","updated_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PERCENTAGE"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}},"required":["kind","percentage"]},{"type":"object","properties":{"kind":{"type":"string","const":"PAR"}},"required":["kind"]}]},"routes":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ASSET"},"asset":{"anyOf":[{},{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}]}},"required":["kind","asset"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},{"type":"object","properties":{"include":{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"exclude":{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}}},"additionalProperties":false}]}},"required":["kind","ref"]}]},"output":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["input","output"]}},"max_fee_sponsorship_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_input_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["name"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"enabled":{"type":"boolean"},"policy":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PERCENTAGE"},"percentage":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}},"required":["kind","percentage"]},{"type":"object","properties":{"kind":{"type":"string","const":"PAR"}},"required":["kind"]}]},"routes":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"ASSET"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]}},"required":["kind","asset"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]}]},"output":{"type":"string"}},"required":["input","output"]}},"max_fee_sponsorship_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_input_fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","name","enabled","policy","routes","created_by","created_at","updated_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/credit":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credit":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"sandbox":{"type":"boolean"}},"required":["org_id","credit","sandbox"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/analytics":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"boolean"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"total_fee_sponsored_fiat":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"total_sponsored_payments":{"type":"number"},"by_profile":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"count":{"type":"number"},"total_fee_sponsored_fiat":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["count","total_fee_sponsored_fiat"]}}},"required":["total_fee_sponsored_fiat","total_sponsored_payments","by_profile"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/available-inputs":{"get":{"parameters":[{"in":"query","name":"inputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"outputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"object","properties":{"fiats":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"type":"string"}},"token_traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"funding_actions":{"type":"array","items":{"type":"string","enum":["TRANSFER","CONTRACT_CALL","SIGN"]}}},"required":["funding_actions"]}}},"required":["fiats","tokens","token_traits"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/available-outputs":{"get":{"parameters":[{"in":"query","name":"inputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}}},{"in":"query","name":"outputs","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"object","properties":{"fiats":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"type":"string"}},"token_traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"funding_actions":{"type":"array","items":{"type":"string","enum":["TRANSFER","CONTRACT_CALL","SIGN"]}}},"required":["funding_actions"]}}},"required":["fiats","tokens","token_traits"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/balance":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"boolean"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"period":{"type":"string"},"currency":{"type":"string"},"sandbox":{"type":"boolean"},"available_balance_fiat":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"available_balance_fiat_partial":{"type":"boolean"},"sponsored_fees_this_period_fiat":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"wallets":{"type":"array","items":{"type":"object","properties":{"wallet_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"address":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"native":{"type":"boolean"},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["token","symbol","native","amount","fiat"]}}},"required":["wallet_id","address_family","address","balances"]}},"by_profile":{"type":"array","items":{"type":"object","properties":{"profile_name":{"type":"string"},"enabled":{"type":"boolean"},"payments_this_period":{"type":"number"},"fee_sponsored_this_period_fiat":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"balances":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"native":{"type":"boolean"},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"fiat":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["token","symbol","native","amount","fiat"]}}},"required":["profile_name","enabled","payments_this_period","fee_sponsored_this_period_fiat","balances"]}}},"required":["period","currency","sandbox","available_balance_fiat","available_balance_fiat_partial","sponsored_fees_this_period_fiat","wallets","by_profile"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/wallets":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]}}}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"address":{"type":"string"},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","address_family","address","created_by","created_at","updated_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"address":{"type":"string"},"created_by":{"type":"string"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]}},"required":["id","org_id","address_family","address","created_by","created_at","updated_at"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/fee-sponsorship/wallets/withdraw":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"to":{"type":"string"}},"required":["token","amount","to"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tx_hash":{"type":"string"}},"required":["tx_hash"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/sponsorship-wallets/reencrypt":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from_key":{"type":"string"}},"required":["from_key"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reencrypted":{"type":"number"},"failed_wallet_ids":{"type":"array","items":{"type":"string"}}},"required":["reencrypted","failed_wallet_ids"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/features":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"features":{"type":"array","items":{"type":"string"}}},"required":["org_id","features"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/config":{"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"config":{"type":"object","properties":{"allowed_flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"number","minimum":0,"maximum":500},"rules":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"output":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"relation":{"type":"string","enum":["IDENTITY"]},"bps":{"type":"number","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]},"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"request_concurrency":{"type":"integer","minimum":2,"maximum":1000}}}},"required":["org_id","config"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/domains":{"get":{"parameters":[],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_name":{"type":"string"},"domains":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}},"required":["org_id","org_name","domains"]}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/domains/review":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"approve":{"type":"boolean"},"domains":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["org_id","approve","domains"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/info":{"get":{"parameters":[{"in":"query","name":"org_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"allow_fiat":{"type":"boolean"},"settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"created_at":{"anyOf":[{},{"type":"string"}]},"features":{"type":"array","items":{"type":"string"}},"config":{"type":"object","properties":{"allowed_flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"number","minimum":0,"maximum":500},"rules":{"type":"array","items":{"type":"object","properties":{"input":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"output":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"TOKEN"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"REF"},"ref":{"type":"string"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","ref"]},{"type":"object","properties":{"kind":{"type":"string","const":"FIAT"},"fiat":{"type":"string"}},"required":["kind","fiat"]},{"type":"object","properties":{"kind":{"type":"string","const":"CHAIN"},"chains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}]}},"required":["kind","chains"]},{"type":"object","properties":{"kind":{"type":"string","const":"FEE_CLASS"},"fee_class":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]}},"required":["kind","fee_class"]}]},"relation":{"type":"string","enum":["IDENTITY"]},"bps":{"type":"number","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]},"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"request_concurrency":{"type":"integer","minimum":2,"maximum":1000}}},"msa":{"anyOf":[{"type":"object","properties":{"signer_name":{"type":"string"},"signer_email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"signer_title":{"type":"string"},"attribution":{"type":"string"},"accepted_at":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"anyOf":[{},{"type":"string"}]}}},"required":["signer_name","signer_email","accepted_at"]},{"type":"null"}]},"commit_contract":{"type":"object","properties":{"status":{"type":"string","enum":["ACTIVE","TERMINATED","DEFAULTED","EXPIRED"]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]}},"required":["status","period","rate_bounds","term_start","term_end"]},"credit":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"sandbox_credit":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["id","name","settings","created_at","features","msa","credit","sandbox_credit"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/users":{"get":{"parameters":[{"in":"query","name":"email","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_address":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"super_perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"settings":{"type":"object","properties":{"display_name":{"type":"string"},"allowed_origins":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"reviewed_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["pattern","created_by","created_at","reviewed_at"]}}}},"membership":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_address":{"type":"string"},"member_since":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}},"effective_permissions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"description":{"type":"string"}},"required":["key","description"]}}},"required":["user_id","user_address","member_since","updated_at","perms","effective_permissions"]}},"required":["id","name","settings","membership"]}}},"required":["user_id","user_address","name","created_at","super_perms","orgs"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/enable":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["org_id"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/super-perms":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_address":{"type":"string"},"perms":{"type":"object","properties":{"includes":{"type":"array","items":{"type":"string"}},"excludes":{"type":"array","items":{"type":"string"}}}}},"required":["user_address","perms"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/experiments":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["FEE_SCHEDULE"]},"name":{"type":"string","minLength":1,"maxLength":255},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignment_unit":{"type":"string","enum":["USER","SESSION","REQUEST"]},"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"object","properties":{"percent":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"payload":{}},"required":["percent","payload"]}}},"required":["kind","name","assignment_unit","arms"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["FEE_SCHEDULE"]},"name":{"type":"string"},"org_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["PENDING","ACTIVE","STOPPED"]},"assignment_unit":{"type":"string","enum":["USER","SESSION","REQUEST"]},"phases":{"minItems":1,"type":"array","items":{"type":"object","properties":{"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"object","properties":{"percent":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"payload":{}},"required":["percent","payload"]}},"activated_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["arms","activated_at","created_by"]}},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"stopped_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["id","kind","name","org_id","status","assignment_unit","phases","created_by","created_at","updated_at","stopped_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"kind","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["FEE_SCHEDULE"]}},{"in":"query","name":"org_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"status","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["PENDING","ACTIVE","STOPPED"]}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"experiments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["FEE_SCHEDULE"]},"name":{"type":"string"},"org_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["PENDING","ACTIVE","STOPPED"]},"assignment_unit":{"type":"string","enum":["USER","SESSION","REQUEST"]},"phases":{"minItems":1,"type":"array","items":{"type":"object","properties":{"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"object","properties":{"percent":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"payload":{}},"required":["percent","payload"]}},"activated_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["arms","activated_at","created_by"]}},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"stopped_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["id","kind","name","org_id","status","assignment_unit","phases","created_by","created_at","updated_at","stopped_at"]}}},"required":["experiments"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/experiments/status":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"experiment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string","enum":["ACTIVATE","STOP"]}},"required":["experiment_id","action"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["FEE_SCHEDULE"]},"name":{"type":"string"},"org_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["PENDING","ACTIVE","STOPPED"]},"assignment_unit":{"type":"string","enum":["USER","SESSION","REQUEST"]},"phases":{"minItems":1,"type":"array","items":{"type":"object","properties":{"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"object","properties":{"percent":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"payload":{}},"required":["percent","payload"]}},"activated_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["arms","activated_at","created_by"]}},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"stopped_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["id","kind","name","org_id","status","assignment_unit","phases","created_by","created_at","updated_at","stopped_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/experiments/ramp":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"experiment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]}}},"required":["experiment_id","arms"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["FEE_SCHEDULE"]},"name":{"type":"string"},"org_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["PENDING","ACTIVE","STOPPED"]},"assignment_unit":{"type":"string","enum":["USER","SESSION","REQUEST"]},"phases":{"minItems":1,"type":"array","items":{"type":"object","properties":{"arms":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"object","properties":{"percent":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"payload":{}},"required":["percent","payload"]}},"activated_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["arms","activated_at","created_by"]}},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"stopped_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["id","kind","name","org_id","status","assignment_unit","phases","created_by","created_at","updated_at","stopped_at"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/commit-contracts":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"window_commit_revenue_usd":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"window_commit_volume_usd":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"rate_bounds":{"default":[],"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]}},"required":["org_id","period","window_commit_revenue_usd","term_start","term_end"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"supersedes_commit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"window_commit_revenue_usd":{"type":"string"},"window_commit_volume_usd":{"anyOf":[{"type":"string"},{"type":"null"}]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]},"effective_at":{"anyOf":[{},{"type":"string"}]},"commit_type":{"type":"string","enum":["OPENED","AMENDED","RENEWED","TERMINATED","DEFAULTED","VOIDED"]},"recorded_at":{"anyOf":[{},{"type":"string"}]},"recorded_by":{"type":"string"}},"required":["commit_id","org_id","supersedes_commit_id","period","window_commit_revenue_usd","window_commit_volume_usd","rate_bounds","term_start","term_end","effective_at","commit_type","recorded_at","recorded_by"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"org_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commit_contracts":{"type":"array","items":{"type":"object","properties":{"commit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"supersedes_commit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"window_commit_revenue_usd":{"type":"string"},"window_commit_volume_usd":{"anyOf":[{"type":"string"},{"type":"null"}]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]},"effective_at":{"anyOf":[{},{"type":"string"}]},"commit_type":{"type":"string","enum":["OPENED","AMENDED","RENEWED","TERMINATED","DEFAULTED","VOIDED"]},"recorded_at":{"anyOf":[{},{"type":"string"}]},"recorded_by":{"type":"string"}},"required":["commit_id","org_id","supersedes_commit_id","period","window_commit_revenue_usd","window_commit_volume_usd","rate_bounds","term_start","term_end","effective_at","commit_type","recorded_at","recorded_by"]}}},"required":["commit_contracts"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/admin/commit-contracts/revise":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"supersedes_commit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commit_type":{"type":"string","enum":["AMENDED","RENEWED","TERMINATED","DEFAULTED","VOIDED"]},"effective_at":{"anyOf":[{},{"type":"string"}]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"window_commit_revenue_usd":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"window_commit_volume_usd":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]}},"required":["supersedes_commit_id","commit_type","effective_at"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"supersedes_commit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"period":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"window_commit_revenue_usd":{"type":"string"},"window_commit_volume_usd":{"anyOf":[{"type":"string"},{"type":"null"}]},"rate_bounds":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"output":{"type":"string","enum":["BANK","CREDIT","STABLE_USD","VOLATILE"]},"max_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"number","minimum":0,"exclusiveMaximum":10000}},"required":["input","output","max_bps"]}},"term_start":{"anyOf":[{},{"type":"string"}]},"term_end":{"anyOf":[{},{"type":"string"}]},"effective_at":{"anyOf":[{},{"type":"string"}]},"commit_type":{"type":"string","enum":["OPENED","AMENDED","RENEWED","TERMINATED","DEFAULTED","VOIDED"]},"recorded_at":{"anyOf":[{},{"type":"string"}]},"recorded_by":{"type":"string"}},"required":["commit_id","org_id","supersedes_commit_id","period","window_commit_revenue_usd","window_commit_volume_usd","rate_bounds","term_start","term_end","effective_at","commit_type","recorded_at","recorded_by"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/persons/admin/provider-account":{"put":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider_name":{"type":"string","minLength":1},"sandbox":{"type":"boolean"},"account_id":{"type":"string","minLength":1,"maxLength":255}},"required":["person_id","provider_name","sandbox","account_id"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider_name":{"type":"string"},"sandbox":{"type":"boolean"},"account_id":{"type":"string"}},"required":["person_id","provider_name","sandbox","account_id"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/persons/webhooks/sumsub":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/persons/me":{"get":{"parameters":[{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"flags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kyc_providers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","enum":["CLEARED","AWAITING_PROVIDER","ACTION_REQUIRED","ATTEMPTABLE","REFUSED"]}}}},"required":["person_id","kyc_providers"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sandbox":{"anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"phone_jwt":{"type":"string","minLength":1}}}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kyc_providers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","enum":["CLEARED","AWAITING_PROVIDER","ACTION_REQUIRED","ATTEMPTABLE","REFUSED"]}}}},"required":["person_id","kyc_providers"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/persons/kyc":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"provider_id":{"type":"string"},"sandbox":{"anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}}}}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["CLEARED","AWAITING_PROVIDER","ACTION_REQUIRED","ATTEMPTABLE","REFUSED"]},"instruction":{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]}},"required":["status"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/workflows/update-legacy":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workflow_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"verification_code":{"type":"string"}},"required":["verification_code"]}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments":{"get":{"parameters":[{"in":"query","name":"payment_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"enable_withdraw_pending","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payment_id":{"type":"string"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"COMPLETE"},{"type":"string","const":"FAILED"},{"type":"string","const":"EXPIRED"},{"type":"string","const":"WITHDRAWN"},{"type":"string","const":"TAINTED"},{"type":"string","const":"UNCONFIRMED"},{"type":"string","const":"WITHDRAW_PENDING"}]},"funded":{"type":"boolean"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"initiate_fund_by":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"quote_request":{"type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"fulfilled":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"},"status":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string","const":"COMPLETE"},{"type":"string","const":"UNREACHABLE"},{"type":"string","const":"FAILED"}]},{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"ATTEMPT_FAILED"}]}]}]},"transaction_hash":{"type":"string"},"superseded":{"type":"boolean"}},"required":["type","net_effect","pieces_info","status"]}}},"required":["route"]},"current_prices":{"type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"customer_id":{"type":"string"},"label":{"type":"string"},"tags":{"type":"array","items":{"type":"string","minLength":1}},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"processing_addresses":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"factory":{"type":"string"}},"required":["chain","address","factory"]}},"owner_chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"owner_address":{"type":"string"},"funder_address":{"type":"string"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_instruction":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ONRAMP"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"conversion_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"network_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"business_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"currency_symbol":{"type":"string"},"fee_sponsorship":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"custom_actions":{}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"TRANSFER_IN"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"USER_VERIFY"},"verification_token":{"type":"string"},"verifications":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["EVM_OWNER","EVM_WITHDRAWAL","EVM_RDW_AUTHORIZATION","HYPERCORE_SEND","EVM_GASLESS_AUTH"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"},"chain_id":{"type":"number"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"type":"object","properties":{"type":{"type":"string","const":"CONTRACT_CALL"},"payment_id":{"type":"string"},"call":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["chain","to","data","value"]}},"required":["type","payment_id","call"]},{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]},{"type":"object","properties":{"type":{"type":"string","const":"PAYOUT_METHOD"},"payment_id":{"type":"string"},"offramp":{"type":"string"},"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["type","payment_id","offramp","payout_methods"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},"withdrawals":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"issues":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"type":"string"}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},{"type":"null"}]}},"required":["status","token_amounts","recipient_address","transaction_hash","issues"]}},{"type":"null"}]},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"client_redirect_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"geolocation":{"anyOf":[{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]}},"required":["alpha3_country_code","state_code"]},{"type":"null"}]},"fee_sponsorship_state":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","IN_PROGRESS","APPLIED","FAILED"]},"attempted_at":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"failed_at":{"anyOf":[{},{"type":"string"}]},"tx_hash":{"type":"string"},"reason":{"type":"string"}},"required":["status"]},{"type":"null"}]},"declaration":{"anyOf":[{"type":"object","properties":{"auction_authority":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"proof_verifier":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"owner":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"nonce":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"recur_frequency":{"type":"object","properties":{"allow_gaps":{"type":"boolean"},"period_between":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"num_repetitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["allow_gaps","period_between","num_repetitions"]},"step_hashes":{"type":"array","items":{"type":"string","pattern":"^0x[0-9A-Fa-f]{64}$"}},"start_after":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"end_before":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["auction_authority","proof_verifier","owner","nonce","recur_frequency","step_hashes","start_after","end_before"]},{"type":"null"}]}},"required":["payment_id","org_id","status","funded","created_at","updated_at","initiate_fund_by","quoted","fulfilled","current_prices","price_currency","processing_addresses","owner_chain","owner_address","destination_address","withdrawals","client_redirect_url","geolocation","fee_sponsorship_state","declaration"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/spw":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"spw_address":{"type":"string"},"chains":{"type":"array","items":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}}},"required":["spw_address"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"workflow_id":{"type":"string"},"chain_infos":{"type":"array","items":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"counterfactual_exists":{"type":"boolean"}},"required":["chain","counterfactual_exists"]}}},"required":["workflow_id","chain_infos"]},{"type":"null"}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/quotes":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"quote_request":{"type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]},"quotes":{"type":"array","items":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"payment_id":{"type":"string"},"funding_action":{"type":"string","enum":["TRANSFER","CONTRACT_CALL","SIGN"]},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["fees","output_amount","route","payment_id","funding_action"]}},"current_prices":{"type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"state_token":{"type":"string"},"quoted_at":{"anyOf":[{},{"type":"string"}]},"accept_by":{"anyOf":[{},{"type":"string"}]},"fault":{"anyOf":[{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]},{"type":"null"}]},"failures":{"type":"array","items":{"type":"object","properties":{"service_ids":{"type":"array","items":{"type":"string"}},"latency_seconds":{"type":"number"},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}}},"required":["service_ids","latency_seconds"]}},"limits":{"type":"array","items":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}}}},"required":["quote_request","quotes","current_prices","price_currency","state_token","quoted_at","accept_by","fault","failures","limits"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/confirm":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"payment_id":{"type":"string"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"COMPLETE"},{"type":"string","const":"FAILED"},{"type":"string","const":"EXPIRED"},{"type":"string","const":"WITHDRAWN"},{"type":"string","const":"TAINTED"},{"type":"string","const":"UNCONFIRMED"},{"type":"string","const":"WITHDRAW_PENDING"}]},"funded":{"type":"boolean"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"initiate_fund_by":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"quote_request":{"type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"fulfilled":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"},"status":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string","const":"COMPLETE"},{"type":"string","const":"UNREACHABLE"},{"type":"string","const":"FAILED"}]},{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"ATTEMPT_FAILED"}]}]}]},"transaction_hash":{"type":"string"},"superseded":{"type":"boolean"}},"required":["type","net_effect","pieces_info","status"]}}},"required":["route"]},"current_prices":{"type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"customer_id":{"type":"string"},"label":{"type":"string"},"tags":{"type":"array","items":{"type":"string","minLength":1}},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"processing_addresses":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"factory":{"type":"string"}},"required":["chain","address","factory"]}},"owner_chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"owner_address":{"type":"string"},"funder_address":{"type":"string"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_instruction":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ONRAMP"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"conversion_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"network_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"business_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"currency_symbol":{"type":"string"},"fee_sponsorship":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"custom_actions":{}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"TRANSFER_IN"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"USER_VERIFY"},"verification_token":{"type":"string"},"verifications":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["EVM_OWNER","EVM_WITHDRAWAL","EVM_RDW_AUTHORIZATION","HYPERCORE_SEND","EVM_GASLESS_AUTH"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"},"chain_id":{"type":"number"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"type":"object","properties":{"type":{"type":"string","const":"CONTRACT_CALL"},"payment_id":{"type":"string"},"call":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["chain","to","data","value"]}},"required":["type","payment_id","call"]},{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]},{"type":"object","properties":{"type":{"type":"string","const":"PAYOUT_METHOD"},"payment_id":{"type":"string"},"offramp":{"type":"string"},"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["type","payment_id","offramp","payout_methods"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},"withdrawals":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"issues":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"type":"string"}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},{"type":"null"}]}},"required":["status","token_amounts","recipient_address","transaction_hash","issues"]}},{"type":"null"}]},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"client_redirect_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"geolocation":{"anyOf":[{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]}},"required":["alpha3_country_code","state_code"]},{"type":"null"}]},"fee_sponsorship_state":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","IN_PROGRESS","APPLIED","FAILED"]},"attempted_at":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"failed_at":{"anyOf":[{},{"type":"string"}]},"tx_hash":{"type":"string"},"reason":{"type":"string"}},"required":["status"]},{"type":"null"}]},"declaration":{"anyOf":[{"type":"object","properties":{"auction_authority":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"proof_verifier":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"owner":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"nonce":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"recur_frequency":{"type":"object","properties":{"allow_gaps":{"type":"boolean"},"period_between":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"num_repetitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["allow_gaps","period_between","num_repetitions"]},"step_hashes":{"type":"array","items":{"type":"string","pattern":"^0x[0-9A-Fa-f]{64}$"}},"start_after":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"end_before":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["auction_authority","proof_verifier","owner","nonce","recur_frequency","step_hashes","start_after","end_before"]},{"type":"null"}]}},"required":["payment_id","org_id","status","funded","created_at","updated_at","initiate_fund_by","quoted","fulfilled","current_prices","price_currency","processing_addresses","owner_chain","owner_address","destination_address","withdrawals","client_redirect_url","geolocation","fee_sponsorship_state","declaration"]},{"type":"object","properties":{"next_instruction":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ONRAMP"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"conversion_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"network_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"business_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"currency_symbol":{"type":"string"},"fee_sponsorship":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"custom_actions":{}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"TRANSFER_IN"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"USER_VERIFY"},"verification_token":{"type":"string"},"verifications":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["EVM_OWNER","EVM_WITHDRAWAL","EVM_RDW_AUTHORIZATION","HYPERCORE_SEND","EVM_GASLESS_AUTH"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"},"chain_id":{"type":"number"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"type":"object","properties":{"type":{"type":"string","const":"CONTRACT_CALL"},"payment_id":{"type":"string"},"call":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["chain","to","data","value"]}},"required":["type","payment_id","call"]},{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]},{"type":"object","properties":{"type":{"type":"string","const":"PAYOUT_METHOD"},"payment_id":{"type":"string"},"offramp":{"type":"string"},"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["type","payment_id","offramp","payout_methods"]}]}},"required":["next_instruction"]}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/owners/verify":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"owner_address":{"type":"string"},"typed_data":{"type":"object","properties":{"domain":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"types":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"]}}},"primaryType":{"type":"string"},"message":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["domain","types","primaryType","message"]},"signature":{"type":"string"},"login":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["owner_address","typed_data","signature"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/owners/login":{"get":{"parameters":[{"in":"query","name":"address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"verified":{"type":"boolean"},"login":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["verified","login"]},{"type":"null"}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/addresses/admin/blacklist":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","minLength":1,"maxLength":255},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]}},"required":["address","address_family"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"created_at":{"anyOf":[{},{"type":"string"}]},"active":{"type":"boolean"}},"required":["address","address_family","created_at","active"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"limit","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}},{"in":"query","name":"pagination_key","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"created_at":{"anyOf":[{},{"type":"string"}]},"active":{"type":"boolean"}},"required":["address","address_family","created_at","active"]}},"next_pagination_key":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["entries","next_pagination_key"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"delete":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","minLength":1,"maxLength":255},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]}},"required":["address","address_family"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string"},"address_family":{"type":"string","enum":["EVM","SOL","BTC","TON","TRON","ALEO","DOGE","LTC","XRPL","SUI","ZEC"]},"created_at":{"anyOf":[{},{"type":"string"}]},"active":{"type":"boolean"}},"required":["address","address_family","created_at","active"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/history":{"get":{"parameters":[{"in":"query","name":"id_query","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"dest_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"owner_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"limit","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}},{"in":"query","name":"category","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","default":"NEW_OR_FUNDED","type":"string","enum":["ALL","NEW_OR_FUNDED","FUNDED","DONE","STUCK"]}},{"in":"query","name":"categories","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["ALL","NEW_OR_FUNDED","FUNDED","DONE","STUCK"]}}},{"in":"query","name":"label","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"tags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","minLength":1}}},{"in":"query","name":"from","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"to","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"token","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"chain","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"pagination_key","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payment_statuses":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"COMPLETE"},{"type":"string","const":"FAILED"},{"type":"string","const":"EXPIRED"},{"type":"string","const":"WITHDRAWN"},{"type":"string","const":"TAINTED"},{"type":"string","const":"UNCONFIRMED"},{"type":"string","const":"WITHDRAW_PENDING"}]},"funded":{"type":"boolean"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"initiate_fund_by":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"quote_request":{"type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"fulfilled":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"},"status":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string","const":"COMPLETE"},{"type":"string","const":"UNREACHABLE"},{"type":"string","const":"FAILED"}]},{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"ATTEMPT_FAILED"}]}]}]},"transaction_hash":{"type":"string"},"superseded":{"type":"boolean"}},"required":["type","net_effect","pieces_info","status"]}}},"required":["route"]},"current_prices":{"type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"customer_id":{"type":"string"},"label":{"type":"string"},"tags":{"type":"array","items":{"type":"string","minLength":1}},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"processing_addresses":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"factory":{"type":"string"}},"required":["chain","address","factory"]}},"owner_chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"owner_address":{"type":"string"},"funder_address":{"type":"string"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_instruction":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ONRAMP"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"conversion_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"network_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"business_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"currency_symbol":{"type":"string"},"fee_sponsorship":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"custom_actions":{}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"TRANSFER_IN"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"USER_VERIFY"},"verification_token":{"type":"string"},"verifications":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["EVM_OWNER","EVM_WITHDRAWAL","EVM_RDW_AUTHORIZATION","HYPERCORE_SEND","EVM_GASLESS_AUTH"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"},"chain_id":{"type":"number"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"type":"object","properties":{"type":{"type":"string","const":"CONTRACT_CALL"},"payment_id":{"type":"string"},"call":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["chain","to","data","value"]}},"required":["type","payment_id","call"]},{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]},{"type":"object","properties":{"type":{"type":"string","const":"PAYOUT_METHOD"},"payment_id":{"type":"string"},"offramp":{"type":"string"},"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["type","payment_id","offramp","payout_methods"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},"withdrawals":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"issues":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"type":"string"}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},{"type":"null"}]}},"required":["status","token_amounts","recipient_address","transaction_hash","issues"]}},{"type":"null"}]},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"client_redirect_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"geolocation":{"anyOf":[{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]}},"required":["alpha3_country_code","state_code"]},{"type":"null"}]},"fee_sponsorship_state":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","IN_PROGRESS","APPLIED","FAILED"]},"attempted_at":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"failed_at":{"anyOf":[{},{"type":"string"}]},"tx_hash":{"type":"string"},"reason":{"type":"string"}},"required":["status"]},{"type":"null"}]},"declaration":{"anyOf":[{"type":"object","properties":{"auction_authority":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"proof_verifier":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"owner":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"nonce":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"recur_frequency":{"type":"object","properties":{"allow_gaps":{"type":"boolean"},"period_between":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"num_repetitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["allow_gaps","period_between","num_repetitions"]},"step_hashes":{"type":"array","items":{"type":"string","pattern":"^0x[0-9A-Fa-f]{64}$"}},"start_after":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"end_before":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["auction_authority","proof_verifier","owner","nonce","recur_frequency","step_hashes","start_after","end_before"]},{"type":"null"}]}},"required":["payment_id","org_id","status","funded","created_at","updated_at","initiate_fund_by","quoted","fulfilled","current_prices","price_currency","processing_addresses","owner_chain","owner_address","destination_address","withdrawals","client_redirect_url","geolocation","fee_sponsorship_state","declaration"]}},"next_pagination_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"total_payments":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["payment_statuses","next_pagination_key","total_payments"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/payments":{"get":{"parameters":[{"in":"query","name":"id_query","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"dest_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"owner_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"limit","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}},{"in":"query","name":"category","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","default":"NEW_OR_FUNDED","type":"string","enum":["ALL","NEW_OR_FUNDED","FUNDED","DONE","STUCK"]}},{"in":"query","name":"categories","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["ALL","NEW_OR_FUNDED","FUNDED","DONE","STUCK"]}}},{"in":"query","name":"label","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"tags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","minLength":1}}},{"in":"query","name":"from","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"to","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"token","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"chain","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"pagination_key","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"sort_by","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"offset","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"number"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payment_statuses":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"COMPLETE"},{"type":"string","const":"FAILED"},{"type":"string","const":"EXPIRED"},{"type":"string","const":"WITHDRAWN"},{"type":"string","const":"TAINTED"},{"type":"string","const":"UNCONFIRMED"},{"type":"string","const":"WITHDRAW_PENDING"}]},"funded":{"type":"boolean"},"created_at":{"anyOf":[{},{"type":"string"}]},"updated_at":{"anyOf":[{},{"type":"string"}]},"initiate_fund_by":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"quote_request":{"type":"object","properties":{"request":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FIXED_INPUT"},"fixed_input_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"output_asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"funder_fee":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]},"dest_address":{"type":"string"}},"required":["kind","fixed_input_amount","output_asset"]}]},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"allow_rdw":{"type":"boolean"},"onramps":{"type":"array","items":{"type":"string"}},"onramp_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}},"offramps":{"type":"array","items":{"type":"string"}},"offramp_methods":{"type":"array","items":{"type":"string"}},"payment_method_ref":{"type":"string"},"customer_ip_address":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"customer_id":{"type":"string"},"label":{"type":"string","maxLength":255},"tags":{"type":"array","items":{"type":"string","minLength":1}},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flags":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}},"in_house_only":{"type":"boolean"},"rev_share_name":{"type":"string"},"fee_sponsorship":{"type":"object","properties":{"grant_payload":{"type":"string"},"grant_signature":{"type":"string"}},"required":["grant_payload","grant_signature"]},"allow_unsafe_transfer_out":{"type":"boolean"},"show_all_issues":{"type":"boolean"},"allow_exceed_max_input_limit":{"type":"boolean"},"allow_unsafe_slippage":{"type":"boolean"},"use_intent_refund":{"type":"boolean"},"hops":{"type":"array","items":{"type":"string"}}},"required":["request","price_currency"]},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"fulfilled":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string"},"conversion_fees":{"type":"string"},"network_fees":{"type":"string"},"business_fees":{"type":"string"},"currency_symbol":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"fee_sponsorship":{"type":"string"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"tx_id":{"type":"string"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user_fund","rdw_transfer","onramp","offramp","poll","bridge","rev_share","transfer_out","convert","custom_call","fee_sponsorship"]},"custom_actions":{"type":"object","properties":{"actions":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"CallImmediateAction"},"target":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{"type":"string"}},"required":["type","target","value","calldata"]},{"type":"object","properties":{"type":{"type":"string","const":"SymbolicOpsAction"},"ops":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"Store"},"value":{},"result":{"type":"string"}},"required":["type","value","result"]},{"type":"object","properties":{"type":{"type":"string","const":"MultiStore"},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]}}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"BytesConcat"},"a":{"type":"string"},"b":{"type":"string"},"result":{"type":"string"}},"required":["type","a","b","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Require"},"control":{"type":"string"}},"required":["type","control"]},{"type":"object","properties":{"type":{"type":"string","const":"Jump"},"control":{"type":"string"},"next_instruction":{"type":"string"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpImmediate"},"control":{"type":"string"},"next_instruction":{"type":"number"}},"required":["type","control","next_instruction"]},{"type":"object","properties":{"type":{"type":"string","const":"JumpForward"},"control":{"type":"string"},"skip_count":{"type":"number"}},"required":["type","control","skip_count"]},{"type":"object","properties":{"type":{"type":"string","const":"EmitEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"InfoEvent"},"data":{"type":"string"}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","const":"This"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DeclarationHash"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"CurrentIteration"},"result":{"type":"string"}},"required":["type","result"]},{"type":"object","properties":{"type":{"type":"string","const":"Call"},"target":{"type":"string"},"value":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","target","value","selector","args"]},{"type":"object","properties":{"type":{"type":"string","const":"CallImmediate"},"target":{},"value":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"calldata":{},"result":{"type":"string"}},"required":["type","target","value","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"StaticCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCall"},"target":{"type":"string"},"selector":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"result":{"type":"string"}},"required":["type","target","selector","args","result"]},{"type":"object","properties":{"type":{"type":"string","const":"DelegateCallImmediate"},"target":{},"calldata":{},"result":{"type":"string"}},"required":["type","target","calldata","result"]},{"type":"object","properties":{"type":{"type":"string","const":"ParseTuple"},"data":{"type":"string"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}}},"required":["type","data","elements"]},{"type":"object","properties":{"type":{"type":"string","const":"BuildTuple"},"elements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"is_dynamic":{"type":"boolean"}},"required":["name","is_dynamic"]}},"result":{"type":"string"}},"required":["type","elements","result"]}]}}},"required":["type","ops"]}]}},"user_estimated_gas":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["actions","user_estimated_gas"]}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]},"in_house":{"type":"boolean"},"status":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string","const":"COMPLETE"},{"type":"string","const":"UNREACHABLE"},{"type":"string","const":"FAILED"}]},{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"ATTEMPT_FAILED"}]}]}]},"transaction_hash":{"type":"string"},"superseded":{"type":"boolean"}},"required":["type","net_effect","pieces_info","status"]}}},"required":["route"]},"current_prices":{"type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"price_currency":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"customer_id":{"type":"string"},"label":{"type":"string"},"tags":{"type":"array","items":{"type":"string","minLength":1}},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"processing_addresses":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"address":{"type":"string"},"factory":{"type":"string"}},"required":["chain","address","factory"]}},"owner_chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"owner_address":{"type":"string"},"funder_address":{"type":"string"},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_instruction":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ONRAMP"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}},"supersedable_payment_summaries":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string"},"quoted":{"type":"object","properties":{"fees":{"type":"object","properties":{"total_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"conversion_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"network_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"business_fees":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"currency_symbol":{"type":"string"},"fee_sponsorship":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol","fee_sponsorship"]},"output_amount":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["asset","amount"]},"onramp":{"type":"string"},"onramp_method":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]},"offramp":{"type":"string"},"offramp_method":{"type":"string"},"payment_method_ref":{"type":"string"},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER","OFFRAMP"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}},"produce":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","RDW","REV_SHARE","BRIDGE","SPONSOR","RAMP_DEPOSIT"]},"resource":{"type":"object","properties":{"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"property":{"type":"string","enum":["APPROVAL","BALANCE","SIDE_EFFECT"]}},"required":["asset","property"]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["account","resource","amount"]}}},"required":["consume","produce"]},"pieces_info":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"custom_actions":{}},"required":["type"]}},"step_index":{"type":"number"},"custom_actions_input_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"in_house":{"type":"boolean"}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["fees","output_amount","route"]},"payout_destination":{"anyOf":[{"type":"object","properties":{"payout_method":{"type":"string"},"beneficiary":{"type":"string"},"account_last4":{"type":"string"}}},{"type":"null"}]},"destination_address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_id","quoted","destination_address"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"TRANSFER_IN"},"payment_id":{"type":"string"},"funding_page_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"deposit_info":{"type":"array","items":{"type":"object","properties":{"deposit_token":{"type":"string"},"deposit_amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"deposit_address":{"type":"string"},"deposit_chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]}},"required":["deposit_token","deposit_amount","deposit_address","deposit_chain"]}}},"required":["type","payment_id","funding_page_url","deposit_info"]},{"type":"object","properties":{"type":{"type":"string","const":"USER_VERIFY"},"verification_token":{"type":"string"},"verifications":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["EVM_OWNER","EVM_WITHDRAWAL","EVM_RDW_AUTHORIZATION","HYPERCORE_SEND","EVM_GASLESS_AUTH"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"},"chain_id":{"type":"number"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"type":"object","properties":{"type":{"type":"string","const":"CONTRACT_CALL"},"payment_id":{"type":"string"},"call":{"type":"object","properties":{"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"to":{"type":"string"},"data":{"type":"string"},"value":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["chain","to","data","value"]}},"required":["type","payment_id","call"]},{"type":"object","properties":{"type":{"type":"string","const":"KYC"},"provider_id":{"type":"string"},"track":{"type":"string"},"action":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"FORM"},"form":{"type":"object","properties":{"schema":{"type":"object","properties":{"type":{"type":"string","const":"object"},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","const":"string"},"title":{"type":"string"},"description":{"type":"string"},"format":{"type":"string","enum":["date","email","uri"]},"enum":{"type":"array","items":{"type":"string"}},"minLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxLength":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["type","title"]}},"required":{"default":[],"type":"array","items":{"type":"string"}}},"required":["type","properties"]},"provider_ref":{"type":"string"}},"required":["schema","provider_ref"]}},"required":["kind","form"]},{"type":"object","properties":{"kind":{"type":"string","const":"PHONE_OTP"},"phone_number":{"type":"string","format":"e164","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["kind","phone_number"]},{"type":"object","properties":{"kind":{"type":"string","const":"REDIRECT"},"url":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","const":"SDK"},"token":{"type":"string"}},"required":["kind","token"]},{"type":"object","properties":{"kind":{"type":"string","const":"WAIT"},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","retry_after_seconds"]}]},"reason":{"type":"string"}},"required":["type","provider_id","track","action"]},{"type":"object","properties":{"type":{"type":"string","const":"PAYOUT_METHOD"},"payment_id":{"type":"string"},"offramp":{"type":"string"},"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["type","payment_id","offramp","payout_methods"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},"withdrawals":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"issues":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"type":"string"},{"type":"string"}]},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"type":"string"},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"type":"string"}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}},{"type":"null"}]}},"required":["status","token_amounts","recipient_address","transaction_hash","issues"]}},{"type":"null"}]},"parent_payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"client_redirect_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"geolocation":{"anyOf":[{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]}},"required":["alpha3_country_code","state_code"]},{"type":"null"}]},"fee_sponsorship_state":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","IN_PROGRESS","APPLIED","FAILED"]},"attempted_at":{"anyOf":[{},{"type":"string"}]},"completed_at":{"anyOf":[{},{"type":"string"}]},"failed_at":{"anyOf":[{},{"type":"string"}]},"tx_hash":{"type":"string"},"reason":{"type":"string"}},"required":["status"]},{"type":"null"}]},"declaration":{"anyOf":[{"type":"object","properties":{"auction_authority":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"proof_verifier":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"owner":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"nonce":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"recur_frequency":{"type":"object","properties":{"allow_gaps":{"type":"boolean"},"period_between":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"num_repetitions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["allow_gaps","period_between","num_repetitions"]},"step_hashes":{"type":"array","items":{"type":"string","pattern":"^0x[0-9A-Fa-f]{64}$"}},"start_after":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"end_before":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["auction_authority","proof_verifier","owner","nonce","recur_frequency","step_hashes","start_after","end_before"]},{"type":"null"}]}},"required":["payment_id","org_id","status","funded","created_at","updated_at","initiate_fund_by","quoted","fulfilled","current_prices","price_currency","processing_addresses","owner_chain","owner_address","destination_address","withdrawals","client_redirect_url","geolocation","fee_sponsorship_state","declaration"]}},"next_pagination_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"total_payments":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["payment_statuses","next_pagination_key","total_payments"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/orgs/stats":{"get":{"parameters":[{"in":"query","name":"from","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"to","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{},{"type":"string"}]}},{"in":"query","name":"deposit_labels","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"withdrawal_labels","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string"}}},{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"timezone","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"totals":{"type":"object","properties":{"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique_wallets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["volume_usd","order_count","unique_wallets"]},"orders_timeseries":{"type":"object","properties":{"daily":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["bucket_start","volume_usd","order_count"]}},"monthly":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["bucket_start","volume_usd","order_count"]}},"yearly":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["bucket_start","volume_usd","order_count"]}}},"required":["daily","monthly","yearly"]},"deposits_vs_withdrawals":{"type":"object","properties":{"daily":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"deposits_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"withdrawals_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["bucket_start","deposits_usd","withdrawals_usd"]}},"monthly":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"deposits_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"withdrawals_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["bucket_start","deposits_usd","withdrawals_usd"]}},"yearly":{"type":"array","items":{"type":"object","properties":{"bucket_start":{"anyOf":[{},{"type":"string"}]},"deposits_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"withdrawals_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["bucket_start","deposits_usd","withdrawals_usd"]}}},"required":["daily","monthly","yearly"]},"top_payment_methods":{"type":"object","properties":{"entries":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"crypto"},"token":{"type":"string"},"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["kind","token","chain","volume_usd","order_count","share"]},{"type":"object","properties":{"kind":{"type":"string","const":"fiat"},"ramp_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["kind","ramp_name","volume_usd","order_count","share"]}]}},"other":{"anyOf":[{"type":"object","properties":{"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["volume_usd","order_count","share"]},{"type":"null"}]}},"required":["entries","other"]},"top_assets_acquired":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"chain":{"anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","chain","volume_usd","order_count","share"]}},"other":{"anyOf":[{"type":"object","properties":{"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["volume_usd","order_count","share"]},{"type":"null"}]}},"required":["entries","other"]},"top_markets":{"type":"array","items":{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"volume_usd":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"unique_wallets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"order_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["alpha3_country_code","volume_usd","unique_wallets","order_count","share"]}}},"required":["totals","orders_timeseries","deposits_vs_withdrawals","top_payment_methods","top_assets_acquired","top_markets"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/onramp":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"redirect_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"referrer_domain":{"type":"string","pattern":"^https:\\/\\/.+$"},"embed_url":{"type":"string","minLength":1},"terms_accepted_at":{"anyOf":[{},{"type":"string"}]}},"required":["payment_id"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"HOSTED"},"funding_page_onramp_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"client_secret":{"type":"string"},"client_redirect_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"onramp_redirect_url":{"type":"string","minLength":1}},"required":["kind","funding_page_onramp_url","client_redirect_url","onramp_redirect_url"]},{"type":"object","properties":{"kind":{"type":"string","const":"HEADLESS"},"provider":{"type":"string"},"capture":{"allOf":[{"type":"object","properties":{"payin_methods":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}}},"required":["payin_methods"]},{"oneOf":[{"type":"object","properties":{"surface":{"type":"string","const":"PROVIDER_SDK"},"sdk":{"type":"object","properties":{"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["params"]}},"required":["surface","sdk"]},{"type":"object","properties":{"surface":{"type":"string","const":"PROVIDER_LINK"},"link":{"type":"object","properties":{"url":{"type":"string","pattern":"^https:\\/\\/.+$"},"post_message_origin":{"type":"string","pattern":"^https:\\/\\/.+$"},"redirect_url":{"type":"string","minLength":1}},"required":["url","post_message_origin"]}},"required":["surface","link"]}]}]}},"required":["kind","provider","capture"]}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/onramp/redirect":{"get":{"parameters":[{"in":"query","name":"payment_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/offramp/payout-methods":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"HEADLESS"},"offramp":{"type":"string"},"payout_method":{"type":"string"},"sandbox":{"anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]},"fiat":{"type":"string"},"country":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","minLength":3,"maxLength":3}]},"form_token_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"clear_fields":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z0-9_]+(\\.[A-Za-z0-9_]+)*$"},"additionalProperties":{"type":"string"}}},"required":["kind","offramp","payout_method","form_token_id","clear_fields"]},{"type":"object","properties":{"kind":{"default":"HOSTED","type":"string","const":"HOSTED"},"offramp":{"type":"string"},"payout_method":{"type":"string"},"redirect_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"sandbox":{"anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]},"fiat":{"type":"string"},"country":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","minLength":3,"maxLength":3}]},"referrer_domain":{"type":"string","pattern":"^https:\\/\\/.+$"}},"required":["offramp","payout_method","redirect_url"]}]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"HOSTED"},"hosted_session_url":{"type":"string","pattern":"^https:\\/\\/.+$"},"external_id":{"type":"string"},"redirect_url":{"type":"string","minLength":1}},"required":["kind","hosted_session_url","external_id","redirect_url"]},{"type":"object","properties":{"kind":{"type":"string","const":"HEADLESS"},"payout_method":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}},"required":["kind","payout_method"]}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"get":{"parameters":[{"in":"query","name":"offramp","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}},{"in":"query","name":"include_archived","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["payout_methods"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}},"patch":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"offramp":{"type":"string"},"sandbox":{"anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]},"payment_method_ref":{"type":"string"},"archive":{"type":"boolean"}},"required":["offramp","payment_method_ref","archive"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payout_methods":{"type":"array","items":{"type":"object","properties":{"payment_method_ref":{"type":"string"},"payout_method":{"type":"string"},"category":{"type":"string"},"country_alpha3":{"type":"string","minLength":3,"maxLength":3},"beneficiary":{"type":"string"},"account_last4":{"type":"string"},"archived_at":{"anyOf":[{"anyOf":[{},{"type":"string"}]},{"type":"null"}]}},"required":["payment_method_ref"]}}},"required":["payout_methods"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/offramp/payout-methods/forms":{"get":{"parameters":[{"in":"query","name":"offramp","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"query","name":"fiat","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"in":"query","name":"country","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","minLength":3,"maxLength":3}]}},{"in":"query","name":"sandbox","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"boolean"},{"type":"number","const":0},{"type":"number","const":1},{"type":"string","const":"0"},{"type":"string","const":"1"},{"type":"string","const":"false"},{"type":"string","const":"true"}]}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resolved_country":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}]},"payout_countries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"alpha2":{"type":"string","minLength":2,"maxLength":2},"alpha3":{"type":"string","minLength":3,"maxLength":3}},"required":["name","alpha2","alpha3"]}},"forms":{"type":"array","items":{"type":"object","properties":{"payout_method":{"type":"string"},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"content_hash":{"type":"string"}},"required":["payout_method","schema"]}}},"required":["resolved_country","payout_countries","forms"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/methods":{"get":{"parameters":[{"in":"query","name":"input","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]}},{"in":"query","name":"output","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."}},{"in":"query","name":"customer_ip_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]}},{"in":"query","name":"flags","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","IN_HOUSE_EDGES","KYC_DONOR","ORG_BETA_EDGES","ORG_EDGES","SHOW_ALL_ISSUES"]}}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"providers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}}},"in_house":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string","enum":["CREDIT_CARD","DEBIT_CARD","ACH","FIAT_BALANCE","TOKEN_BALANCE","APPLE_PAY","PAYPAL","VENMO","REVOLUT","GOOGLE_PAY","SEPA","FASTER_PAYMENTS","PIX","SPEI","UPI","WIRE","SWIFT"]}}}},"required":["providers"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/geolocation":{"get":{"parameters":[{"in":"query","name":"customer_ip_address","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"alpha3_country_code":{"type":"string","minLength":3,"maxLength":3},"alpha2_country_code":{"type":"string","minLength":2,"maxLength":2},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]},"default_currency":{"type":"string"}},"required":["alpha3_country_code","alpha2_country_code","state_code"]},{"type":"null"}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/withdraw":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"withdraw_from":{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"}},"required":["withdraw_from","token_amounts","recipient_address"]},{"oneOf":[{"type":"object","properties":{"withdraw_type":{"default":"PAYMENT","type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"account_type":{"type":"string","enum":["intent","spw","rdw"]},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["payment_id","token_amounts","recipient_address"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"}},"required":["withdraw_type","rdw_address","token_amounts","recipient_address"]}]}]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["eip712","erc191"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payment_id":{"type":"string"},"withdraw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_authorization":{"type":"string"},"state_token":{"type":"string"},"submit_by":{"anyOf":[{},{"type":"string"}]}},"required":["signature_type","withdraw_id","withdraw_authorization","state_token"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/withdraw/confirm":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"signature":{"type":"string"},"state_token":{"type":"string"},"polling_timeout":{"default":300000,"type":"integer","minimum":0,"maximum":300000}},"required":["signature","state_token"]},{"type":"object","properties":{"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token_amounts":{"type":"array","items":{"type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["token","amount"]}},"recipient_address":{"type":"string"},"owner_signature":{"type":"string"},"payload":{"type":"string"},"account_type":{"type":"string","enum":["intent","spw","rdw"]},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]},"polling_timeout":{"default":300000,"type":"integer","minimum":0,"maximum":300000}},"required":["payment_id","token_amounts","recipient_address","owner_signature"]}]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"withdraw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_id":{"type":"string"},"submit_by":{"anyOf":[{},{"type":"string"}]}},"required":["withdraw_id","status","transaction_hash"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/withdraw/status":{"get":{"parameters":[{"in":"query","name":"withdraw_id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"withdraw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["PENDING","SUCCESS","FAILED","EXPIRED"]},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_id":{"type":"string"},"submit_by":{"anyOf":[{},{"type":"string"}]}},"required":["withdraw_id","status","transaction_hash"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/balances":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"oneOf":[{"type":"object","properties":{"source":{"type":"string","const":"EXTERNAL"},"targets":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["address","token"]}}},"required":["source","targets"]},{"type":"object","properties":{"source":{"type":"string","const":"OWNER"},"owner":{"type":"string"},"scope":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","payment_id"]},{"type":"object","properties":{"kind":{"type":"string","const":"EXTRA"}},"required":["kind"]}]},"tokens":{"type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}}},"required":["source","owner","scope"]}]}},"required":["query"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"balance_results":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"value":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"withdrawal_fee":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_withdrawal_amount":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["kind","amount","withdrawal_fee","min_withdrawal_amount"]},{"type":"object","properties":{"kind":{"type":"string","const":"error"}},"required":["kind"]}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]}},"required":["address","token","value","withdraw_from","payment_gist"]}},"future_withdrawable_balances":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"value":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"withdrawal_fee":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]},"min_withdrawal_amount":{"anyOf":[{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},{"type":"null"}]}},"required":["kind","amount","withdrawal_fee","min_withdrawal_amount"]},{"type":"object","properties":{"kind":{"type":"string","const":"error"}},"required":["kind"]}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"deadline":{"anyOf":[{},{"type":"string"}]}},"required":["address","token","value","withdraw_from","payment_gist","deadline"]}}},"required":["balance_results"]},{"type":"object","properties":{"balance_results":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"value":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}},"required":["kind","amount"]},{"type":"object","properties":{"kind":{"type":"string","const":"error"}},"required":["kind"]}]}},"required":["address","token","value"]}}},"required":["balance_results"]}]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/issues":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"owner_address":{"type":"string"}},"required":["owner_address"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"amount"},"asset":{"anyOf":[{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}],"title":"Asset","description":"An asset."},"given":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"downstream_limits":{"type":"object","properties":{"min":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"max":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}},"source":{"type":"string"},"message":{"type":"string"},"reason":{"type":"string","enum":["TOO_LOW","TOO_HIGH","UNEXPECTEDLY_LOW","UNEXPECTEDLY_HIGH","NO_VALID_AMOUNT","UNKNOWN"]}},"required":["kind","asset","given","limits","source","message","reason"]},{"type":"object","properties":{"kind":{"type":"string","const":"funding"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]}},"required":["kind","token","balance"]},{"type":"object","properties":{"kind":{"type":"string","const":"parked_fund"},"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"balance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"#":{"type":"string"}},"required":["#"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]},"severity":{"type":"string","enum":["HIGH","LOW"]},"payment_gist":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","const":"buy"},"destination_address":{"type":"string"},"destination_token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}},"required":["op","destination_address","destination_token"]},{"type":"null"}]},"withdraw_from":{"anyOf":[{"oneOf":[{"type":"object","properties":{"withdraw_type":{"type":"string","const":"PAYMENT"},"payment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"withdraw_account":{"type":"string","enum":["INTENT","SPW","RDW"]}},"required":["withdraw_type","payment_id","withdraw_account"]},{"type":"object","properties":{"withdraw_type":{"type":"string","const":"EXTRA_RDW_BALANCE"},"rdw_address":{"type":"string"}},"required":["withdraw_type","rdw_address"]}]},{"type":"null"}]}},"required":["kind","token","balance","classification","severity","payment_gist","withdraw_from"]},{"type":"object","properties":{"kind":{"type":"string","const":"owner"},"message":{"type":"string"},"mitigation":{"anyOf":[{"type":"string","const":"change"},{"type":"string","const":"verify"}]}},"required":["kind","message","mitigation"]},{"type":"object","properties":{"kind":{"type":"string","const":"geolocation"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"destination"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"other"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payin_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"payout_method"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"provider"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"unknown"},"message":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"org_configuration"},"message":{"type":"string"},"rev_share_pct":{"type":"string"},"total_pct":{"type":"string"},"threshold":{"type":"string"}},"required":["kind","message"]},{"type":"object","properties":{"kind":{"type":"string","const":"kyc"},"message":{"type":"string"},"provider_id":{"type":"string"}},"required":["kind","message"]}]}}},"required":["issues"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/transfer-tx":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"sender":{"type":"string"},"destination":{"type":"string"}},"required":["token","amount","sender","destination"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"transaction":{"type":"string"},"warning":{"type":"string"}},"required":["transaction"]}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/prices":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fiat":{"title":"Fiat","description":"A fiat asset.","anyOf":[{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"},"symbol":{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}},"required":["symbol"]},{"type":"string","pattern":"^[a-zA-Z]\\w{0,7}$"}]},"tokens":{"type":"array","items":{"title":"Token","description":"A token asset.","anyOf":[{"type":"string"},{"type":"object","properties":{"chain":{"title":"Chain","description":"A chain.","anyOf":[{"type":"string"},{"type":"object","properties":{"network":{"type":"string"}},"required":["network"]}]},"address":{"type":"string"}},"required":["chain","address"]}]}}},"required":["fiat","tokens"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"anyOf":[{"type":"string"},{"type":"string"}]},"additionalProperties":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"}}}}},"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/webhooks/ramp-network":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purchase":{"type":"object","properties":{"id":{"type":"string"},"receiverAddress":{"type":"string"},"purchaseViewToken":{"type":"string"}},"required":["id","receiverAddress","purchaseViewToken"],"additionalProperties":{}}},"required":["purchase"],"additionalProperties":{}}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}},"/payments/webhooks/noah":{"post":{"parameters":[],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"responses":{"400":{"description":"InputError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conflict"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"451":{"description":"WalletTainted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTainted"}}}}}}}},"components":{"schemas":{"InputError":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]},"Unauthorized":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]},"Forbidden":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]},"NotFound":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]},"Conflict":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]},"RateLimited":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string"},"errors":{"type":"object","properties":{}}},"required":["errors"]},"WalletTainted":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]}}}}