{"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/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":"features","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}}}],"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"}}},"required":["fiats","tokens"]}}}}},"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":"features","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}}}],"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"}}},"required":["fiats","tokens"]}}}}},"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/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":"features","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}}}],"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"}}},"required":["fiats","tokens"]}}}}},"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":"features","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}}}],"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"}}},"required":["fiats","tokens"]}}}}},"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"]},"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"]},"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"}}},"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"]}},"required":["id","name","settings","membership"]}},"next_pagination_key":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["orgs","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"}}}}}}},"/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"}}},"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":{"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"}}}}}},"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/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"},"settings":{"type":"object","properties":{"display_name":{"type":"string"}}},"created_at":{"anyOf":[{},{"type":"string"}]},"features":{"type":"array","items":{"type":"string"}},"config":{"type":"object","properties":{"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"integer","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"]}]},"bps":{"type":"integer","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]}}},"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"}]}},"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"}]}},"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)$"},"label":{"type":"string"},"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"}]}},"required":["id","webhook_id","label","workflow_id","event_type","status","attempts","max_attempts","last_status_code","last_error","last_attempt_at","next_attempt_at","created_at"]}},"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"}}},"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"}}},"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}$"}}},"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}$"}}},"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}$"}}},"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}$"}}},"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}$"}}},"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"}]}},"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"}]},"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"}]},"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"}]}},"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"}]},"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"}}},"required":["fiats","tokens"]}}}}},"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"}}},"required":["fiats","tokens"]}}}}},"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"]},"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"]}}}}}},"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"]},"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"]},"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":{"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"integer","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"]}]},"bps":{"type":"integer","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]}}}},"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/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"},"settings":{"type":"object","properties":{"display_name":{"type":"string"}}},"created_at":{"anyOf":[{},{"type":"string"}]},"features":{"type":"array","items":{"type":"string"}},"config":{"type":"object","properties":{"gas_fee_subsidization":{"type":"string","allOf":[{"pattern":"^(\\d+|\\d*\\.\\d+)$"},{"pattern":"^\\d+(\\.\\d{1,2})?$"}]},"fee_schedule":{"type":"object","properties":{"default_bps":{"type":"integer","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"]}]},"bps":{"type":"integer","minimum":0,"maximum":500}},"required":["bps"]}}},"required":["default_bps"]}}},"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"}]},"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"}}},"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/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":"integer","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"integer","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":"integer","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"integer","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":"integer","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"integer","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":"integer","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"integer","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":"integer","minimum":0,"exclusiveMaximum":10000},"min_bps":{"type":"integer","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"}}}}}}},"/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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]},"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"}},"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"},"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"},"destination_address":{"type":"string"},"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"]}}},"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"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":"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"]}]}},"required":["type","provider_id","track","action"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"SUCCESS"},{"type":"string","const":"FAILED"},{"type":"string","const":"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]}},"required":["type","net_effect","pieces_info"]}},"latency_seconds":{"type":"number"},"sponsorship":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"payment_id":{"type":"string"}},"required":["fees","output_amount","route","payment_id"]}},"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]},"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"}},"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"},"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"},"destination_address":{"type":"string"},"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"]}}},"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"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":"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"]}]}},"required":["type","provider_id","track","action"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"SUCCESS"},{"type":"string","const":"FAILED"},{"type":"string","const":"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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"]}}},"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"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":"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"]}]}},"required":["type","provider_id","track","action"]}]}},"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"}}}}}}},"/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":"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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]},"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"}},"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"},"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"},"destination_address":{"type":"string"},"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"]}}},"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"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":"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"]}]}},"required":["type","provider_id","track","action"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"SUCCESS"},{"type":"string","const":"FAILED"},{"type":"string","const":"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":"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."},"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"]}},"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},"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)$"},"features":{"type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]}},"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"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND","FEE_SPONSORSHIP","RDW_TRANSFER"]},"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"]},"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"]},"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","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"]},"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"}},"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"},"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"},"destination_address":{"type":"string"},"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"]}}},"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]},{"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":"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"]}]}},"required":["type","provider_id","track","action"]}]},"issues":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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":{"anyOf":[{"type":"string","const":"PENDING"},{"type":"string","const":"SUCCESS"},{"type":"string","const":"FAILED"},{"type":"string","const":"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":{"anyOf":[{"type":"string","const":"amount"},{"type":"string","const":"amount-downstream"}]},"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"]}},"required":["kind","token","balance","classification","severity"]},{"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":"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":"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:\\/\\/.+$"}},"required":["payment_id","redirect_url"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"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":["funding_page_onramp_url","client_redirect_url","onramp_redirect_url"]}}}},"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"}}}}}}},"/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":"features","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"string","enum":["BETA_EDGES","ORG_BETA_EDGES","ORG_EDGES"]}}}],"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"]}}}},"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},"state_code":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"string","const":""}]},"default_currency":{"type":"string"}},"required":["alpha3_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","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","anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["eip712","erc191"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payment_id":{"type":"string"},"withdraw_authorization":{"type":"string"},"state_token":{"type":"string"}},"required":["type","signature_type","payment_id","withdraw_authorization","state_token"]},{"type":"object","properties":{"signature_type":{"type":"string","const":"EIP712"},"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"}},"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","anyOf":[{"type":"object","properties":{"payment_id":{"type":"string"},"status":{"anyOf":[{"type":"string","const":"SUCCESS"},{"type":"string","const":"PENDING"}]},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"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)$"}},"required":["payment_id","status","transaction_hash","withdraw_id"]},{"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"}]}},"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"}]}},"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":{"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)$"},"custom_queries":{"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"]}},"near_queries":{"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"]}}}}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","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"]}]},"account":{"type":"string","enum":["intent","spw","rdw"]},"withdraw_account":{"default":"SPW","type":"string","enum":["INTENT","SPW","RDW"]},"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"]}]}},"required":["address","token","account","value"]}},"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"]}]},"account":{"type":"string","enum":["intent","spw","rdw"]},"withdraw_account":{"default":"SPW","type":"string","enum":["INTENT","SPW","RDW"]},"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"]}]},"deadline":{"anyOf":[{},{"type":"string"}]}},"required":["address","token","account","value","deadline"]}}},"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/balances/extra":{"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"},"custom_queries":{"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":["owner_address"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"extra_balances":{"type":"array","items":{"type":"object","properties":{"rdw_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"]}]},"amount":{"type":"string","pattern":"^(\\d+|\\d*\\.\\d+)$"},"workflow_gist":{"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"]},"classification":{"type":"string","enum":["MISSENT","STUCK","UNDERFUNDED","STALLED","EXTRA","SLIPPED","DELAYED"]}},"required":["rdw_address","token","amount","workflow_gist"]}}},"required":["extra_balances"]}}}},"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"}},"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"}}}}}}}},"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"]}}}}