{"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"},"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"},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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})?$"}]}}}},"required":["id","name","settings","created_at","features"]}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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"}}}},"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})?$"}]}}}},"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"}}}},"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})?$"}]}}},"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","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"}}}},"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":{"anyOf":[{"anyOf":[{"type":"string","enum":[]},{"type":"string","enum":["orgs:update","orgs:delete","orgs:members:read","orgs:members:update","orgs:members:delete","orgs:invites:create","orgs:invites:read","orgs:invites:delete","orgs:api-keys:create","orgs:api-keys:read","orgs:api-keys:update","orgs:api-keys:delete","orgs:workflows:read","orgs:rev-share:create","orgs:rev-share:read","orgs:rev-share:update","orgs:rev-share:delete","orgs:webhooks:create","orgs:webhooks:read","orgs:webhooks:update","orgs:webhooks:delete"]}]},{"type":"string","enum":["orgs:admin:read","orgs:credit:update","orgs:features:update","orgs:config:update"]}]}},"excludes":{"type":"array","items":{"anyOf":[{"anyOf":[{"type":"string","enum":[]},{"type":"string","enum":["orgs:update","orgs:delete","orgs:members:read","orgs:members:update","orgs:members:delete","orgs:invites:create","orgs:invites:read","orgs:invites:delete","orgs:api-keys:create","orgs:api-keys:read","orgs:api-keys:update","orgs:api-keys:delete","orgs:workflows:read","orgs:rev-share:create","orgs:rev-share:read","orgs:rev-share:update","orgs:rev-share:delete","orgs:webhooks:create","orgs:webhooks:read","orgs:webhooks:update","orgs:webhooks:delete"]}]},{"type":"string","enum":["orgs:admin:read","orgs:credit:update","orgs:features:update","orgs:config:update"]}]}}}}},"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"}}}},"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"}}}},"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":"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}$"}]},"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","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"},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"}},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]}]},"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":"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"]}]}},"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":"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":"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"}]},"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","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"}}}},"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"}}}},"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":"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}$"}]},"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","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"},"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":"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}$"}]},"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","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"},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"},"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":"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":"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":"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"]}]}}},"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"}}}},"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":"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}$"}]},"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","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"},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"}},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]}]},"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":"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"]}]}},"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":"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":"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"}]},"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","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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]}]}},"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"}}}},"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"}}}},"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"}}}},"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":"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":"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}$"}]},"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","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"},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"}},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]}]},"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":"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"]}]}},"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":"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":"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"}]},"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","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"}}}},"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":"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":"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}$"}]},"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","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"},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"}},"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}$"}]}},"required":["total_fees","conversion_fees","network_fees","business_fees","currency_symbol"]},"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","UPI","WIRE"]},"route":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["ONRAMP","ONCHAIN_STEP","USER_FUND"]},"net_effect":{"type":"object","properties":{"consume":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string","enum":["USER","DEST","HALLIDAY","SPW","REV_SHARE","BRIDGE"]},"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","REV_SHARE","BRIDGE"]},"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","onramp","poll","bridge","rev_share","transfer_out","convert","custom_call"]},"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":"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"]},"signature_type":{"type":"string","enum":["EIP712","EIP191"]},"payload":{"type":"string"}},"required":["reason","signature_type","payload"]}}},"required":["type","verification_token","verifications"]}]},"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":"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"]}]}},"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":"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":"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"}]},"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","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"}}}},"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"}}}},"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"}}}},"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"}}}},"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","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"}}}},"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","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"]}}}},"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"}}}},"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","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"},"account_type":{"type":"string","enum":["intent","spw"]},"withdraw_account":{"type":"string","enum":["INTENT","SPW"]}},"required":["payment_id","token_amounts","recipient_address"]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"eip712"},"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":{"type":{"type":"string","const":"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"]}]}}}},"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"}}}},"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"]},"withdraw_account":{"type":"string","enum":["INTENT","SPW"]},"polling_timeout":{"default":300000,"type":"integer","minimum":0,"maximum":300000}},"required":["payment_id","token_amounts","recipient_address","owner_signature"]}]}}}},"responses":{"200":{"description":"Response payload","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payment_id":{"type":"string"},"status":{"anyOf":[{"type":"string","const":"SUCCESS"},{"type":"string","const":"PENDING"}]},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["payment_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"}}}},"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"]},"withdraw_account":{"default":"SPW","type":"string","enum":["INTENT","SPW"]},"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"]},"withdraw_account":{"default":"SPW","type":"string","enum":["INTENT","SPW"]},"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"}}}},"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"}}}},"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"}}}},"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"]},"WalletTainted":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"errors":{"type":"object","properties":{}}},"required":["errors"]}}}}