{
  "openapi": "3.1.0",
  "info": {
    "title": "Etherfuse FX API",
    "description": "Partner-facing ramp API, version 2: payment accounts, quotes, orders and webhooks.",
    "license": {
      "name": "Proprietary"
    },
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.sand.etherfuse.com",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/auth/launch": {
      "servers": [
        {
          "url": "https://sandbox.etherfuse.com",
          "description": "Sandbox app host, not the API host"
        }
      ],
      "get": {
        "tags": [
          "Authentication"
        ],
        "summary": "Launch a user via postMessage",
        "description": "> ⚠️ **Different host.** Like [POST /auth/launch](/v2/api-reference/authentication/launch-a-user-into-the-app), this lives on the **app host** (`app.etherfuse.com` or `sandbox.etherfuse.com`), **not** the API host. It is a browser page, not a JSON API.\n\nUse this variant of launch to embed the flow in an **iframe or popup**. Open `/auth/launch` with no body. The page asks your page for credentials over `postMessage`, and you reply. Use it when you don't want to render a [form POST](/v2/api-reference/authentication/launch-a-user-into-the-app) on your server. It also lets you handle an expired session and launch into a different target without a redirect page.\n\n## postMessage contract\n\n1. When it loads, the launch page posts an `etherfuse:auth:request` message to your page.\n2. Your page replies with an `etherfuse:auth:response` that has the fields below.\n3. If you need a moment to sign a JWT, send `etherfuse:auth:await` first so the page doesn't time out.\n\n## Fields\n\n- **`grant_type`** and **`assertion`**: a partner JWT (`grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer`), or a `refresh_token` from an earlier [server-side exchange](/v2/api-reference/authentication/exchange-a-partner-jwt) (`grant_type=refresh_token`).\n- **`target`**: the app path to open. It must be an allowed target. See [User Launch Flows](/v2/guides/user-launch-flows#targets). We reject any other path.\n- **`return_url`** *(optional)*: where we send the user when they leave.\n\nThe JWT's `sub` and `scope` follow the same rules as [POST /auth/launch](/v2/api-reference/authentication/launch-a-user-into-the-app).",
        "operationId": "auth_launch_postmessage",
        "responses": {
          "302": {
            "description": "We send the browser to the app page that asks your page for credentials over `postMessage`, signs the user in, and opens `target`."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/authentication/launch-a-user-via-postmessage"
        }
      },
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Launch a user into the app",
        "description": "> ⚠️ **Different host.** Unlike every other endpoint in this reference, `/auth/launch` lives on the **app host** (`app.etherfuse.com` or `sandbox.etherfuse.com`), **not** the API host (`api.etherfuse.com`). It is a browser page, not a JSON API.\n\nSends one of your users into the Etherfuse app, signed in. Use it for **browser** flows, such as sending a user into KYB. Your server renders an HTML form that posts to this URL. We sign the user in and send the browser to `target`. To embed the flow in an iframe or popup instead, use the [postMessage variant](/v2/api-reference/authentication/launch-a-user-via-postmessage).\n\n## Targets\n\n[User Launch Flows](/v2/guides/user-launch-flows) lists the `target` and `scope` for every flow you can launch a user into, and what to know about each. `target` must be one of those paths, optionally with a query string such as `?org=<org_id>`. We reject any other path with `invalid_request`, and its `error_uri` ends in `#invalid-target`.\n\nWe _strongly recommend_ a UUID for the JWT's `sub`, for the person signing in. See [Sign a user JWT](/v2/guides/jwt-authentication#sign-a-user-jwt) for how `sub` relates to an individual's organization `id` and a business member's `memberId`. Its `scope` follows the same rules as [`/auth/token`](/v2/api-reference/authentication/exchange-a-partner-jwt). This endpoint takes no API key. The JWT or refresh token is the credential.",
        "operationId": "auth_launch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthLaunchRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/AuthLaunchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "303": {
            "description": "We send the browser to the app, which opens `target`. When the launch fails, the app shows the user an error page instead."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/authentication/launch-a-user-into-the-app"
        }
      }
    },
    "/auth/token": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Exchange a partner JWT",
        "description": "OAuth 2.0 token endpoint ([RFC 6749 §3.2](https://www.rfc-editor.org/rfc/rfc6749#section-3.2)). Exchanges a partner-signed JWT for an Etherfuse access token and refresh token, or refreshes an existing session.\n\nCall this from your backend to create a user before a launch, or to get a `refresh_token` ahead of time so the launch redirect is faster. Your backend signs a JWT with the key behind your registered JWKS and posts it here. To send a user straight into the app in a browser, use [POST /auth/launch](/v2/api-reference/authentication/launch-a-user-into-the-app) instead.\n\n## Grant types\n\n- `urn:ietf:params:oauth:grant-type:jwt-bearer` ([RFC 7523](https://www.rfc-editor.org/rfc/rfc7523)). Put the partner JWT in `assertion`.\n- `refresh_token` ([RFC 6749 §6](https://www.rfc-editor.org/rfc/rfc6749#section-6)). Put an earlier `refresh_token` in `refresh_token`.\n\n## The JWT\n\nSign it with the key behind your registered JWKS. See [Sign a user JWT](/v2/guides/jwt-authentication#sign-a-user-jwt) for the details. Claims:\n\n- **`iss`**: your registered issuer.\n- **`sub`**: the person signing in. We _strongly recommend_ a UUID. For an individual customer it's the same value as their organization's `id`, and for a business member it's their `memberId`. It must be a person, never a business: we reject a business organization id with `invalid_grant`, and you can't reuse a `sub` as a business organization id ([POST /organization](/v2/api-reference/organizations/create-organization) returns 409). A `sub` that isn't a UUID still signs in, but the Ramp API can't address it.\n- **`aud`**: the token endpoint URL, `https://api.etherfuse.com/auth/token` (`https://api.sand.etherfuse.com/auth/token` in sandbox).\n- **`scope`**: required. Set it to the flow the user may complete. See [User Launch Flows](/v2/guides/user-launch-flows#scopes). We reject a scope we don't know with `invalid_scope`.\n- **`jti`** or **`nonce`**: a new value for every token, so we can reject a replay. Send it as `jti` (the standard JWT ID) or `nonce` (the standard OIDC claim).\n- **`exp`, `iat`**: required. Keep tokens short-lived.\n- **`email`, `name`**: required. We fill the user's profile from them. `picture` is optional.\n\nThis endpoint takes no API key. The signed JWT or refresh token is the credential, so do **not** send an API key.",
        "operationId": "auth_token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthTokenRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/AuthTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "An access token and a refresh token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "OAuth error: `invalid_request`, `invalid_grant`, `invalid_scope` or `unsupported_grant_type` ([RFC 6749 §5.2](https://www.rfc-editor.org/rfc/rfc6749#section-5.2)).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "`invalid_client`: we don't know the JWT's issuer, or its signature doesn't match your JWKS.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "`server_error`: an unexpected error on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "`invalid_client`: your JWKS endpoint returned a response we can't read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          },
          "504": {
            "description": "`invalid_client`: we could not reach your JWKS endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthErrorResponse"
                }
              }
            }
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/authentication/exchange-a-partner-jwt"
        }
      }
    },
    "/lookup/country-codes": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "List country codes",
        "description": "Returns the countries we support, with ISO 3166-1 alpha-2 codes, alpha-3 codes and English names. Use the alpha-2 code for `registrationInfo.countryOfBirth` and `registrationInfo.countryOfIncorporation` when you register a payment account.\n\nPublic. No API key required.",
        "operationId": "country_codes",
        "responses": {
          "200": {
            "description": "The countries we support.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Country"
                  }
                }
              }
            }
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/list-country-codes"
        }
      }
    },
    "/lookup/exchange_rate": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "List exchange rates",
        "description": "Returns the current USD exchange rate for every currency we support. We key each rate by `usd_to_<currency>`, with the rate from each provider in `sources`.\n\nPublic. No API key required.",
        "operationId": "exchange_rates",
        "parameters": [
          {
            "name": "max_age",
            "in": "query",
            "description": "Maximum age of a source in seconds. Sources whose `updated_at` timestamp\nis older than `now - max_age` are excluded from the `sources` map.\nWhen omitted, all sources are returned regardless of age.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every exchange rate, keyed by `usd_to_<currency>`.",
            "content": {
              "application/json": {
                "schema": {},
                "example": {
                  "usd_to_brl": {
                    "rate": "4.97",
                    "sources": {
                      "provider_1": {
                        "rate": "4.97",
                        "updated_at": 1709510400
                      }
                    },
                    "updated_at": 1709510400
                  },
                  "usd_to_mxn": {
                    "rate": "17.15",
                    "sources": {
                      "provider_1": {
                        "rate": "17.15",
                        "updated_at": 1709510400
                      }
                    },
                    "updated_at": 1709510400
                  }
                }
              }
            }
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/list-exchange-rates"
        }
      }
    },
    "/lookup/exchange_rate/usd_to_{currency}": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "Get exchange rate",
        "description": "Returns the current USD to `currency` exchange rate, with the rate from each provider in `sources`.\n\nPublic. No API key required.",
        "operationId": "usd_to_currency",
        "parameters": [
          {
            "name": "currency",
            "in": "path",
            "description": "The currency code, such as `mxn`, `brl` or `eur`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_age",
            "in": "query",
            "description": "Maximum age of a source in seconds. Sources whose `updated_at` timestamp\nis older than `now - max_age` are excluded from the `sources` map.\nWhen omitted, all sources are returned regardless of age.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The exchange rate, with the rate from each provider.",
            "content": {
              "application/json": {
                "schema": {},
                "example": {
                  "rate": "17.15",
                  "sources": {
                    "provider_1": {
                      "rate": "17.15",
                      "updated_at": 1709510400
                    }
                  },
                  "updated_at": 1709510400
                }
              }
            }
          },
          "404": {
            "description": "We don't support the currency."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/get-exchange-rate"
        }
      }
    },
    "/lookup/fees": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "Get fee schedule",
        "description": "Returns the transaction fees we charge on v2 quotes, grouped by currency. `fx` lists each market's FX fee tiers by 30-day volume in USD. `withinMarket` lists the flat fee for a trade inside one market, by the kind of asset on each side. See [Transaction Fees](/v2/fees).\n\nWe refresh this data every 12 hours. Public. No API key required.",
        "operationId": "get_fee_schedule",
        "responses": {
          "200": {
            "description": "The fee schedule.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeScheduleResponse"
                }
              }
            }
          },
          "503": {
            "description": "The fee schedule is not available yet. Retry later."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/get-fee-schedule"
        }
      }
    },
    "/lookup/restricted-countries": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "List restricted countries",
        "description": "Returns the countries where we restrict KYC, KYB or both. We combine outside risk ratings with our own overrides. Each entry shows whether KYC, KYB or both are blocked.\n\nPublic. No API key required.",
        "operationId": "restricted_countries",
        "responses": {
          "200": {
            "description": "The restricted countries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestrictedCountriesResponse"
                }
              }
            }
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/list-restricted-countries"
        }
      }
    },
    "/lookup/stablebond/{identifier}": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "Get stablebond",
        "description": "Returns one stablebond with its current price, supply, and supply on each chain, from the same snapshot as `GET /lookup/stablebonds`.\n\n`identifier` can be any of:\n\n- the bond's symbol or name, matched without case (`CETES`, `cetes`, `Etherfuse CETES`)\n- the Solana mint address\n- a chain's `tokenIdentifier` from the `blockchains` array. We match EVM addresses without case.\n- a Stellar asset as `CODE-ISSUER` or `CODE:ISSUER`, or the issuer address alone\n\nWhen more than one bond matches, we return the first one in `GET /lookup/stablebonds` order. Etherfuse bonds on Stellar share an issuer, so an issuer address alone does not pick a bond. Use the symbol or the full `CODE-ISSUER` asset instead.\n\nPublic. No API key required.",
        "operationId": "get_stablebond",
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "description": "The bond's symbol or name, Solana mint address, a chain's token identifier, or a Stellar asset, such as `CETES` or `CETES7CKqqKQizuSN6iWQwmTeFRjbJR6Vw2XRKfEDR8f`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The matching stablebond.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StablebondInfoCachable"
                }
              }
            }
          },
          "404": {
            "description": "No stablebond matches `identifier`."
          },
          "503": {
            "description": "The stablebond data is not available yet."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/get-stablebond"
        }
      }
    },
    "/lookup/stablebonds": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "List stablebonds",
        "description": "Returns every stablebond with its current price, supply, and supply on each chain. We cache the data for about 5 minutes.\n\nPublic. No API key required.",
        "operationId": "get_stablebonds",
        "responses": {
          "200": {
            "description": "Every stablebond with its price and supply.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StablebondsCachable"
                }
              }
            }
          },
          "503": {
            "description": "The stablebond data is not available yet."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/list-stablebonds"
        }
      }
    },
    "/lookup/tokens/cost": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "List token costs",
        "description": "Returns the current price of every Etherfuse token: stablebonds such as CETES, TESOURO and USTRY, and principal tokens such as MEXe. Each entry has the token's cost in its own currency and in USD. Its `sources` map has the exchange rate and USD cost from each FX provider, so you can check the price yourself.\n\nWe key each token by its symbol in uppercase (`CETES`, `MEXE`). New tokens show up here once we register them, with no change on your side.\n\nThis replaces `GET /lookup/bonds/cost`, which is deprecated and covers only stablebonds.\n\nPublic. No API key required.",
        "operationId": "get_token_costs",
        "parameters": [
          {
            "name": "max_age",
            "in": "query",
            "description": "Maximum age of a source in seconds. Sources older than this are excluded.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Prices keyed by the token symbol in uppercase.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/TokenCost"
                  },
                  "propertyNames": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "503": {
            "description": "Token costs are not available yet."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/list-token-costs"
        }
      }
    },
    "/lookup/tokens/cost/{identifier}": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "summary": "Get token cost",
        "description": "Returns the current price of one Etherfuse token, a stablebond or a principal token.\n\n`identifier` is the token's symbol or its Solana mint address. We match symbols without case, so `mexe`, `MEXE` and `MEXe` all find the same token.\n\nThis replaces `GET /lookup/bonds/cost/{identifier}`, which is deprecated and covers only stablebonds.\n\nPublic. No API key required.",
        "operationId": "get_token_cost",
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "description": "The token's symbol or Solana mint address, such as `MEXe`, `CETES` or `MEXeQE5UjuusUoyS2KxbUXp6o21YbbBJaNvPMMEfr4y`. We match symbols without case.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_age",
            "in": "query",
            "description": "Maximum age of a source in seconds. Sources older than this are excluded.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The token's price.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenCost"
                }
              }
            }
          },
          "404": {
            "description": "No token matches `identifier`."
          },
          "503": {
            "description": "The token's cost is not available right now."
          }
        },
        "security": [
          {}
        ],
        "x-mint": {
          "href": "/v2/api-reference/lookup/get-token-cost"
        }
      }
    },
    "/me": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "Get your organization",
        "description": "Returns the organization that owns your API key. Use its `id` as `organizationId` when a call acts for your own organization. A `200` also confirms the key works.",
        "operationId": "v2GetMe",
        "responses": {
          "200": {
            "description": "Your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/get-your-organization"
        }
      },
      "patch": {
        "tags": [
          "Organizations"
        ],
        "summary": "Set your default partner fee",
        "description": "Sets your default partner fee in basis points. We add it to quotes for your customer organizations when the quote request has no `partnerFeeBpsOverride`. Quotes for your own organization have no partner fee. See [Fees](/v2/fees).",
        "operationId": "v2UpdateMe",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Your organization with the new default.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/set-your-default-partner-fee"
        }
      }
    },
    "/member/{memberId}/organizations": {
      "get": {
        "tags": [
          "Members"
        ],
        "summary": "List a member's organizations",
        "description": "Lists the customer business organizations a person belongs to, by their `memberId` (the JWT `sub`). This is the reverse of [List organization members](/v2/api-reference/members/list-organization-members).\n\nOnly your own customer organizations are searched. A `memberId` that belongs to none of them returns an empty `items`.",
        "operationId": "v2ListMemberOrganizations",
        "parameters": [
          {
            "name": "memberId",
            "in": "path",
            "description": "The person's `sub`: the value you put in the JWT `sub` when they sign in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organizations the person belongs to.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberOrganizationList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/members/list-a-members-organizations"
        }
      }
    },
    "/orders": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "List orders",
        "description": "Lists orders belonging to the API key's organization and all its customer organizations, newest first. Each order's `organizationId` is the organization it belongs to. Pass `organizationId` to list one organization's orders; an organization your API key cannot act for returns `404` `not-found`.",
        "operationId": "v2ListOrders",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "description": "Only list this organization's orders. It must be your API key's organization or one of\nits customer organizations; any other id returns `404` `not-found`.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paymentAccountId",
            "in": "query",
            "description": "Match orders that use this payment account as the source or destination.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Items per page. Default 30, maximum 100.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "maximum": 100,
              "minimum": 1
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "description": "Page to return, starting at 0.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of orders.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/list-orders"
        }
      }
    },
    "/organization": {
      "post": {
        "tags": [
          "Organizations"
        ],
        "summary": "Create customer organization",
        "description": "Creates a customer organization under yours. It starts unapproved; it is approved once its KYC or KYB is. Register its bank accounts and wallets afterwards with [Register payment account](/v2/api-reference/payment-accounts/register-payment-account).\n\nAll fields are optional, so `{}` creates a bare personal organization. If `id` is already in use the request returns `409` `conflict`.\n\n## Account types\n\n- `personal`: an individual who completes KYC. Send `userInfo` so we can email them about their verification.\n- `business`: a company that completes KYB. `userInfo` is rejected. Send `country` to set up KYB at creation, and add the people who complete it with [Add organization member](/v2/api-reference/members/add-organization-member).\n\n`accountType` defaults to `personal` today and will become required. Send it explicitly.\n\n## Signing customers in\n\nFor a **personal** organization whose customer signs in with a JWT (see [JWT User Authentication](/v2/guides/jwt-authentication)), send the JWT `sub` as `id`. A **business** organization has its own id; never reuse a customer's `sub` as one, which returns `409`.",
        "operationId": "v2CreateOrganization",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The new organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed, or a field is invalid for the account type. `country-not-supported`: we don't open businesses in `country`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/create-customer-organization"
        }
      }
    },
    "/organization/{organizationId}": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "Get organization",
        "description": "Returns your organization or one of your customer organizations.",
        "operationId": "v2GetOrganization",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/get-organization"
        }
      },
      "patch": {
        "tags": [
          "Organizations"
        ],
        "summary": "Update organization",
        "description": "Changes the organization's `displayName`, and for your own approved business, your default partner fee and the currency we pay your partner earnings in. Send any of them. A business organization's legal name does not change. See [Fees](/v2/fees).",
        "operationId": "v2UpdateOrganization",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/update-organization"
        }
      }
    },
    "/organization/{organizationId}/amount_limits": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "Get amount limits",
        "description": "Returns the organization's 30-day limit, its volume over the last 30 days, and how much it can still order, all in USD.\n\nThe volume adds up the USD value of each order's source side, priced when we quoted it, for every order created in the last 30 days. We leave out orders that are `canceled`, `failed` or `refunded`. An unfunded order past its funding deadline counts until it is canceled.\n\nA business organization's volume includes its customer organizations' orders. A customer organization sees only its own orders, but an order has to fit under its own limit and its business organization's limit. So its remaining amount is the lower of the two.\n\nAn order that would bring the volume above a 30-day limit returns `volume-limit-exceeded`. Per-order limits are on each rail of a payment account, in the rail's currency and in USD.",
        "operationId": "v2GetAmountLimits",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's amount limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AmountLimits"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/get-amount-limits"
        }
      }
    },
    "/organization/{organizationId}/balances": {
      "get": {
        "tags": [
          "Assets"
        ],
        "summary": "List organization balances",
        "description": "Returns the balances of every wallet the organization holds: every Etherfuse token and supported stablecoin each wallet holds, with the value of each in the asset's own fiat currency and in USD. We list only the organization's own wallets, not the wallets of its customer organizations.\n\nWe store each wallet's balances and read the wallet from the chain at most once an hour. This call reads only the organization's most recently used wallets: the ones in its latest orders, then the ones added most recently, up to a limit. When we last read one of those more than an hour ago, this call starts a new read and returns the wallet with `status` `updating` and the balances we stored before. Call again a few seconds later for the new balances. Other wallets we last read more than an hour ago come back with `status` `stale`; read one of them with [Get payment account balances](/v2/api-reference/assets/get-payment-account-balances). An embedded wallet we have not created yet is left out.\n\nValues use the current price and FX rate, so two calls seconds apart can differ for the same stored balance.",
        "operationId": "v2ListOrganizationBalances",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's wallets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBalances"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/assets/list-organization-balances"
        }
      }
    },
    "/organization/{organizationId}/kyb": {
      "get": {
        "tags": [
          "KYB"
        ],
        "summary": "Get KYB status",
        "description": "Returns a business organization's KYB status: the same `status` and `approvedAt` the `kybUpdated` webhook sends. Subscribe to `kybUpdated` to hear about changes, and read this to reconcile after downtime. A personal organization returns `400` `invalid-request`; read its KYC with [Get KYC status](/v2/api-reference/kyc/get-kyc-status).",
        "operationId": "v2GetKyb",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's KYB status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Kyb"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyb/get-kyb-status"
        }
      }
    },
    "/organization/{organizationId}/kyc": {
      "get": {
        "tags": [
          "KYC"
        ],
        "summary": "Get KYC status",
        "description": "Returns the organization's KYC status. The overall `status` uses the same logic as orders, so `approved` is the only value that lets the customer transact. Submission details such as rejection reasons and timestamps are visible only to the partner that submitted the data.\n\n## The requirements breakdown\n\nPass `?requirements=true` to add a `requirements` array describing, step by step, what this customer's verification still needs. Each entry carries a `type`, a `status`, and a `requiresLaunch` flag, which separates \"I still owe data over the API\" from \"it is time to launch the customer\". It is opt-in because it calls the verification provider; without it the response leaves `requirements` out.\n\nThe breakdown covers personal verification only. Requesting it for a business organization returns `400` `invalid-request`; track a business with [`GET /organization/{organizationId}/kyb`](/v2/api-reference/kyb/get-kyb-status) instead.\n\n`requirements` is left out until the customer has been routed to their country's requirements. After that the list holds the customer's current stage, plus requirements already satisfied. It never lists a later stage's requirements, so it grows as they advance: `proofOfAddress` appears only when the identity document carried no address, and `customerAgreement` appears last. Send only what is listed as `pending` or `actionRequired`; a requirement sent before it is listed is accepted and then refused in the background. Read the list again after every `kycUpdated`; no single response is the full list. See [Requirements unlock in stages](/v2/guides/onboarding#requirements-unlock-in-stages).\n\n## Prefer the webhook\n\nSubscribe to `kycUpdated` to learn that something changed. Read this endpoint on demand, or after that webhook when you need to know what is outstanding. With `?requirements=true` it calls the verification provider every time, so do not poll it tightly. See [Tracking verification status](/v2/guides/onboarding#tracking-verification-status).",
        "operationId": "v2GetKyc",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "requirements",
            "in": "query",
            "description": "Include the per-requirement `requirements` breakdown. Off by default. Personal\norganizations only; a business organization returns `400`.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's KYC status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Kyc"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/get-kyc-status"
        }
      }
    },
    "/organization/{organizationId}/member": {
      "post": {
        "tags": [
          "Members"
        ],
        "summary": "Add organization member",
        "description": "Adds a person to a customer business organization, by `email` or `memberId`. A `memberId` is the `sub` you sign into the person's JWT. Members sign in with that JWT and complete the organization's KYB.\n\n- **By `email`**: if the email belongs to someone who already signed in through your JWT, they become a member at once. Otherwise we create a pending invite, accepted the first time that email signs in with your `kyb` JWT. Send `emailInviteLink` to have us email them that link, or leave it out and tell them yourself.\n- **By `memberId`**: adds someone by their `sub`, and sends no email. The `sub` exists once that person has exchanged a JWT with [POST /auth/token](/v2/api-reference/authentication/exchange-a-partner-jwt) or been launched. An unknown `sub` returns `404`, and a business organization's id is rejected.\n\nAdding someone who was removed earlier brings them back. Adding a current member sets their `role` to the one you send. The response lists the members and invites: someone added at once is under `members`, an invite is under `invited`.\n\nYour own organization's members are managed in the Etherfuse portal, so naming it returns `403` `forbidden`. A personal organization has no members and returns `400` `invalid-request`.",
        "operationId": "v2AddMember",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The organization's members and pending invites after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembersResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/members/add-organization-member"
        }
      }
    },
    "/organization/{organizationId}/member/{memberId}": {
      "delete": {
        "tags": [
          "Members"
        ],
        "summary": "Remove organization member",
        "description": "Removes a member from a customer business organization.",
        "operationId": "v2RemoveMember",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "memberId",
            "in": "path",
            "description": "The person's `sub`: the value you put in the JWT `sub` when they sign in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The member was removed."
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/members/remove-organization-member"
        }
      }
    },
    "/organization/{organizationId}/member_invite/{email}": {
      "delete": {
        "tags": [
          "Members"
        ],
        "summary": "Revoke organization invite",
        "description": "Cancels a pending invite to a customer business organization, so the link in the invite email stops working.",
        "operationId": "v2RevokeMemberInvite",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "email",
            "in": "path",
            "description": "The email the invite was sent to.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "email"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The invite was revoked."
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/members/revoke-organization-invite"
        }
      }
    },
    "/organization/{organizationId}/members": {
      "get": {
        "tags": [
          "Members"
        ],
        "summary": "List organization members",
        "description": "Lists a customer business organization's members and pending invites. The organization's own service account is never listed.",
        "operationId": "v2ListMembers",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The members and pending invites.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembersResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/members/list-organization-members"
        }
      }
    },
    "/organization/{organizationId}/order": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Create order",
        "description": "Creates an order from a quote and returns the full order. Use the `organizationId` the quote was created with. The order belongs to that organization, even when a payment account on it belongs to your API key's organization. The order's `organizationId`, `GET /orders` filtered by `organizationId`, and reporting all show it under that organization, so quote and order under the organization you want it reported under. The order's `id` is the `quoteId`.\n\nOne quote makes one order. Sending the same `quoteId` again returns the existing order with `200`, even after the quote has expired, so a retry never creates a second order. If two requests with the same `quoteId` arrive at the same time, one gets `201` and the other gets `409` `conflict`; read the order to get it.\n\n**One waiting order per amount.** On SPEI, a deposit is matched to an order by the account and the amount. If another order on the same source account is already waiting for the same amount, the request fails with `409` `pending-order-same-amount`. Fund or cancel that order, or quote a different amount.\n\nOn `spei` and `pix`, `fundingInstructions.reference` is set when the order is created. An order funded on a chain has no `reference`. `fundingInstructions.destination` is absent until the funding details are available. Subscribe to `orderUpdated` to receive the order when they arrive, or read the order again.",
        "operationId": "v2CreateOrder",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "An order already exists for this quote. Returns that order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "201": {
            "description": "The created order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed, or `memo` is longer than 255 characters or contains a character we don't accept. `quote-expired`: the quote has expired or does not exist. Create a new quote. `amount-out-of-range`: a side's amount is below the minimum or above the maximum of its rail, or the source amount is above your organization's per-order limit. `detail` names the limit (the provider's, the market's or your organization's) and gives it in USD. `volume-limit-exceeded`: the order would bring your organization's 30-day volume, or its business organization's, above its limit. `detail` says whose limit it was, and gives the limit and the amount left under it in USD.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`conflict`: another request created an order for this quote at the same time. Read the order with `GET /organization/{organizationId}/order/{id}`, using the `quoteId` as the id.\n\n`pending-order-same-amount`: another order on the same source account is already waiting for this amount. Fund or cancel that order, or quote a different amount.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/create-order"
        }
      }
    },
    "/organization/{organizationId}/order/{id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get order",
        "description": "Returns one of the organization's orders. An order that belongs to a different organization returns `404`.",
        "operationId": "v2GetOrder",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/get-order"
        }
      }
    },
    "/organization/{organizationId}/order/{id}/authorization": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Submit authorization",
        "description": "Approves the order's pending `authorization` and returns the order. Sign the UTF-8 bytes of `authorization.method.message` with the P-256 key registered as the embedded wallet's `signerPublicKey`, using ECDSA with SHA-256, and send the signature hex-encoded, as DER or as the 128-character `r||s` form WebCrypto produces.\n\nWe verify the signature, then move the funds (`reason` `funding`) or claim them (`reason` `claim`), and return the order. Sending the same `id` again after we accepted it returns `200` with the order. We send `orderUpdated` when we accept or reject the approval and as the order progresses.\n\nAn authorization expires at `expiresAt`. We can also replace it before then, for example when another transaction from the wallet landed first, or when we could not use the approval. A replacement has a new `id` and `message`, and we send `orderUpdated`. Read the order again and sign the new `message`.",
        "operationId": "v2SubmitAuthorization",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitAuthorizationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The order. We also return it when you send an `id` we already accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed. `invalid-signature`: the signature is not valid hex or does not verify over `message` with the wallet's signer key.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`authorization-expired`: `id` is not the order's current authorization, or it expired. Read the order and sign the new one. `authorization-not-required`: the order has no pending authorization.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/submit-authorization"
        }
      }
    },
    "/organization/{organizationId}/order/{id}/cancel": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Cancel order",
        "description": "Requests cancellation of an order. No request body. We answer `202` with the order as it was before the cancel, so its `status` is still `created`. The order moves to `canceled` a few seconds later, and we send `orderUpdated`. If the order's deposit reaches us before the cancel takes effect, we keep the deposit, the order moves to `funded` instead, and we send `orderUpdated`. An order that can no longer be canceled returns `409` `order-not-cancelable`. We also return `409` when we already received the order's deposit, because the order moves to `funded` next.",
        "operationId": "v2CancelOrder",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "We accepted the cancel. The body is the order before the cancel.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`order-not-cancelable`: the order can no longer be canceled, for example it is already `completed`, `failed`, `canceled` or `refunded`, or we already received its deposit.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/cancel-order"
        }
      }
    },
    "/organization/{organizationId}/order/{id}/claim": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Prepare claim",
        "description": "Asks us to prepare a new claim for a `claimable` order and returns `202` with no body. No request body. This call does not claim the funds. The new claim arrives a few seconds later in an `orderUpdated` webhook and on GET:\n- A self-held wallet gets `claimInstructions.preparedTransaction`. The customer signs and submits its `transaction` before `expiresAt`.\n- An embedded wallet gets the order's `authorization` with `reason` `claim`. The key holder approves it.\n\nEach call prepares a new claim and replaces the one before it. Call it right before the customer claims, because a claim goes stale when the wallet sends another transaction.",
        "operationId": "v2PrepareClaim",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "We asked for a new claim. Empty body. Read the order, or wait for `orderUpdated`, to get it."
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`order-not-claimable`: the order is not `claimable`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/prepare-claim"
        }
      }
    },
    "/organization/{organizationId}/order/{id}/fiat_received": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "summary": "Simulate fiat received",
        "description": "Sandbox only. Returns `403` `forbidden` in production.\n\nRecords a simulated fiat deposit for an order whose source is a bank account on `spei` or `pix`, so you can test an onramp without sending money. The order then continues as it would after a real deposit. Returns `200` with an empty body.",
        "operationId": "v2SimulateFiatReceived",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateFiatReceivedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The simulated deposit was recorded. Empty body."
          },
          "400": {
            "description": "`invalid-request`: the body is malformed, or `amount` is not a positive decimal.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "`forbidden`: called outside sandbox.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`conflict`: the simulated deposit was rejected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "422": {
            "description": "`unsupported`: the order's source does not receive fiat, or its provider does not allow simulation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/sandbox/simulate-fiat-received"
        }
      }
    },
    "/organization/{organizationId}/order/{id}/funding_instructions/refresh": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Refresh funding instructions",
        "description": "Requests new funding instructions for an order and returns the order as it is. No request body. When the order is `created`, before its funding deadline, and either its funding destination has expired or its instructions carry a `preparedTransaction`, we get new instructions from the payment provider. Refresh a prepared transaction after its `refreshAfter`, or whenever submitting it fails because the wallet's sequence number or nonce moved. On Stellar and EVM chains, a refresh after the old transaction landed changes nothing. New instructions arrive in an `orderUpdated` webhook and on GET. Otherwise nothing changes. Calling it again before the new instructions arrive does not request them twice.",
        "operationId": "v2RefreshFundingInstructions",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The order `id`, which is the `quoteId` it was created from.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/orders/refresh-funding-instructions"
        }
      }
    },
    "/organization/{organizationId}/payment_account": {
      "post": {
        "tags": [
          "Payment Accounts"
        ],
        "summary": "Register payment account",
        "description": "Registers a bank account, wallet or embedded wallet for the organization in the route and returns it with its per-rail readiness.\n\nState where the account lives in one of three ways:\n- **Bank account:** set `kind` to `bank`, send `country` and `currency` (for example `MX` and `MXN`), and describe the account in `accountDetails` (for example a `clabe`).\n- **Wallet:** set `kind` to `wallet` and send `accountDetails` of kind `address` with its `chain`. Do not send `country` or `currency` for a wallet. A wallet requires no `registrationInfo`, and we ignore any you send.\n- **Embedded wallet:** set `kind` to `embeddedWallet` and send `accountDetails` of kind `signerPublicKey` with its `chain` and the holder's `signerPublicKey`. We create a new wallet on that chain. Stellar is the only chain today. See [Embedded wallets](/v2/guides/embedded-wallets).\n\nRegistering does not prove that the customer owns the account.\n\n**Registration info.** A bank account route requires holder fields such as `accountHolderName` and `taxId`. An embedded wallet requires `accountHolderName`. We fill each one from the organization's verified identity when we hold it. When a required field is still missing, the request fails with `422` `registration-info-required`, and the problem lists every required field in `required` and the ones still needed in `missing`, as JSON Pointers into the request (for example `#/registrationInfo/taxId`). Send the missing fields in `registrationInfo` and retry. A supplied `taxId` must match the verified one (`422` `holder-tax-id-mismatch`).\n\nYou can send any registration field, including ones this route does not require; we check each value's format and ignore the fields the route does not use. A name that is not a registration field returns `400` `validation-error`.\n\n**Readiness.** A new account starts `pending`, and so does each rail direction. We register it with the payment provider, then move each direction to `ready` or `rejected`. Subscribe to `paymentAccountUpdated`, or read the account again, and quote a direction once it is `ready`.\n\n**Registering an account again.** If the organization already holds the account, you get it back with `200`. When a direction was `rejected`, we register the account with the provider again using the `registrationInfo` you send, and those directions go back to `pending`. Otherwise we change nothing. If another organization holds it, the request fails with `409` `payment-account-unavailable`. An embedded wallet is the exception: each registration creates a new wallet, even with a `signerPublicKey` you registered before, so one signer key can control many wallets.\n\n**Embedded wallets.** We return the account `pending` with `201`, then create the wallet. Once it exists, the account and both directions on `stellar` move to `ready` and we send `paymentAccountUpdated`. Quotes and orders use the account `id`.\n\n**Idempotency-Key.** Send this header to retry safely. A retry with the same key and the same body returns the first account with `200`. The same key with a different body returns `409` `conflict`. A second request with the key while the first is still running also returns `409` `conflict`; retry it with the same key. The header is optional for every kind. Send it for every embedded wallet. See [Idempotency](/v2/idempotency#payment-accounts).",
        "operationId": "v2CreatePaymentAccount",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A key you generate once per account you register, such as a UUID. A retry with the same key and the same body returns the first account with `200`. 1 to 255 printable ASCII characters, with no spaces. See [Idempotency](/v2/idempotency#payment-accounts).",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "6f1c2a9e-3b4d-4e5f-8a6b-7c8d9e0f1a2b"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentAccountRequest"
              },
              "examples": {
                "bank": {
                  "summary": "Mexican bank account on SPEI",
                  "value": {
                    "accountDetails": {
                      "clabe": "012180000000000002",
                      "kind": "clabe"
                    },
                    "country": "MX",
                    "currency": "MXN",
                    "kind": "bank",
                    "label": "Operating account",
                    "registrationInfo": {
                      "accountHolderName": "Ejemplo Comercial SA de CV",
                      "taxId": "XAXX010101000"
                    }
                  }
                },
                "embeddedWallet": {
                  "summary": "Embedded wallet on Stellar",
                  "value": {
                    "accountDetails": {
                      "chain": "stellar",
                      "kind": "signerPublicKey",
                      "signerPublicKey": "02a1633cafcc01ebfb6d78e39f687a1f0995c62fc95f51ead10a02ee0be551b5dc"
                    },
                    "kind": "embeddedWallet",
                    "label": "Customer wallet"
                  }
                },
                "wallet": {
                  "summary": "Stellar wallet",
                  "value": {
                    "accountDetails": {
                      "address": "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF",
                      "chain": "stellar",
                      "kind": "address"
                    },
                    "kind": "wallet",
                    "label": "Treasury wallet"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The organization already holds this account, or you sent an `Idempotency-Key` with the same body as an earlier request. Returns the account. A `rejected` direction is registered again and returns as `pending`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccount"
                }
              }
            }
          },
          "201": {
            "description": "The registered account: a new registration (every embedded wallet registration is new), or an account the organization removed and registered again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccount"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed, has an unknown enum value, a blank `label`, an invalid CLABE, PIX key or wallet address, an unknown `chain`, an incomplete or conflicting location, a `signerPublicKey` that is not a hex SEC1 P-256 key, or an `Idempotency-Key` that is not 1 to 255 printable ASCII characters with no spaces. For an invalid CLABE or PIX key, `errors` points at the field. `validation-error`: `accountDetails` is missing a field its kind requires or has a field it does not allow, or `registrationInfo` has a field that is not a registration field or has a malformed value. See `errors` for the pointers.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "`forbidden`: embedded wallets are not turned on for this organization in sandbox. Ask your Etherfuse contact to turn them on.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`payment-account-unavailable`: another organization holds this account. `payment-account-disabled`: the account is disabled and cannot be registered. `conflict`: the organization holds this account in a different market, the `Idempotency-Key` was used with a different body, or a request with the same `Idempotency-Key` is still running.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "422": {
            "description": "`registration-info-required`: required registration fields are missing; see `required` and `missing`. `holder-tax-id-mismatch`: `registrationInfo.taxId` does not match the verified tax ID. `unsupported`: this kind of account, or this identifier in this location, cannot be registered.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/payment-accounts/register-payment-account"
        }
      }
    },
    "/organization/{organizationId}/payment_account/requirements": {
      "get": {
        "tags": [
          "Payment Accounts"
        ],
        "summary": "Get registration requirements",
        "description": "Returns what you need to send to register an account of this kind for the organization in the route: the `accountDetails` fields for the identifier kind, and the `registrationInfo` fields the route requires. `registrationInfo.missing` lists the required fields we hold no verified value for, so you ask the customer only for those. Pass the same `kind`, `country`, `currency` and `accountDetails.kind` you would send to register.",
        "operationId": "v2GetPaymentAccountRequirements",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PaymentAccountKind"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Two-letter country code. Omit for a wallet.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "Three-letter currency code. Omit for a wallet.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountDetailsKind",
            "in": "query",
            "description": "The `accountDetails.kind` you would register, for example `clabe`. Omit it for a\nbank account to get every kind the market accepts in `accountDetailsKinds`. A wallet\nneeds it.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fields to send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccountRequirements"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "`forbidden`: embedded wallets are not turned on for this organization in sandbox, and `kind` is `embeddedWallet`. Ask your Etherfuse contact to turn them on.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "422": {
            "description": "`unsupported`: this kind of account, or this identifier in this location, cannot be registered. Registration returns the same error for the same request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/payment-accounts/get-registration-requirements"
        }
      }
    },
    "/organization/{organizationId}/payment_account/{id}": {
      "get": {
        "tags": [
          "Payment Accounts"
        ],
        "summary": "Get payment account",
        "description": "Returns one of the organization's payment accounts with its per-rail readiness. An account the organization removed returns `404`.",
        "operationId": "v2GetPaymentAccount",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The payment account `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The payment account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccount"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/payment-accounts/get-payment-account"
        }
      },
      "patch": {
        "tags": [
          "Payment Accounts"
        ],
        "summary": "Update payment account",
        "description": "Changes the label the organization gave the account. Nothing else on an account changes through this endpoint.",
        "operationId": "v2UpdatePaymentAccount",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The payment account `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated payment account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccount"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/payment-accounts/update-payment-account"
        }
      }
    },
    "/organization/{organizationId}/payment_account/{id}/balances": {
      "get": {
        "tags": [
          "Assets"
        ],
        "summary": "Get payment account balances",
        "description": "Returns the balances of one of the organization's wallets: every supported Etherfuse asset it holds, with the value of each in the asset's own fiat currency and in USD.\n\nWe read the address the wallet was registered with, on the chain it was registered on. A bank account has no address and returns `422` `unsupported`. An embedded wallet returns `409` `payment-account-not-ready` until we have created the wallet.\n\nWe store each wallet's balances and read the wallet from the chain at most once an hour. `observedAt` is when we last read it. When that was more than an hour ago, this call starts a new read and returns `status` `updating` with the balances we stored before. Call again a few seconds later for the new balances. Each organization can start a limited number of reads per minute through this call. Past that, it returns `status` `stale` with the balances we stored before, and you can try again a minute later.\n\nAssets with a zero balance are left out, so an empty `balances` is a wallet holding nothing. `currency` is per balance, because one wallet can hold CETES in MXN and TESOURO in BRL at once. `balance` carries the asset's own decimal precision; the two value fields carry six decimal places. Values use the current price and FX rate, so two calls seconds apart can differ for the same stored balance.",
        "operationId": "v2GetPaymentAccountBalances",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its\ncustomer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The payment account `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The wallet's balances.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccountBalances"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`payment-account-not-ready`: an embedded wallet we have not created yet. Read it again once the account is `ready`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "`unsupported`: the payment account is not a wallet with an address, for example a bank account.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/assets/get-payment-account-balances"
        }
      }
    },
    "/organization/{organizationId}/payment_accounts": {
      "get": {
        "tags": [
          "Payment Accounts"
        ],
        "summary": "List payment accounts",
        "description": "Lists the organization's payment accounts, oldest first. Accounts the organization removed are not listed.",
        "operationId": "v2ListPaymentAccounts",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Items per page. Default 30, maximum 100.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "maximum": 100,
              "minimum": 1
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "description": "Page to return, starting at 0.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of payment accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentAccountPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/payment-accounts/list-payment-accounts"
        }
      }
    },
    "/organization/{organizationId}/quote": {
      "post": {
        "tags": [
          "Quotes"
        ],
        "summary": "Create quote",
        "description": "Prices a transfer from one payment account to another. Each account must belong to the organization in the route or to your API key's organization. The quote and its order belong to the organization in the route, even when an account belongs to your organization, so quote under the organization you want the order reported under. Pass the quote's `quoteId` to `POST /organization/{organizationId}/order` with the same `organizationId` before `expiresAt`; a quote is valid for 2 minutes.\n\nOne side must be a wallet. Supported shapes: fiat to crypto (onramp), crypto to fiat (offramp), a swap between two wallets on one chain or on two chains, and a transfer of one token between wallets on two chains. Fiat to fiat is not supported.\n\n**Rails.** Each side moves on one rail. Omit `sourceRail` or `destinationRail` and we use the account's default rail for that direction (the rail with `isDefault: true` in the account's `rails`). When two of an account's rails tie, name the rail. The account's status for that direction on that rail must be `ready`, or the quote fails with `409` `payment-account-not-ready`.\n\n**Assets.** Send an `asset` from [`GET /supported_assets`](/v2/api-reference/assets/list-supported-assets): a currency code such as `MXN` for a fiat side, a token's `asset` for a crypto side. Filter that list by `paymentAccountId` to see what each account can use. Send each side's `asset` on that side's chain. When both sides are the same token, pick the destination chain from the source token's `bridgeDestinations`. When they are different tokens, we bridge to the chain where we exchange them and bridge the result to the destination chain.\n\n**Approval.** The organization must be approved, or the quote fails with `409` `organization-not-approved`.",
        "operationId": "v2CreateQuote",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed; `sourceAmount` is not a positive decimal or is too small to cover the fees; a side is `inline` or is not registered to the organization; the pair is fiat to fiat, has no route between its two assets, or uses an unknown or unsupported asset; the named rail cannot carry that direction; or two rails tie and none was named. `amount-out-of-range`: the amount is too large for an order. `sandbox-limit-exceeded`: the sandbox limit for onramps was exceeded.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`organization-not-approved`: the organization is not approved. `payment-account-disabled`: a side's account is disabled. `payment-account-not-ready`: a side's account is not `ready` on the chosen rail in that direction, is not registered on the named rail, or has no rail that can carry that direction.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "422": {
            "description": "`quote-unavailable`: we cannot price this route right now. Retry later. `unsupported`: the route is not supported, for example a principal token on a chain that does not carry it, or a cross-chain transfer to a chain missing from the token's `bridgeDestinations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/quotes/create-quote"
        }
      }
    },
    "/organization/{organizationId}/verification": {
      "post": {
        "tags": [
          "KYC"
        ],
        "summary": "Submit verification data",
        "description": "First call in the [KYC API](/v2/guides/kyc-api) flow. Nothing else is accepted before it: `country` is what routes the customer to their country's requirements.\n\n**Answers `202`, not `200`.** We validate the request before we answer and record it with the verification provider after. A `202` means accepted, not satisfied. Read the result from the `kycUpdated` webhook or [`GET /organization/{organizationId}/kyc?requirements=true`](/v2/api-reference/kyc/get-kyc-status).\n\nSubmitting again overwrites what was sent before, and never moves the customer's review status on its own. Personal organizations only.",
        "operationId": "v2SubmitVerification",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitVerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted and being applied. The customer's current verification status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: validation failed. `detail` lists every missing or invalid field at once, including a `country` that is not ISO 3166-1 alpha-3. Also returned for a business organization, which verifies through [KYB](/v2/guides/kyb).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`conflict`: this customer's verification is already approved or denied and cannot be modified. A denied customer resubmits in the hosted step, not over the API.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/submit-verification-data"
        }
      }
    },
    "/organization/{organizationId}/verification/documents": {
      "post": {
        "tags": [
          "KYC"
        ],
        "summary": "Upload verification documents",
        "description": "Upload the customer's documents as `multipart/form-data`. Send at least one of `id_front`, `id_back`, or `proof_of_address`.\n\n**Submit the customer's personal data first.** Until [`POST /organization/{organizationId}/verification`](/v2/api-reference/kyc/submit-verification-data) has run the customer has no stages to upload against, so this answers `409`.\n\n**Answers `202`, not `200`.** We read and check every part before we answer, and send the upload to the verification provider after. Watch [`GET /organization/{organizationId}/kyc?requirements=true`](/v2/api-reference/kyc/get-kyc-status) for the requirement to go satisfied.\n\n**Upload what the current stage asks for.** Send a document once its requirement is listed. The exception is `proof_of_address`: you may send it with the identity document, before its own stage, as long as the identity stage has not been submitted yet. After that, wait for `proofOfAddress` to be listed. See [Requirements unlock in stages](/v2/guides/onboarding#requirements-unlock-in-stages).",
        "operationId": "v2UploadVerificationDocuments",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadVerificationDocumentsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted and being applied. The customer's current verification status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: validation failed. An unrecognized `id_type` or `proof_of_address_type` is refused with the valid values listed. Otherwise `detail` names the first problem: a two-sided `id_type` without `id_back`, `id_back` without `id_front`, `id_back` for a single-sided `id_type`, a missing `id_type` alongside an `id_*` part, an unsupported content type, an empty or oversized file, an unrecognized `country`, or a body that is not valid `multipart/form-data`. Also returned for a business organization.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`conflict`, in one of three cases. Nothing has been submitted for this customer yet, so submit their personal data first. Or their personal data landed but they have not been routed to their country's requirements yet; `kycUpdated` fires when routing completes, or watch `GET /organization/{organizationId}/kyc?requirements=true` for the requirements list to appear. Or their verification is already approved or denied and cannot be modified.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/upload-verification-documents"
        }
      }
    },
    "/organization/{organizationId}/verification/import": {
      "post": {
        "tags": [
          "KYC"
        ],
        "summary": "Import a verified session",
        "description": "Import a verification the customer already passed on the partner's own Sumsub level, handed over as a share token. Prerequisites, and what does and doesn't transfer: [KYC Sumsub Shared Token](/v2/guides/kyc-sumsub-shared-token).\n\nAnswers **`200`**, not `202`: the import is committed before the response, which carries the same requirements breakdown as [`GET /organization/{organizationId}/kyc?requirements=true`](/v2/api-reference/kyc/get-kyc-status).\n\nThat breakdown covers the identity stage only. Send what it lists, then wait for `kycUpdated` and read the requirements again: `proofOfAddress` and `customerAgreement` appear only when the customer reaches their stages. See [Requirements unlock in stages](/v2/guides/onboarding#requirements-unlock-in-stages).\n\n**Only `shareToken` is accepted.** The verification level and the customer's identity are ours to decide. The token is a credential; it is never logged and appears in no response.\n\nNo country is sent: it is read from the shared verification and used to route the customer. The customer's registered `userInfo.email` is required and is set on the imported applicant.\n\n**Nothing is trusted wholesale.** Everything imported is re-checked against Etherfuse's own requirements, so a session approved in the partner's account is not automatically approved here.\n\n**Importing again.** If the customer's verification has not reached review, a new import replaces it, for example after an earlier import left documents missing. Once the customer is approved, denied, or in review, the import returns `409`.",
        "operationId": "v2ImportVerification",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportVerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The session was imported. `requirements` lists what is still outstanding. If we could not read the requirements, we leave the field out; read `GET /organization/{organizationId}/kyc?requirements=true` instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportVerificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`; `detail` says why. Any of: `shareToken` missing; `additionalInfo.curp` is not 18 letters or digits (nothing is created and the share token is not spent); the share token is expired, already spent, created for someone else, or shares nothing our requirements ask for; the shared verification has no country on file, or one we cannot verify (nothing is created and the share token is not spent); the customer has no email on file; or the organization is a business.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`conflict`: this customer's verification is approved, denied, or in review, so a new session cannot replace it; or our verification provider won't let a new session replace this customer's verification. Nothing was imported and the share token was not spent. Don't retry the second case; contact us.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "`service-unavailable`: usually we could not reach our verification provider before the import, nothing was imported, and you can retry. If the retry returns a `400` `invalid-request` saying the share token was already used, the first import may have landed: contact us with the `organizationId`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/import-a-verified-session"
        }
      }
    },
    "/organization/{organizationId}/verification/questionnaire": {
      "post": {
        "tags": [
          "KYC"
        ],
        "summary": "Submit a verification questionnaire",
        "description": "Submit the customer's answers to one questionnaire, named by `type`.\n\n| `type` | Answers | Applies to |\n|---|---|---|\n| `occupation` | `jobTitle`, `industry` | Every customer |\n| `agreement` | `acceptTerms`, `signatureName`, `signatureDate` | Customers who accepted under your terms |\n\nDocuments are uploaded through [`POST /organization/{organizationId}/verification/documents`](/v2/api-reference/kyc/upload-verification-documents).\n\n**`agreement` is a legal declaration, affirmed by `acceptTerms: true`.** By default the customer accepts the agreement themselves in `/idv`. Send `agreement` only if your own terms incorporate ours and you already collected their acceptance. [The customer agreement](/v2/guides/kyc-api#the-customer-agreement) sets out what you are declaring.\n\n**Submit the customer's personal data first**, or this answers `409`. As with document upload, the stage that asks these questions doesn't exist on the customer until then.\n\n**Send `agreement` only once `customerAgreement` is in the requirements list.** It belongs to the last stage, after the identity stage and any proof of address, so do not send it together with `occupation`. An early `agreement` answers `202`, then is refused in the background, and a `kycUpdated` webhook arrives with `needsWork: true`. See [Requirements unlock in stages](/v2/guides/onboarding#requirements-unlock-in-stages).\n\n**Answers `202`, not `200`.** We check `industry` against the live category list before we answer, so an unknown code returns `400`. Send a `code` from [`GET /verification/occupations`](/v2/api-reference/kyc/list-occupation-categories).",
        "operationId": "v2SubmitVerificationQuestionnaire",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns `404` `not-found`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitQuestionnaireRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted and being applied. The customer's current verification status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: validation failed. A missing or unrecognized `type`; a blank `jobTitle`; a blank or unknown `industry`; an `acceptTerms` that is not `true`; a `signatureName` that is blank or over 255 characters; or a `signatureDate` that is not `YYYY-MM-DD` or is not within a day of today. Also returned for a business organization.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/OrganizationNotFound"
          },
          "409": {
            "description": "`conflict`, in one of three cases. Nothing has been submitted for this customer yet, so submit their personal data first. Or their personal data landed but they have not been routed to their country's requirements yet; `kycUpdated` fires when routing completes, and a retry after it succeeds. Or their verification is already approved or denied and cannot be modified.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/submit-a-verification-questionnaire"
        }
      }
    },
    "/organizations": {
      "get": {
        "tags": [
          "Organizations"
        ],
        "summary": "List customer organizations",
        "description": "Lists the customer organizations you created, newest first. Removed organizations are not listed. Your own organization is not in the list; read it with [`GET /me`](/v2/api-reference/organizations/get-me).",
        "operationId": "v2ListOrganizations",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "Items per page. Default 30, maximum 100.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "maximum": 100,
              "minimum": 1
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "description": "Page to return, starting at 0.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of customer organizations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/organizations/list-customer-organizations"
        }
      }
    },
    "/partner_statement/{year}-{month}/csv": {
      "get": {
        "tags": [
          "Statements"
        ],
        "summary": "Download statement CSV",
        "description": "Downloads one closed month's statement as CSV, for example `/partner_statement/2026-6/csv`. The year and month are one path segment, and you can zero pad the month or not. Returns a `text/csv` attachment named `partner-statement-2026-06.csv`.",
        "operationId": "v2DownloadPartnerStatementCsv",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "description": "The four digit statement year, for example 2026.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "description": "The statement month, 1 through 12.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 12,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The statement as a CSV attachment.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "`not-found`: the month is still open, or has no statement.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/statements/download-statement-csv"
        }
      }
    },
    "/partner_statement/{year}-{month}/pdf": {
      "get": {
        "tags": [
          "Statements"
        ],
        "summary": "Download statement PDF",
        "description": "Downloads one closed month's statement as PDF, for example `/partner_statement/2026-6/pdf`. The year and month are one path segment, and you can zero pad the month or not. Returns an `application/pdf` attachment named `partner-statement-2026-06.pdf`.",
        "operationId": "v2DownloadPartnerStatementPdf",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "description": "The four digit statement year, for example 2026.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "description": "The statement month, 1 through 12.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 12,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The statement as a PDF attachment.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "`not-found`: the month is still open, or has no statement.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/statements/download-statement-pdf"
        }
      }
    },
    "/partner_statements": {
      "get": {
        "tags": [
          "Statements"
        ],
        "summary": "List partner statements",
        "description": "Returns your monthly revenue share statements, newest first. They belong to the organization that owns your API key, which must be a partner organization; a customer organization returns `403` `forbidden`.\n\nWe only list closed months. A month that is still open does not appear, and its CSV and PDF return `404`. A closed month has no amount until we record a payout, because we convert the payout at the rate on that day.",
        "operationId": "v2ListPartnerStatements",
        "responses": {
          "200": {
            "description": "Your closed and paid statement months.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerStatementList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/statements/list-partner-statements"
        }
      }
    },
    "/supported_assets": {
      "get": {
        "tags": [
          "Assets"
        ],
        "summary": "List supported assets",
        "description": "Lists the markets and tokens a quote can use. Each item's `asset` is the value to send as\n`sourceAsset` or `destinationAsset` on [Create quote](/v2/api-reference/quotes/create-quote).\n\n- **Markets** are a currency in a country, such as MXN in Mexico, with the rails that move\n  it (`spei`, `pix`).\n- **Tokens** are the stablebonds and stablecoins on each chain. Each token's\n  `bridgeDestinations` lists the chains you can send it to with a cross-chain transfer.\n\nWith no filters you get every market and every token we support. Each filter narrows the\nlists, and filters combine:\n\n- `chain` keeps tokens on that chain. Markets have no chain, so none come back.\n- `currency` keeps markets in that currency and tokens backed by it.\n- `paymentAccountId` keeps what that account can send or receive. A bank account gives its\n  market and the rails it is registered on; a wallet gives the tokens on each chain it is\n  registered on.\n- `organizationId` does the same for every payment account the organization holds.\n\nA payment account or organization your API key cannot act for returns `404` `not-found`.\nWith both ids, the account must belong to that organization.",
        "operationId": "v2ListSupportedAssets",
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "description": "Only tokens on this chain.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Chain"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "Only markets in this currency and tokens backed by it, as an ISO 4217 code. Not case\nsensitive.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "MXN"
          },
          {
            "name": "paymentAccountId",
            "in": "query",
            "description": "Only what this payment account can send or receive.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "description": "Only what this organization's payment accounts can send or receive. An organization\nwith no payment accounts returns two empty lists.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The supported markets and tokens.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportedAssets"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/assets/list-supported-assets"
        }
      }
    },
    "/verification/occupations": {
      "get": {
        "tags": [
          "KYC"
        ],
        "summary": "List occupation categories",
        "description": "The values [`POST /organization/{organizationId}/verification/questionnaire`](/v2/api-reference/kyc/submit-a-verification-questionnaire) accepts for `industry`. Send the `code`.\n\nThe codes are opaque, so this is the only way to know them. We read them live from the same definition the submission validates against, so the two always agree.",
        "operationId": "v2ListOccupationCategories",
        "responses": {
          "200": {
            "description": "The accepted occupation categories.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationCategoriesResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/kyc/list-occupation-categories"
        }
      }
    },
    "/webhook_subscription": {
      "post": {
        "tags": [
          "Webhook Subscriptions"
        ],
        "summary": "Create webhook subscription",
        "description": "Subscribes a URL to one v2 event. The response includes the signing `secret`. We return it only here, so store it. See [Verifying Webhooks](/v2/guides/verifying-webhooks).\n\nIn production the URL must use `https`.",
        "operationId": "v2CreateWebhookSubscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The created subscription, with its secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedWebhookSubscription"
                }
              }
            }
          },
          "400": {
            "description": "`invalid-request`: the body is malformed or has an unknown `eventType`. Or the `url` is not a valid URL, is over 512 characters, does not use `https` in production, uses an IP address instead of a domain name, or points to an Etherfuse domain.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "description": "`conflict`: a subscription for this URL and event already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/webhook-subscriptions/create-webhook-subscription"
        }
      }
    },
    "/webhook_subscription/{id}": {
      "get": {
        "tags": [
          "Webhook Subscriptions"
        ],
        "summary": "Get webhook subscription",
        "description": "Returns one of your organization's webhook subscriptions. The secret is not included.",
        "operationId": "v2GetWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook subscription `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSubscription"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/webhook-subscriptions/get-webhook-subscription"
        }
      },
      "delete": {
        "tags": [
          "Webhook Subscriptions"
        ],
        "summary": "Delete webhook subscription",
        "description": "Deletes one of your organization's webhook subscriptions. Deliveries to it stop.",
        "operationId": "v2DeleteWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook subscription `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted. Empty body."
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/webhook-subscriptions/delete-webhook-subscription"
        }
      },
      "patch": {
        "tags": [
          "Webhook Subscriptions"
        ],
        "summary": "Update webhook subscription",
        "description": "Send a new `url`, `eventType`, or both. The URL must meet the same requirements as when you create a subscription. Continue verifying deliveries with your original signing secret. A delivery already in progress can still reach the old URL.",
        "operationId": "v2UpdateWebhookSubscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The webhook subscription `id`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSubscription"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`conflict`: a subscription for this URL and event already exists.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/webhook-subscriptions/update-webhook-subscription"
        }
      }
    },
    "/webhook_subscriptions": {
      "get": {
        "tags": [
          "Webhook Subscriptions"
        ],
        "summary": "List webhook subscriptions",
        "description": "Lists all of your organization's webhook subscriptions, oldest first. The list is not paged. Secrets are not included.",
        "operationId": "v2ListWebhookSubscriptions",
        "responses": {
          "200": {
            "description": "Every subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSubscriptionList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "x-mint": {
          "href": "/v2/api-reference/webhook-subscriptions/list-webhook-subscriptions"
        }
      }
    }
  },
  "webhooks": {
    "kybUpdated": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "summary": "kybUpdated",
        "description": "Sent to `kybUpdated` subscriptions when a business customer's KYB status changes. `organizationId` is the business organization, and `kyb` is the same status `GET /organization/{organizationId}/kyb` returns.\n\nThe `X-Signature` header contains an HMAC-SHA256 signature over the [RFC 8785](https://datatracker.ietf.org/doc/html/rfc8785)-canonicalized JSON body. See [Verifying Webhooks](/v2/guides/verifying-webhooks).",
        "operationId": "v2KybUpdatedWebhook",
        "parameters": [
          {
            "name": "X-Signature",
            "in": "header",
            "description": "HMAC-SHA256 signature: `sha256={hex}`. Computed over the canonicalized (RFC 8785) request body using your subscription's secret.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KybUpdatedWebhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Return any 2xx to acknowledge the delivery."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/webhook-events/kybupdated",
          "metadata": {
            "title": "kybUpdated"
          }
        }
      }
    },
    "kycUpdated": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "summary": "kycUpdated",
        "description": "Sent to `kycUpdated` subscriptions when a customer's KYC status changes, and when a write you sent was accepted but could not be applied. `organizationId` is the customer organization.\n\nWhen `kyc.needsWork` is `true`, the customer can correct and resubmit, and `kyc.userMessage` says what to fix. `needsWork` also arrives **without** a status change, when one of the verification endpoints answered `202` and the work then failed; `status` is then the customer's current status, and `userMessage` names what to send again. See [KYC API error handling](/v2/guides/kyc-api#error-handling).\n\nThe `X-Signature` header contains an HMAC-SHA256 signature over the [RFC 8785](https://datatracker.ietf.org/doc/html/rfc8785)-canonicalized JSON body. See [Verifying Webhooks](/v2/guides/verifying-webhooks).",
        "operationId": "v2KycUpdatedWebhook",
        "parameters": [
          {
            "name": "X-Signature",
            "in": "header",
            "description": "HMAC-SHA256 signature: `sha256={hex}`. Computed over the canonicalized (RFC 8785) request body using your subscription's secret.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KycUpdatedWebhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Return any 2xx to acknowledge the delivery."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/webhook-events/kycupdated",
          "metadata": {
            "title": "kycUpdated"
          }
        }
      }
    },
    "orderUpdated": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "summary": "orderUpdated",
        "description": "Sent to `orderUpdated` subscriptions when:\n\n- the order's status changes\n- its funding instructions arrive or are replaced\n- we return a deposit that did not match it (`returnedDeposits` gains an entry)\n- an `authorization` opens, or is accepted or rejected\n- we prepare a `claim` for a self-held wallet\n- we record invoiced fees on it\n\n`order` is the same object `GET /organization/{organizationId}/order/{id}` returns; its `organizationId` is the organization it belongs to.\n\nThe `X-Signature` header contains an HMAC-SHA256 signature over the [RFC 8785](https://datatracker.ietf.org/doc/html/rfc8785)-canonicalized JSON body. See [Verifying Webhooks](/v2/guides/verifying-webhooks).",
        "operationId": "v2OrderUpdatedWebhook",
        "parameters": [
          {
            "name": "X-Signature",
            "in": "header",
            "description": "HMAC-SHA256 signature: `sha256={hex}`. Computed over the canonicalized (RFC 8785) request body using your subscription's secret.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdatedWebhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Return any 2xx to acknowledge the delivery."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/webhook-events/orderupdated",
          "metadata": {
            "title": "orderUpdated"
          }
        }
      }
    },
    "paymentAccountUpdated": {
      "post": {
        "tags": [
          "Webhook Events"
        ],
        "summary": "paymentAccountUpdated",
        "description": "Sent to `paymentAccountUpdated` subscriptions when a payment account's `status` or the `status` of any rail direction changes. `paymentAccount` is the same object `GET /organization/{organizationId}/payment_account/{id}` returns, except that its `rails` leave out the amount limits (`limitCurrency`, `minAmount`, `maxAmount`, `minAmountUsd` and `maxAmountUsd`). A converted limit changes with the exchange rate, so we don't send a webhook for it. Read the account to get them. `organizationId` is the organization that holds it.\n\nThe `X-Signature` header contains an HMAC-SHA256 signature over the [RFC 8785](https://datatracker.ietf.org/doc/html/rfc8785)-canonicalized JSON body. See [Verifying Webhooks](/v2/guides/verifying-webhooks).",
        "operationId": "v2PaymentAccountUpdatedWebhook",
        "parameters": [
          {
            "name": "X-Signature",
            "in": "header",
            "description": "HMAC-SHA256 signature: `sha256={hex}`. Computed over the canonicalized (RFC 8785) request body using your subscription's secret.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentAccountUpdatedWebhook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Return any 2xx to acknowledge the delivery."
          }
        },
        "security": [],
        "x-mint": {
          "href": "/v2/api-reference/webhook-events/paymentaccountupdated",
          "metadata": {
            "title": "paymentAccountUpdated"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountDetails": {
        "type": "object",
        "description": "The identifier that names the account: a `kind`, plus the fields that kind takes. Send exactly those fields. A missing field, or one the kind doesn't take, returns `400` `validation-error` with a pointer for each field. Read a kind's fields from [Get registration requirements](/v2/api-reference/payment-accounts/get-registration-requirements). [Payment accounts](/v2/guides/payment-accounts) shows the kinds we support today.",
        "required": [
          "kind"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "description": "The kind of identifier, such as `clabe`, `pixKey`, `address` or `signerPublicKey`."
          }
        },
        "additionalProperties": {
          "type": "string"
        },
        "example": {
          "clabe": "012180000000000002",
          "kind": "clabe"
        }
      },
      "AccountDetailsRequirements": {
        "type": "object",
        "required": [
          "kind",
          "required"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "description": "The `accountDetails.kind`, such as `clabe`."
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The fields `accountDetails` must carry for this kind, as JSON Pointers such as\n`#/accountDetails/clabe`."
          }
        }
      },
      "AccountRail": {
        "type": "object",
        "required": [
          "source",
          "destination"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "The fiat currency of this rail. Absent for a wallet rail.",
            "example": "MXN"
          },
          "destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RailTransferDetails",
                "description": "The account as the destination of a transfer on this rail. Null when the rail cannot\ncarry money to this account."
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RailTransferDetails",
                "description": "The account as the source of a transfer on this rail. Null when the rail cannot carry\nmoney from this account."
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AccountType": {
        "type": "string",
        "description": "`personal`: an individual who completes KYC. `business`: a company that completes KYB.",
        "enum": [
          "personal",
          "business"
        ]
      },
      "AddMemberRequest": {
        "type": "object",
        "required": [
          "role"
        ],
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Invite or add a member by email address. If the email matches a user who has already\nsigned in through your JWT, they're added as a member immediately; otherwise a pending\ninvite is created and accepted automatically the first time that email signs in via\nyour `kyb` JWT. Use `email` when you don't have the person's `memberId` yet, or when you\nwant Etherfuse to email them an invite (see `emailInviteLink`). Send exactly one of\n`email` or `memberId`."
          },
          "emailInviteLink": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional. When adding by `email` and a pending invite is created (the email isn't\nalready a member), Etherfuse emails them this URL **as-is** (you control the full link,\nincluding any query params) as the call to action. Omit it to create the invite\nsilently and notify the user yourself. Ignored when the email already matches a member\nwho is added immediately."
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Add someone directly by their `sub` (the value you put in the JWT `sub` when they sign\nin); no email is sent. The person must already exist, which happens the first time they\nexchange a JWT via\n[POST /auth/token](/v2/api-reference/authentication/exchange-a-partner-jwt) (or are\nlaunched); an unknown `sub` returns 404. A business organization's id is rejected. Send\nexactly one of `email` or `memberId`."
          },
          "role": {
            "$ref": "#/components/schemas/MembershipRole",
            "description": "The member's role in the organization."
          }
        },
        "example": {
          "email": "alice@acme.com",
          "emailInviteLink": "https://partner.example.com/kyb-invite?org=a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "role": "admin"
        }
      },
      "AddressDocumentKind": {
        "type": "string",
        "description": "Which kind of address document it is. Case-sensitive: send the value exactly as listed.",
        "default": "UTILITY_BILL",
        "enum": [
          "UTILITY_BILL",
          "BANK_STATEMENT",
          "TAX_BILL",
          "EMPLOYMENT_CERTIFICATE",
          "PROPERTY_DEED",
          "INVOICE"
        ]
      },
      "AgreementAnswers": {
        "type": "object",
        "required": [
          "acceptTerms",
          "signatureName",
          "signatureDate"
        ],
        "properties": {
          "acceptTerms": {
            "type": "boolean",
            "description": "Your affirmation of [the declaration](/v2/guides/kyc-api#the-customer-agreement). Must be `true`.",
            "enum": [
              true
            ]
          },
          "signatureDate": {
            "type": "string",
            "format": "date",
            "description": "When the customer accepted, `YYYY-MM-DD`. Printed on their agreement as the date of\nsignature. Should be within one day of today's date.",
            "example": "2026-08-24"
          },
          "signatureName": {
            "type": "string",
            "description": "The name the customer typed to sign, in their own words. Printed on their agreement in\na cursive face, so it appears as the signature on the executed document.",
            "example": "Ana Ejemplo",
            "maxLength": 255
          }
        },
        "additionalProperties": false
      },
      "AmountLimits": {
        "type": "object",
        "required": [
          "volume30DayUsd",
          "max30DayVolumeUsd",
          "remaining30DayVolumeUsd"
        ],
        "properties": {
          "max30DayVolumeUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "The organization's own limit on its 30-day volume, in USD, as a decimal string. `null`\nwhen the organization has no 30-day limit of its own.",
            "example": "50000"
          },
          "remaining30DayVolumeUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "How much more the organization can order before it reaches a 30-day limit, in USD, as a\ndecimal string. For a customer organization, this is the lower of what its own limit\nand its business organization's limit leave. Never below 0. `null` when no 30-day limit\napplies.",
            "example": "48749.5"
          },
          "volume30DayUsd": {
            "type": "string",
            "description": "USD value of the orders created in the last 30 days, as a decimal string with at most\ntwo decimals.",
            "example": "1250.5"
          }
        }
      },
      "AuthErrorCode": {
        "type": "string",
        "enum": [
          "invalid_request",
          "invalid_client",
          "invalid_grant",
          "invalid_scope",
          "unauthorized_client",
          "unsupported_grant_type",
          "server_error"
        ]
      },
      "AuthErrorResponse": {
        "type": "object",
        "description": "OAuth 2.0 error response ([RFC 6749 §5.2](https://www.rfc-editor.org/rfc/rfc6749#section-5.2)).",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/AuthErrorCode"
          },
          "error_description": {
            "type": "string"
          },
          "error_uri": {
            "type": "string"
          }
        }
      },
      "AuthGrantType": {
        "type": "string",
        "description": "The OAuth 2.0 grant type.",
        "enum": [
          "urn:ietf:params:oauth:grant-type:jwt-bearer",
          "refresh_token"
        ]
      },
      "AuthLaunchRequest": {
        "type": "object",
        "required": [
          "grant_type",
          "assertion",
          "target"
        ],
        "properties": {
          "assertion": {
            "type": "string",
            "description": "Send the partner-signed JWT here when `grant_type` is\n`urn:ietf:params:oauth:grant-type:jwt-bearer`. Send a `refresh_token` from an earlier\n`POST /auth/token` exchange here when `grant_type` is `refresh_token`."
          },
          "grant_type": {
            "$ref": "#/components/schemas/AuthGrantType"
          },
          "return_url": {
            "type": "string",
            "description": "We send the person to this URL when they leave the app."
          },
          "target": {
            "type": "string",
            "description": "We send the person to this app path after they sign in. It must be one of the allowed\ntargets in [User Launch Flows](/v2/guides/user-launch-flows#targets). We reject any\nother path.",
            "example": "/kyb"
          }
        },
        "example": {
          "assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Imt...",
          "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
          "target": "/kyb"
        }
      },
      "AuthTokenRequest": {
        "type": "object",
        "required": [
          "grant_type"
        ],
        "properties": {
          "assertion": {
            "type": "string",
            "description": "Send the partner-signed JWT here when `grant_type` is\n`urn:ietf:params:oauth:grant-type:jwt-bearer`."
          },
          "grant_type": {
            "$ref": "#/components/schemas/AuthGrantType"
          },
          "refresh_token": {
            "type": "string",
            "description": "Send a refresh token from an earlier exchange here when `grant_type` is\n`refresh_token`."
          }
        },
        "example": {
          "assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Imt...",
          "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer"
        }
      },
      "AuthTokenResponse": {
        "type": "object",
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "refresh_token"
        ],
        "properties": {
          "access_token": {
            "type": "string",
            "description": "Send this to the Ramp API as `Authorization: Bearer <access_token>`."
          },
          "expires_in": {
            "type": "integer",
            "format": "int64",
            "description": "The access token's lifetime, in seconds.",
            "example": 3600,
            "minimum": 0
          },
          "refresh_token": {
            "type": "string",
            "description": "Send this with the `refresh_token` grant to get a new access token without signing\nanother JWT."
          },
          "scope": {
            "type": "string",
            "description": "We copy the granted scope from the JWT's `scope` claim. We leave it out for a session\nwith no scope."
          },
          "token_type": {
            "type": "string",
            "example": "Bearer"
          }
        }
      },
      "AuthorizationFundingDestination": {
        "type": "object",
        "title": "authorization",
        "required": [
          "authorizationId"
        ],
        "properties": {
          "authorizationId": {
            "type": "string",
            "format": "uuid",
            "description": "The order `authorization` to approve."
          }
        }
      },
      "AuthorizationMethod": {
        "oneOf": [
          {
            "type": "object",
            "title": "signature",
            "required": [
              "algorithm",
              "message",
              "kind"
            ],
            "properties": {
              "algorithm": {
                "$ref": "#/components/schemas/SignatureAlgorithm"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "signature"
                ]
              },
              "message": {
                "type": "string",
                "description": "Sign the UTF-8 bytes of this string."
              }
            }
          }
        ],
        "description": "How the holder approves, tagged by `kind`. `signature` is the only kind today."
      },
      "AuthorizationReason": {
        "type": "string",
        "description": "`funding`: we move the source funds from an embedded wallet once approved. `claim`: approving accepts the funds of a `claimable` order into an embedded wallet.",
        "enum": [
          "funding",
          "claim"
        ]
      },
      "BlockchainFundingDestination": {
        "type": "object",
        "title": "blockchain",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "The address to send to."
          },
          "memo": {
            "type": "string",
            "description": "The memo to include. Absent when none is needed."
          },
          "preparedTransaction": {
            "$ref": "#/components/schemas/PreparedTransaction"
          }
        }
      },
      "BlockchainSupplyCachable": {
        "type": "object",
        "description": "A bond's supply on one chain.",
        "required": [
          "blockchain",
          "tokenIdentifier",
          "totalSupply",
          "decimals"
        ],
        "properties": {
          "blockchain": {
            "type": "string",
            "description": "The chain, such as `solana` or `stellar`."
          },
          "decimals": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The token's decimals on this chain. Null when we could not read them.",
            "minimum": 0
          },
          "tokenIdentifier": {
            "type": "string",
            "description": "The token on this chain: a mint address, a contract address, or a Stellar\n`CODE-ISSUER` asset."
          },
          "totalSupply": {
            "type": "string",
            "description": "The total supply on this chain."
          }
        }
      },
      "Chain": {
        "type": "string",
        "description": "The chain a wallet is on.",
        "enum": [
          "stellar",
          "solana",
          "base",
          "polygon",
          "monad",
          "avalanche"
        ]
      },
      "ClaimInstructions": {
        "oneOf": [
          {
            "type": "object",
            "title": "stellarClaimableBalance",
            "required": [
              "balanceId",
              "asset",
              "amount",
              "claimant",
              "expiresAt",
              "kind"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal string."
              },
              "asset": {
                "type": "string"
              },
              "balanceId": {
                "type": "string",
                "description": "The Stellar claimable balance ID."
              },
              "claimant": {
                "type": "string",
                "description": "The Stellar account that can claim the balance."
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "stellarClaimableBalance"
                ]
              },
              "preparedTransaction": {
                "$ref": "#/components/schemas/PreparedClaimTransaction"
              }
            }
          }
        ],
        "description": "What the customer needs to accept the funds while the order is `claimable`, tagged by `kind`. Ask for a claim with `POST /organization/{organizationId}/order/{id}/claim`."
      },
      "Country": {
        "type": "object",
        "description": "A country we support.",
        "required": [
          "code",
          "code3",
          "name"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-2 code, such as `MX`."
          },
          "code3": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-3 code, such as `MEX`."
          },
          "name": {
            "type": "string",
            "description": "The country's English name, such as `Mexico`."
          }
        },
        "example": {
          "code": "MX",
          "code3": "MEX",
          "name": "Mexico"
        }
      },
      "CreateOrderRequest": {
        "type": "object",
        "required": [
          "quoteId"
        ],
        "properties": {
          "memo": {
            "type": "string",
            "description": "Your note for the order. Up to 255 characters; longer returns `400`. A memo that\ncontains `<`, `>`, `;`, `{`, `}`, a backtick, `|`, `\\`, `$(`, `../` or a control\ncharacter also returns `400`.",
            "maxLength": 255
          },
          "quoteId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "example": {
          "memo": "Invoice 1042",
          "quoteId": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
        }
      },
      "CreateOrganizationRequest": {
        "type": "object",
        "properties": {
          "accountType": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccountType",
                "description": "Whether this org is an individual or a company:\n\n- `personal`: an individual customer completing KYC. Send `userInfo`.\n- `business`: a company completing KYB. `userInfo` is rejected.\n\nOptional today and defaults to `personal`. It will become required, so send it\nexplicitly now."
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-1 alpha-2 country code (e.g. `MX`). Business orgs only; rejected on personal\norgs. When provided, Etherfuse generates the KYB onboarding at creation, seeding the\ncompany entity with this country so the user lands straight in KYB. Omit it and the\nuser is prompted for their country when they begin KYB. We don't open businesses in\nthe countries `GET /lookup/restricted-countries` marks `kyb`, and return `400`\n`country-not-supported` for them.",
            "example": "MX"
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The organization's display name: the friendly label shown in UIs and API responses.\nFor a `business` org completing KYB, the legal entity name is captured separately via\n`legalName`."
          },
          "id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "legalName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal entity name for the KYB company entity (e.g. the incorporated name on the\ncompany's registry documents). Pass it together with `country` when generating the KYB\nonboarding at creation; rejected without `country`. Independent of `displayName`:\nrenaming the org does not change the legal name, and vice versa.",
            "example": "Acme Corporation S.A. de C.V."
          },
          "userInfo": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/UserInfo",
                "description": "Optional info about the end user. Required eventually for personal orgs. Rejected on\nbusiness orgs (those don't have a single end user)."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "example": {
          "accountType": "personal",
          "displayName": "Ana Ejemplo",
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "userInfo": {
            "displayName": "Ana Ejemplo",
            "email": "ana@example.com"
          }
        }
      },
      "CreatePaymentAccountRequest": {
        "type": "object",
        "required": [
          "kind",
          "label",
          "accountDetails"
        ],
        "properties": {
          "accountDetails": {
            "$ref": "#/components/schemas/AccountDetails"
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code of the account's market. Send with `currency` for a bank\naccount. Omit for a wallet.",
            "example": "MX"
          },
          "currency": {
            "type": "string",
            "description": "Three-letter currency code of the account's market. Send with `country` for a bank\naccount. Omit for a wallet.",
            "example": "MXN"
          },
          "kind": {
            "$ref": "#/components/schemas/PaymentAccountKind"
          },
          "label": {
            "type": "string",
            "description": "Your organization's name for the account. Must not be blank. We trim it. A label that\ncontains `<`, `>`, `;`, `{`, `}`, a backtick, `|`, `\\`, `$(`, `../` or a control\ncharacter returns `400`.",
            "example": "Operating account"
          },
          "registrationInfo": {
            "type": "object",
            "description": "Information about the account holder, as field names and string values. The fields a\nroute needs depend on the route and on the organization's account type. Read them\nfrom [Get registration requirements](/v2/api-reference/payment-accounts/get-registration-requirements):\nsend the fields its `registrationInfo.missing` lists. [Payment accounts](/v2/guides/payment-accounts)\nshows the fields we use today. Wallets need none.",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            }
          }
        }
      },
      "CreateQuoteRequest": {
        "type": "object",
        "required": [
          "source",
          "destination",
          "sourceAmount",
          "sourceAsset",
          "destinationAsset"
        ],
        "properties": {
          "destination": {
            "$ref": "#/components/schemas/PaymentAccountRef"
          },
          "destinationAsset": {
            "type": "string",
            "description": "An `asset` from `GET /supported_assets`: a currency code for a fiat destination, or a\ntoken's `asset` for a crypto destination.",
            "example": "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN"
          },
          "destinationRail": {
            "$ref": "#/components/schemas/PaymentRail",
            "description": "The rail the destination moves on. Omit to use the destination account's default rail."
          },
          "partnerFeeBpsOverride": {
            "type": "integer",
            "format": "int32",
            "description": "Partner fee for this quote in basis points, in place of your organization's default\npartner fee. Values above 500 are capped at 500. We use it only when you quote for one\nof your customer organizations, and ignore it on a quote an organization makes for\nitself.",
            "minimum": 0
          },
          "source": {
            "$ref": "#/components/schemas/PaymentAccountRef"
          },
          "sourceAmount": {
            "type": "string",
            "description": "Amount the source sends, as a positive decimal string.",
            "example": "1000"
          },
          "sourceAsset": {
            "type": "string",
            "description": "An `asset` from `GET /supported_assets`: a currency code such as `MXN` for a fiat\nsource, or a token's `asset` for a crypto source.",
            "example": "MXN"
          },
          "sourceRail": {
            "$ref": "#/components/schemas/PaymentRail",
            "description": "The rail the source moves on. Omit to use the source account's default rail."
          }
        },
        "example": {
          "destination": {
            "id": "8c1d2e3f-4a5b-4c6d-8e7f-901a2b3c4d5e",
            "type": "stored"
          },
          "destinationAsset": "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
          "source": {
            "id": "3f9a2c1e-5b7d-4e8f-9a01-2b3c4d5e6f70",
            "type": "stored"
          },
          "sourceAmount": "1000",
          "sourceAsset": "MXN"
        }
      },
      "CreateWebhookSubscriptionRequest": {
        "type": "object",
        "required": [
          "url",
          "eventType"
        ],
        "properties": {
          "eventType": {
            "$ref": "#/components/schemas/WebhookEventType"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where we send the event. Must use `https` in production and a domain name, not an IP\naddress.",
            "maxLength": 512
          }
        },
        "example": {
          "eventType": "orderUpdated",
          "url": "https://example.com/etherfuse/webhooks"
        }
      },
      "CreatedWebhookSubscription": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookSubscription"
          },
          {
            "type": "object",
            "required": [
              "secret"
            ],
            "properties": {
              "secret": {
                "type": "string",
                "description": "HMAC key for verifying deliveries, encoded as URL-safe base64 with padding. Returned\nonly in this response."
              }
            }
          }
        ],
        "description": "We return the signing secret once, when the subscription is created."
      },
      "CurrencyFxFees": {
        "type": "object",
        "required": [
          "currency",
          "tiers"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "The market's currency, such as `MXN`."
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FxFeeTier"
            },
            "description": "Tiers ordered by `minVolumeUsd`."
          }
        }
      },
      "CurrencyWithinMarketFees": {
        "type": "object",
        "required": [
          "currency",
          "fees"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "The market's currency, such as `MXN`."
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WithinMarketFee"
            }
          }
        }
      },
      "Fee": {
        "type": "object",
        "required": [
          "type",
          "amount",
          "asset",
          "bps"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "Decimal string."
          },
          "asset": {
            "type": "string",
            "description": "The asset the fee is charged in."
          },
          "bps": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The fee rate in basis points, when the fee has one. Always null on a quote."
          },
          "type": {
            "$ref": "#/components/schemas/FeeType"
          }
        }
      },
      "FeeAssetKind": {
        "type": "string",
        "description": "`fiat` is the market's currency or one of its stablecoins, such as MXN or USDC. `stablebond` is the market's stablebond, such as CETES. `principalToken` is its principal token, such as MEXe.",
        "enum": [
          "fiat",
          "stablebond",
          "principalToken"
        ]
      },
      "FeeScheduleResponse": {
        "type": "object",
        "required": [
          "fx",
          "withinMarket"
        ],
        "properties": {
          "fx": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyFxFees"
            },
            "description": "FX fee tiers for each market that has an FX fee. The US dollar market has none."
          },
          "withinMarket": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyWithinMarketFees"
            },
            "description": "Flat fees for trades inside one market."
          }
        }
      },
      "FeeType": {
        "type": "string",
        "description": "`networkFee` and `walletSigning` appear only on orders that move an embedded wallet's funds. We invoice them at cost, so they are not part of `feeBps`, `feeAmount` or `destinationAmount`. See [Fees and billing](/v2/guides/embedded-wallets#fees-and-billing).",
        "enum": [
          "transactionFee",
          "partnerFee",
          "walletSponsor",
          "bridge",
          "networkFee",
          "walletSigning"
        ]
      },
      "FieldViolation": {
        "type": "object",
        "required": [
          "detail",
          "pointer"
        ],
        "properties": {
          "detail": {
            "type": "string",
            "description": "What is wrong with the field.",
            "example": "This field is required."
          },
          "pointer": {
            "type": "string",
            "description": "JSON Pointer to the field in the request, for example `#/accountDetails/clabe`.",
            "example": "#/accountDetails/clabe"
          }
        }
      },
      "FundingDestination": {
        "allOf": [
          {
            "$ref": "#/components/schemas/FundingDetails"
          },
          {
            "type": "object",
            "required": [
              "expiresAt"
            ],
            "properties": {
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When this destination stops accepting funds, or null. Always null for an\n`authorizationId` destination, whose authorization carries its own `expiresAt`."
              }
            }
          }
        ],
        "description": "Where to send the funds. The fields follow `fundingInstructions.rail`: `spei` gives a\nCLABE, `pix` gives a BR Code, and a chain gives an address. When the source is an embedded\nwallet there is nowhere to send funds: the destination names the order's `authorization`,\nand we move the funds once the holder approves it."
      },
      "FundingDetails": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/SpeiFundingDestination"
          },
          {
            "$ref": "#/components/schemas/PixFundingDestination"
          },
          {
            "$ref": "#/components/schemas/BlockchainFundingDestination"
          },
          {
            "$ref": "#/components/schemas/AuthorizationFundingDestination"
          }
        ]
      },
      "FundingInstructions": {
        "type": "object",
        "description": "How the source funds the order.",
        "required": [
          "rail",
          "fundingDeadline"
        ],
        "properties": {
          "destination": {
            "$ref": "#/components/schemas/FundingDestination",
            "description": "Where to send the funds. Absent until the funding details are available."
          },
          "fundingDeadline": {
            "type": "string",
            "format": "date-time",
            "description": "Fund the order before this time, 25 minutes after the order is created. An order with\nno funds by then moves to `canceled`, and we send `orderUpdated`."
          },
          "rail": {
            "$ref": "#/components/schemas/PaymentRail"
          },
          "reference": {
            "type": "string",
            "description": "Etherfuse's reference for this order's funding, on `spei` and `pix` only. The customer\nputs it in the transfer's numeric reference so we match the deposit to this order. Set\nwhen the order is created. Absent when the order is funded on a chain, because the\nfunds go to an address for this order.",
            "example": "1000042"
          }
        }
      },
      "FxFeeTier": {
        "type": "object",
        "required": [
          "minVolumeUsd",
          "maxVolumeUsd",
          "feeBps"
        ],
        "properties": {
          "feeBps": {
            "type": "integer",
            "format": "int32",
            "description": "FX fee in basis points."
          },
          "maxVolumeUsd": {
            "type": [
              "string",
              "null"
            ],
            "description": "30-day volume in USD where the next tier starts, as a decimal string. Exclusive. Null on\nthe top tier."
          },
          "minVolumeUsd": {
            "type": "string",
            "description": "Lowest 30-day volume in USD for this tier, as a decimal string. Inclusive."
          }
        }
      },
      "IdentityDocumentKind": {
        "type": "string",
        "description": "Which identity document the `id_*` parts are. Required whenever one is sent. Case-sensitive: send the value exactly as listed.",
        "enum": [
          "ID_CARD",
          "PASSPORT",
          "DRIVERS"
        ]
      },
      "ImportVerificationRequest": {
        "type": "object",
        "description": "A verification session the partner already completed with the same provider, handed over as a share token they created for us. No other fields are accepted.",
        "required": [
          "shareToken"
        ],
        "properties": {
          "additionalInfo": {
            "$ref": "#/components/schemas/SubmitVerificationAdditionalInfo",
            "description": "Information a shared session does not bring across. Custom fields on your own\nverification level are not copied when you share an applicant. We check the CURP before\nwe spend the share token, and store it on the imported verification."
          },
          "shareToken": {
            "type": "string",
            "description": "The single-use, short-lived share token created for the verified applicant, targeting\nEtherfuse's client id.",
            "example": "_act-sbx-jwt-eyJhbGciOi..."
          }
        },
        "additionalProperties": false
      },
      "ImportVerificationResponse": {
        "type": "object",
        "description": "The outcome of importing a verification session.",
        "required": [
          "organizationId",
          "status"
        ],
        "properties": {
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequirementState"
            },
            "description": "What is still outstanding after the import: the same breakdown\n`GET /organization/{organizationId}/kyc?requirements=true` returns. Left out if we could\nnot read the requirements after the import."
          },
          "status": {
            "$ref": "#/components/schemas/VerificationStatus"
          }
        },
        "example": {
          "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "requirements": [
            {
              "requiresLaunch": false,
              "status": "satisfied",
              "type": "personalData"
            },
            {
              "requiresLaunch": false,
              "status": "satisfied",
              "type": "identityDocument"
            },
            {
              "requiresLaunch": false,
              "status": "pending",
              "type": "occupation"
            },
            {
              "requiresLaunch": true,
              "status": "satisfied",
              "type": "selfie"
            },
            {
              "requiresLaunch": false,
              "status": "pending",
              "type": "customerAgreement"
            }
          ],
          "status": "inProgress"
        }
      },
      "InvitedRecord": {
        "type": "object",
        "required": [
          "email",
          "role",
          "invitedAt"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "invitedAt": {
            "type": "string",
            "format": "date-time"
          },
          "role": {
            "$ref": "#/components/schemas/MembershipRole"
          }
        }
      },
      "Kyb": {
        "allOf": [
          {
            "$ref": "#/components/schemas/KybStatus"
          },
          {
            "type": "object",
            "required": [
              "organizationId"
            ],
            "properties": {
              "organizationId": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "example": {
          "approvedAt": null,
          "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
          "status": "submitted"
        }
      },
      "KybStatus": {
        "type": "object",
        "required": [
          "status",
          "approvedAt"
        ],
        "properties": {
          "approvedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the business was approved. Null until then."
          },
          "status": {
            "$ref": "#/components/schemas/VerificationStatus"
          }
        }
      },
      "KybUpdatedWebhook": {
        "type": "object",
        "required": [
          "event",
          "eventId",
          "occurredAt",
          "organizationId",
          "kyb"
        ],
        "properties": {
          "event": {
            "type": "string",
            "enum": [
              "kybUpdated"
            ]
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Unique per event. Use it to drop duplicate deliveries."
          },
          "kyb": {
            "$ref": "#/components/schemas/KybStatus"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "We set this to the business organization's id."
          }
        },
        "example": {
          "event": "kybUpdated",
          "eventId": "5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d",
          "kyb": {
            "approvedAt": "2026-09-29T19:00:00Z",
            "status": "approved"
          },
          "occurredAt": "2026-09-29T19:00:00Z",
          "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
        }
      },
      "Kyc": {
        "type": "object",
        "required": [
          "organizationId",
          "status",
          "currentRejectionReason",
          "approvedAt",
          "needsWork",
          "userMessage"
        ],
        "properties": {
          "approvedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "currentRejectionReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last review rejected the customer, when it did. Visible only to the partner that\nsubmitted the data."
          },
          "needsWork": {
            "type": "boolean",
            "description": "True when the customer has to correct something and resubmit."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequirementState"
            },
            "description": "What the customer's verification still needs, step by step. Present only with\n`?requirements=true`, and only once the customer has been routed to their country's\nrequirements."
          },
          "status": {
            "$ref": "#/components/schemas/VerificationStatus"
          },
          "userMessage": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the customer has to fix, when `needsWork` is true."
          }
        },
        "example": {
          "approvedAt": null,
          "currentRejectionReason": null,
          "needsWork": false,
          "organizationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
          "requirements": [
            {
              "requiresLaunch": false,
              "status": "satisfied",
              "type": "personalData"
            },
            {
              "requiresLaunch": false,
              "status": "pending",
              "type": "identityDocument"
            },
            {
              "requiresLaunch": true,
              "status": "pending",
              "type": "selfie"
            }
          ],
          "status": "inProgress",
          "userMessage": null
        }
      },
      "KycStatus": {
        "type": "object",
        "required": [
          "status",
          "approved",
          "needsWork",
          "userMessage"
        ],
        "properties": {
          "approved": {
            "type": "boolean",
            "description": "True when the customer can transact. It stays true while an approved customer\nre-verifies, so `status` can show `inProgress` or `submitted` at the same time."
          },
          "needsWork": {
            "type": "boolean",
            "description": "True when the customer has to correct something and resubmit."
          },
          "status": {
            "$ref": "#/components/schemas/VerificationStatus"
          },
          "userMessage": {
            "type": [
              "string",
              "null"
            ],
            "description": "We set this when `needsWork` is true, to tell the customer what to fix. Otherwise null."
          }
        }
      },
      "KycUpdatedWebhook": {
        "type": "object",
        "required": [
          "event",
          "eventId",
          "occurredAt",
          "organizationId",
          "kyc"
        ],
        "properties": {
          "event": {
            "type": "string",
            "enum": [
              "kycUpdated"
            ]
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Unique per event. Use it to drop duplicate deliveries."
          },
          "kyc": {
            "$ref": "#/components/schemas/KycStatus"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "We set this to the customer organization's id."
          }
        },
        "example": {
          "event": "kycUpdated",
          "eventId": "0d6f1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
          "kyc": {
            "approved": false,
            "needsWork": true,
            "status": "inProgress",
            "userMessage": "Please upload a current government-issued ID."
          },
          "occurredAt": "2026-09-29T19:00:00Z",
          "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
        }
      },
      "MarketAsset": {
        "type": "object",
        "description": "A currency in a country, and the rails that move it.",
        "required": [
          "asset",
          "country",
          "currency",
          "rails"
        ],
        "properties": {
          "asset": {
            "type": "string",
            "description": "The value to send as `sourceAsset` or `destinationAsset`: the currency code."
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code."
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code."
          },
          "rails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentRail"
            },
            "description": "The rails that move this currency in this country."
          }
        }
      },
      "Me": {
        "type": "object",
        "required": [
          "id",
          "displayName",
          "approvedAt",
          "partnerFeeDefaultBps"
        ],
        "properties": {
          "approvedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When your organization was approved. Null until then."
          },
          "displayName": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization's id. Send it as `organizationId` when a call acts for your own\norganization."
          },
          "partnerFeeDefaultBps": {
            "type": "integer",
            "format": "int32",
            "description": "Your default partner fee in basis points. We add it to quotes for your customer\norganizations when the quote request has no `partnerFeeBpsOverride`.",
            "maximum": 500,
            "minimum": 0
          }
        },
        "example": {
          "approvedAt": "2026-04-15T12:00:00Z",
          "displayName": "Acme Inc.",
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "partnerFeeDefaultBps": 100
        }
      },
      "MemberOrganizationList": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberOrganizationRecord"
            }
          }
        }
      },
      "MemberOrganizationRecord": {
        "type": "object",
        "description": "One organization a customer belongs to, with their role in it.",
        "required": [
          "organizationId",
          "displayName",
          "accountType",
          "role",
          "joinedAt"
        ],
        "properties": {
          "accountType": {
            "$ref": "#/components/schemas/AccountType",
            "description": "Whether the organization completes KYC (`personal`) or KYB (`business`)."
          },
          "displayName": {
            "type": "string",
            "description": "The organization's name."
          },
          "joinedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the customer joined this organization."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "The organization's id."
          },
          "role": {
            "$ref": "#/components/schemas/MembershipRole",
            "description": "The customer's role in this organization."
          }
        },
        "example": {
          "accountType": "business",
          "displayName": "Acme Inc.",
          "joinedAt": "2026-06-17T00:00:00Z",
          "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "role": "admin"
        }
      },
      "MemberRecord": {
        "type": "object",
        "required": [
          "memberId",
          "email",
          "role",
          "joinedAt"
        ],
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The member's email, if known."
          },
          "joinedAt": {
            "type": "string",
            "format": "date-time"
          },
          "memberId": {
            "type": "string",
            "description": "The member's `sub`. Empty if the member does not yet have a `sub` in your namespace."
          },
          "role": {
            "$ref": "#/components/schemas/MembershipRole"
          }
        }
      },
      "MembersResponse": {
        "type": "object",
        "required": [
          "members",
          "invited"
        ],
        "properties": {
          "invited": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvitedRecord"
            },
            "description": "Pending invites that have not been accepted yet."
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberRecord"
            },
            "description": "Active members. The org's own service account is never listed."
          }
        },
        "example": {
          "invited": [
            {
              "email": "bob@acme.com",
              "invitedAt": "2026-06-17T00:00:00Z",
              "role": "member"
            }
          ],
          "members": [
            {
              "email": "alice@acme.com",
              "joinedAt": "2026-06-17T00:00:00Z",
              "memberId": "9f1c4b2a-7d3e-4c5f-8a6b-1e2d3c4b5a6f",
              "role": "admin"
            }
          ]
        }
      },
      "MembershipRole": {
        "type": "string",
        "description": "The person's role in the organization.",
        "enum": [
          "admin",
          "member"
        ]
      },
      "OccupationAnswers": {
        "type": "object",
        "required": [
          "jobTitle",
          "industry"
        ],
        "properties": {
          "industry": {
            "type": "string",
            "description": "Occupation category: a `code` from\n[GET /verification/occupations](/v2/api-reference/kyc/list-occupation-categories). The\n`label` is not accepted; it is display copy and can be reworded.",
            "example": "4430200"
          },
          "jobTitle": {
            "type": "string",
            "description": "The customer's occupation, free text. Up to 255 characters.",
            "example": "Software Engineer"
          }
        },
        "additionalProperties": false
      },
      "OccupationCategoriesResponse": {
        "type": "object",
        "description": "The accepted `industry` values.",
        "required": [
          "occupations"
        ],
        "properties": {
          "occupations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OccupationCategory"
            }
          }
        },
        "example": {
          "occupations": [
            {
              "code": "1000000",
              "label": "NOT APPLICABLE"
            },
            {
              "code": "4430200",
              "label": "INFORMATION TECHNOLOGY - IT PROGRAMMING ENGINEERS OR TECHNICIANS"
            }
          ]
        }
      },
      "OccupationCategory": {
        "type": "object",
        "description": "One accepted `industry` value, with the label it stands for.",
        "required": [
          "code",
          "label"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The value to send as `industry`."
          },
          "label": {
            "type": "string",
            "description": "What the code means, as the reviewer sees it."
          }
        }
      },
      "Order": {
        "type": "object",
        "required": [
          "id",
          "organizationId",
          "status",
          "memo",
          "source",
          "destination",
          "fees",
          "returnedDeposits",
          "deliveryTransactionId",
          "fundingInstructions",
          "claimInstructions",
          "authorization",
          "createdAt",
          "updatedAt",
          "completedAt"
        ],
        "properties": {
          "authorization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/OrderAuthorization",
                "description": "Set while the order waits for the account holder to approve a transfer we built: a\n`funding` authorization while the order is `created`, and a `claim` authorization while\nit is `claimable`. Otherwise null. Approve it with\n`POST /organization/{organizationId}/order/{id}/authorization`."
              },
              {
                "type": "null"
              }
            ]
          },
          "claimInstructions": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ClaimInstructions",
                "description": "Set while the order is `claimable`. Otherwise null. Always null for an embedded\nwallet, whose claim is the order's `authorization`."
              },
              {
                "type": "null"
              }
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "deliveryTransactionId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hash of the on-chain transaction that delivered the funds to the destination wallet.\nWhen the customer has to claim the payout, we set it to their claim transaction. Null\nuntil the order is `completed`, and always null for a bank destination. It can also stay\nnull on a completed order, such as one completed before we added this field."
          },
          "destination": {
            "$ref": "#/components/schemas/OrderAmount"
          },
          "failure": {
            "$ref": "#/components/schemas/OrderFailure",
            "description": "Present only when `status` is `failed`."
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fee"
            }
          },
          "fundingInstructions": {
            "$ref": "#/components/schemas/FundingInstructions"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The order id. Equal to the `quoteId` it was created from."
          },
          "memo": {
            "type": [
              "string",
              "null"
            ]
          },
          "midMarketRate": {
            "type": "string",
            "description": "Destination asset units per source asset unit at quote time, before fees. Present when\nthe quote recorded a mid-market rate. On a CETES to USDC swap, divide\n`source.amountInFiat` by `source.amount * midMarketRate` to get MXN per USDC."
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "The organization the order belongs to."
          },
          "returnedDeposits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReturnedDeposit"
            },
            "description": "Deposits we sent back because they did not match the order, oldest first: a deposit\nfrom the order's source wallet for the wrong amount, or a bank transfer with this\norder's reference for the wrong amount. The order stays open and waits for a deposit\nthat matches. We return at most one deposit from a wallet per order, and only a single\ntransfer of the order's asset from the source wallet. A second wrong deposit, or a\ndeposit with more than one transfer, sender or asset, is held for our team and not\nsent back automatically. We never send back a deposit from any other wallet. Empty\nwhen we returned nothing."
          },
          "source": {
            "$ref": "#/components/schemas/OrderAmount"
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "example": {
          "authorization": null,
          "claimInstructions": null,
          "completedAt": null,
          "createdAt": "2026-09-28T17:05:02.114Z",
          "deliveryTransactionId": null,
          "destination": {
            "accountLabel": "Treasury wallet",
            "amount": "54.120000",
            "amountInFiat": "54.120000",
            "asset": "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
            "paymentAccountId": "8c1d2e3f-4a5b-4c6d-8e7f-901a2b3c4d5e",
            "rail": "stellar"
          },
          "fees": [
            {
              "amount": "2.50",
              "asset": "MXN",
              "bps": 25,
              "type": "transactionFee"
            }
          ],
          "fundingInstructions": {
            "destination": {
              "bankName": "Ejemplo Banco",
              "clabe": "646180000000000009",
              "expiresAt": null,
              "recipientName": "Ejemplo Receptor"
            },
            "fundingDeadline": "2026-09-28T17:30:02Z",
            "rail": "spei",
            "reference": "1000042"
          },
          "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
          "memo": "Invoice 1042",
          "organizationId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
          "returnedDeposits": [],
          "source": {
            "accountLabel": "Operating account",
            "amount": "1000",
            "amountInFiat": "1000",
            "asset": "MXN",
            "paymentAccountId": "3f9a2c1e-5b7d-4e8f-9a01-2b3c4d5e6f70",
            "rail": "spei"
          },
          "status": "created",
          "updatedAt": "2026-09-28T17:05:02.114Z"
        }
      },
      "OrderAmount": {
        "type": "object",
        "required": [
          "paymentAccountId",
          "amount",
          "asset",
          "rail",
          "accountLabel"
        ],
        "properties": {
          "accountLabel": {
            "type": "string",
            "description": "Your organization's label for the account."
          },
          "amount": {
            "type": "string",
            "description": "Decimal string."
          },
          "amountInFiat": {
            "type": "string",
            "description": "Quote-time value of this amount in the asset's own fiat currency. For tokens, the currency is listed by GET /supported_assets."
          },
          "asset": {
            "type": "string"
          },
          "paymentAccountId": {
            "type": "string",
            "format": "uuid"
          },
          "rail": {
            "$ref": "#/components/schemas/PaymentRail"
          },
          "walletAddressPreview": {
            "type": "string",
            "description": "First and last four characters of a registered wallet address, separated by three dots. Omitted for other accounts."
          }
        }
      },
      "OrderAuthorization": {
        "type": "object",
        "description": "A transfer we built that waits for the account holder's approval. One is pending at a time. We replace a `funding` authorization when it expires or its transaction can no longer land, and each `POST /organization/{organizationId}/order/{id}/claim` replaces an open `claim` authorization. A replacement has a new `id`, and we send `orderUpdated`.",
        "required": [
          "id",
          "reason",
          "method",
          "expiresAt"
        ],
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Approve before this time."
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "$ref": "#/components/schemas/AuthorizationMethod"
          },
          "reason": {
            "$ref": "#/components/schemas/AuthorizationReason"
          }
        },
        "example": {
          "expiresAt": "2026-09-28T17:20:00Z",
          "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
          "method": {
            "algorithm": "es256",
            "kind": "signature",
            "message": "eyJvcmRlcklkIjoiNWU2ZjdhOGIifQ"
          },
          "reason": "funding"
        }
      },
      "OrderFailure": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderFailureCode"
          },
          "message": {
            "type": "string",
            "example": "The order could not be completed."
          }
        }
      },
      "OrderFailureCode": {
        "type": "string",
        "enum": [
          "fulfillmentFailed"
        ]
      },
      "OrderPage": {
        "type": "object",
        "required": [
          "items",
          "totalItems",
          "pageSize",
          "pageNumber",
          "totalPages"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Order"
            }
          },
          "pageNumber": {
            "type": "integer"
          },
          "pageSize": {
            "type": "integer"
          },
          "totalItems": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          }
        }
      },
      "OrderStatus": {
        "type": "string",
        "description": "`created`: waiting for the source funds. `funded`: source funds received. `sourcingLiquidity`: source funds received, and the payout is waiting while we add funds to our payout account, usually by the next business day. It usually happens only for larger orders, and generally only for payouts to a bank account. The order stays in this status until it is `completed` or `failed`. `claimable`: delivered, waiting for the customer to claim; see `claimInstructions`. `completed`: delivered. `failed`: could not be completed; see `failure`. `canceled`: canceled before completion. `refunded`: the order ended and we sent its source funds back. A returned deposit in `returnedDeposits` does not end the order.",
        "enum": [
          "created",
          "funded",
          "sourcingLiquidity",
          "claimable",
          "completed",
          "failed",
          "canceled",
          "refunded"
        ]
      },
      "OrderUpdatedWebhook": {
        "type": "object",
        "required": [
          "event",
          "eventId",
          "occurredAt",
          "order"
        ],
        "properties": {
          "event": {
            "type": "string",
            "enum": [
              "orderUpdated"
            ]
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Unique per event. Use it to drop duplicate deliveries."
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "order": {
            "$ref": "#/components/schemas/Order"
          }
        }
      },
      "Organization": {
        "type": "object",
        "required": [
          "id",
          "displayName",
          "accountType",
          "approvedAt",
          "createdAt",
          "updatedAt",
          "partnerFeeDefaultBps",
          "preferredPayoutCurrency"
        ],
        "properties": {
          "accountType": {
            "$ref": "#/components/schemas/AccountType"
          },
          "approvedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the organization's KYC or KYB was approved. Null until then."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "displayName": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "partnerFeeDefaultBps": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Your default partner fee in basis points. Null unless this is your own approved\nbusiness.",
            "maximum": 500,
            "minimum": 0
          },
          "preferredPayoutCurrency": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PayoutCurrency",
                "description": "We pay your partner earnings in this currency. Null until you choose one, and always\nnull unless this is your own approved business."
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "example": {
          "accountType": "personal",
          "approvedAt": null,
          "createdAt": "2026-10-01T14:30:00Z",
          "displayName": "Ana Ejemplo",
          "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
          "partnerFeeDefaultBps": null,
          "preferredPayoutCurrency": null,
          "updatedAt": "2026-10-01T14:30:00Z"
        }
      },
      "OrganizationBalances": {
        "type": "object",
        "required": [
          "wallets"
        ],
        "properties": {
          "wallets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentAccountBalances"
            },
            "description": "One entry per wallet payment account."
          }
        }
      },
      "OrganizationPage": {
        "type": "object",
        "required": [
          "items",
          "totalItems",
          "pageSize",
          "pageNumber",
          "totalPages"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Organization"
            }
          },
          "pageNumber": {
            "type": "integer"
          },
          "pageSize": {
            "type": "integer"
          },
          "totalItems": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          }
        }
      },
      "PartnerStatementEntry": {
        "type": "object",
        "description": "One closed month of revenue share. We never list open months.",
        "required": [
          "periodYear",
          "periodMonth",
          "status",
          "closedAt",
          "paidAt",
          "payoutTotal",
          "payoutCurrency"
        ],
        "properties": {
          "closedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When we froze the month, RFC 3339."
          },
          "paidAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When we recorded the payout, RFC 3339. Null until then."
          },
          "payoutCurrency": {
            "type": [
              "string",
              "null"
            ],
            "description": "We set this to the currency the payout settled in, such as `USDC`, `USDT`, `USD`, or\n`MXN`. Null until we record a payout."
          },
          "payoutTotal": {
            "type": [
              "string",
              "null"
            ],
            "description": "The amount we paid out, as a decimal string with two fractional digits, truncated\ntoward zero. It matches the CSV and PDF. Null until we record a payout, and for a month\nthat settled at zero.",
            "example": "1250.00"
          },
          "periodMonth": {
            "type": "integer",
            "format": "int32",
            "description": "We set this to the statement's month, 1 through 12, with no zero padding.",
            "maximum": 12,
            "minimum": 1
          },
          "periodYear": {
            "type": "integer",
            "format": "int32",
            "description": "We set this to the statement's four digit year."
          },
          "status": {
            "type": "string",
            "description": "`closed` once we freeze the month, `paid` once we record a payout. Treat this as an\nopen set; we may add values.",
            "example": "closed"
          }
        }
      },
      "PartnerStatementList": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerStatementEntry"
            },
            "description": "Your statements, newest first."
          }
        }
      },
      "PaymentAccount": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "label",
          "rails",
          "createdAt"
        ],
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/PaymentAccountKind",
            "description": "We set this to the `kind` you sent when you created the account."
          },
          "label": {
            "type": "string",
            "description": "Your organization's name for the account."
          },
          "rails": {
            "type": "object",
            "description": "The rails this account can move money on, keyed by rail name (a `PaymentRail` value\nsuch as `spei` or `stellar`). A rail the account cannot move money on is absent. The\naccount identifier you registered is not returned.",
            "additionalProperties": {
              "$ref": "#/components/schemas/AccountRail"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "status": {
            "$ref": "#/components/schemas/PaymentAccountStatus"
          }
        },
        "example": {
          "createdAt": "2026-09-28T17:04:11.482Z",
          "id": "3f9a2c1e-5b7d-4e8f-9a01-2b3c4d5e6f70",
          "kind": "bank",
          "label": "Operating account",
          "rails": {
            "spei": {
              "currency": "MXN",
              "destination": {
                "isDefault": true,
                "status": "pending"
              },
              "source": {
                "isDefault": true,
                "status": "ready"
              }
            }
          },
          "status": "pending"
        }
      },
      "PaymentAccountBalances": {
        "type": "object",
        "required": [
          "paymentAccountId",
          "chain",
          "observedAt",
          "updatedAt",
          "status",
          "balances"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "The address we read. We leave it out for an embedded wallet."
          },
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletBalance"
            },
            "description": "One entry per held asset. Empty when the wallet holds none, or when we haven't read\nit yet."
          },
          "chain": {
            "$ref": "#/components/schemas/Chain"
          },
          "observedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When we last read the wallet from the chain. Null until our first read finishes."
          },
          "paymentAccountId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/WalletBalancesStatus"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the stored balances last changed, from a chain read or a completed order. Use\nit to keep the newer of two copies of a wallet's balances."
          }
        },
        "example": {
          "address": "3XnhVzKqNTz2wpNjyhbCsSFvz4Y6VNSVaVNhFTNGmqxr",
          "balances": [
            {
              "amountInFiat": "1932.551274",
              "amountInUsd": "105.214877",
              "balance": "1500.123456",
              "currency": "mxn",
              "identifier": "CETES7CKqqKQizuSN6iWQwmTeFRjbJR6Vw2XRKfEDR8f",
              "symbol": "cetes",
              "tokenKind": "bond"
            }
          ],
          "chain": "solana",
          "observedAt": "2026-10-07T12:00:00Z",
          "paymentAccountId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
          "status": "current",
          "updatedAt": "2026-10-07T12:20:00Z"
        }
      },
      "PaymentAccountKind": {
        "type": "string",
        "description": "The kind of account. `embeddedWallet` is a wallet we create on a chain; see [Embedded wallets](/v2/guides/embedded-wallets). `debitCard` and `cash` return `422` `unsupported`.",
        "enum": [
          "bank",
          "wallet",
          "debitCard",
          "cash",
          "embeddedWallet"
        ]
      },
      "PaymentAccountPage": {
        "type": "object",
        "required": [
          "items",
          "totalItems",
          "pageSize",
          "pageNumber",
          "totalPages"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentAccount"
            }
          },
          "pageNumber": {
            "type": "integer"
          },
          "pageSize": {
            "type": "integer"
          },
          "totalItems": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          }
        }
      },
      "PaymentAccountRef": {
        "oneOf": [
          {
            "type": "object",
            "title": "stored",
            "required": [
              "id",
              "type"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "A payment account `id` held by the organization in the route, or by your own\norganization when the route names one of your customers."
              },
              "type": {
                "type": "string",
                "enum": [
                  "stored"
                ]
              }
            }
          },
          {
            "type": "object",
            "title": "inline",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "inline"
                ]
              }
            }
          }
        ],
        "description": "A payment account in a quote, tagged by `type`. Use `stored` with a registered account's `id`. `inline` is not supported yet and returns `400` `invalid-request`."
      },
      "PaymentAccountRequirements": {
        "type": "object",
        "required": [
          "accountDetails",
          "accountDetailsKinds",
          "registrationInfo"
        ],
        "properties": {
          "accountDetails": {
            "$ref": "#/components/schemas/AccountDetailsRequirements",
            "description": "The `accountDetails` fields for the `accountDetailsKind` you sent. When you leave it\nout, these are the fields of the first kind in `accountDetailsKinds`."
          },
          "accountDetailsKinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountDetailsRequirements"
            },
            "description": "Each `accountDetails.kind` you can register here, with its fields. When you send\n`accountDetailsKind`, we list only that kind. When a market accepts several kinds,\nthe customer sends the one they have, such as a PIX key or full bank details."
          },
          "registrationInfo": {
            "$ref": "#/components/schemas/RegistrationInfoRequirements"
          }
        }
      },
      "PaymentAccountStatus": {
        "type": "string",
        "description": "The account as a whole. `ready` when any rail direction is `ready`. `rejected` when every rail direction is `rejected`; register the account again with corrected `registrationInfo` to retry. `disabled` when we turned the account off; it cannot be registered or quoted. Otherwise `pending`. Readiness per rail and direction is in `rails`.",
        "enum": [
          "pending",
          "ready",
          "disabled",
          "rejected"
        ]
      },
      "PaymentAccountUpdatedWebhook": {
        "type": "object",
        "required": [
          "event",
          "eventId",
          "occurredAt",
          "organizationId",
          "paymentAccount"
        ],
        "properties": {
          "event": {
            "type": "string",
            "enum": [
              "paymentAccountUpdated"
            ]
          },
          "eventId": {
            "type": "string",
            "format": "uuid",
            "description": "Unique per event. Use it to drop duplicate deliveries."
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid",
            "description": "We set this to the id of the organization that holds the account."
          },
          "paymentAccount": {
            "$ref": "#/components/schemas/PaymentAccount"
          }
        }
      },
      "PaymentRail": {
        "type": "string",
        "description": "The network that moves the money. For a wallet, the rail is its chain.",
        "enum": [
          "spei",
          "pix",
          "solana",
          "base",
          "polygon",
          "monad",
          "stellar",
          "avalanche"
        ]
      },
      "PayoutCurrency": {
        "type": "string",
        "description": "We pay your partner earnings in this currency each month.",
        "enum": [
          "USDC",
          "USDT",
          "USD",
          "MXN"
        ]
      },
      "PixFundingDestination": {
        "type": "object",
        "title": "pix",
        "required": [
          "brCode"
        ],
        "properties": {
          "brCode": {
            "type": "string",
            "description": "The PIX BR Code to pay."
          }
        }
      },
      "PreparedClaimTransaction": {
        "type": "object",
        "description": "The newest claim we prepared for a self-held wallet, after a call to\n`POST /organization/{organizationId}/order/{id}/claim`. Absent before the first call and\nafter it expires.",
        "required": [
          "transaction",
          "expiresAt"
        ],
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "After this time the transaction can no longer land. It also goes stale when the\nwallet's sequence number moves."
          },
          "transaction": {
            "type": "string",
            "description": "The unsigned base64 transaction envelope XDR, for the customer to sign and submit. It\nadds the trustline when the wallet has none and claims the balance. The customer's\nwallet is the source and pays the network fee."
          }
        }
      },
      "PreparedTransaction": {
        "type": "object",
        "description": "A transaction we built for the customer to sign and submit. Absent when there is none.",
        "required": [
          "transaction",
          "refreshAfter"
        ],
        "properties": {
          "refreshAfter": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "After this time the transaction can no longer land. On Solana it is about 60 seconds\nafter we build it, when the blockhash expires. On Stellar it is the order's funding\ndeadline. Null on EVM chains, where the transaction has no time limit. A Stellar or EVM\ntransaction also goes stale when the wallet's sequence number or nonce moves."
          },
          "transaction": {
            "type": "string",
            "description": "The unsigned transaction, for the customer to sign and submit. Solana: base64 of a v0\ntransaction in wire format. Stellar: base64 transaction envelope XDR. EVM chains:\n`0x`-prefixed hex of an EIP-1559 transaction. The customer's wallet pays the network\nfee."
          }
        }
      },
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. Every v2 error uses this body with content type\n`application/problem+json`. `errors` is present on `validation-error`, and on\n`invalid-request` when an account number has the wrong format. `required`\nand `missing` are present only on `registration-info-required`.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance"
        ],
        "properties": {
          "detail": {
            "type": "string",
            "description": "Human-readable explanation of this occurrence. Do not parse it.",
            "example": "quote 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b has expired or does not exist"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldViolation"
            },
            "description": "Present on `validation-error`, and on `invalid-request` for an invalid CLABE or PIX key. One entry per invalid field."
          },
          "instance": {
            "type": "string",
            "description": "Unique identifier for this occurrence. Quote it to support.",
            "example": "tag:etherfuse.com,2026-08-28:R2-10120/0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d"
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Present on `registration-info-required`. The required fields you must still send, as JSON Pointers into the request."
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Present on `registration-info-required`. Every registration field the route requires, as JSON Pointers into the request, for example `#/registrationInfo/taxId`."
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "The HTTP status code.",
            "example": 400,
            "minimum": 0
          },
          "title": {
            "type": "string",
            "description": "Short summary of the problem type.",
            "example": "Quote expired"
          },
          "traceId": {
            "type": "string",
            "description": "Trace ID of the request, 32 hex characters, the same value as the `X-Trace-Id`\nresponse header. Quote it to support. Absent when tracing is unavailable.",
            "example": "4bf92f3577b34da6a3ce929d0e0e4736"
          },
          "type": {
            "type": "string",
            "format": "uri",
            "description": "`https://docs.etherfuse.com/ramp/v2/errors/` followed by the problem slug, for example\n`https://docs.etherfuse.com/ramp/v2/errors/quote-expired`. Switch on this value.",
            "example": "https://docs.etherfuse.com/ramp/v2/errors/quote-expired"
          }
        }
      },
      "Quote": {
        "type": "object",
        "required": [
          "quoteId",
          "sourceAmount",
          "destinationAmount",
          "sourceAsset",
          "destinationAsset",
          "sourceRail",
          "destinationRail",
          "rateAfterFees",
          "rateBeforeFees",
          "feeBps",
          "feeAmount",
          "fees",
          "createdAt",
          "expiresAt"
        ],
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "destinationAmount": {
            "type": "string",
            "description": "Decimal string. What the destination receives after fees. On an onramp into a\nstablebond, we price the bond at the end of the order's funding window, so this is\nslightly less than today's price gives. See [Fees](/v2/fees)."
          },
          "destinationAsset": {
            "type": "string"
          },
          "destinationRail": {
            "$ref": "#/components/schemas/PaymentRail"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Create the order before this time. 2 minutes after `createdAt`."
          },
          "feeAmount": {
            "type": "string",
            "description": "Total fee as a decimal string, in the source asset, rounded down to that asset's\ndecimals. Each line in `fees` is in its own `asset`, so the lines do not add up to this\ntotal when their assets differ."
          },
          "feeBps": {
            "type": "integer",
            "format": "int32",
            "description": "Total fee in basis points.",
            "minimum": 0
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fee"
            },
            "description": "The fee lines. The order created from this quote returns the same lines."
          },
          "midMarketRate": {
            "type": "string",
            "description": "The mid-market FX rate, as a decimal string. Present only on quotes that convert\nbetween currencies."
          },
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "description": "Pass to `POST /organization/{organizationId}/order`. Becomes the order's `id`."
          },
          "rateAfterFees": {
            "type": "string",
            "description": "The rate the customer gets after fees, as a decimal string."
          },
          "rateBeforeFees": {
            "type": "string",
            "description": "The rate before our fee, as a decimal string."
          },
          "sourceAmount": {
            "type": "string",
            "description": "Decimal string."
          },
          "sourceAsset": {
            "type": "string"
          },
          "sourceRail": {
            "$ref": "#/components/schemas/PaymentRail"
          }
        }
      },
      "RailTransferDetails": {
        "type": "object",
        "description": "We set this for one direction of a rail. It shows whether the account can move money that\nway, and the limits that apply.",
        "required": [
          "isDefault",
          "status"
        ],
        "properties": {
          "isDefault": {
            "type": "boolean",
            "description": "True when a quote that does not name a rail for this side uses this rail."
          },
          "limitCurrency": {
            "type": "string",
            "description": "Currency of `minAmount` and `maxAmount`: the market's currency on a bank rail, and\n`USD` on a wallet rail. Absent when we show no limit in a currency other than USD.",
            "example": "MXN"
          },
          "maxAmount": {
            "type": "string",
            "description": "Largest amount your organization can move on this rail in one order, as a decimal\nstring in `limitCurrency`. It is the lowest of the provider's limit, the market's limit\nand, on the source side, your organization's per-order limit. We round it down to two\ndecimals. Absent when no maximum applies, or when we can't convert it right now;\n`maxAmountUsd` still shows it. Your 30-day limit can also stop an order: see\n`GET /organization/{organizationId}/amount_limits`.",
            "example": "173333"
          },
          "maxAmountUsd": {
            "type": "string",
            "description": "`maxAmount` in USD, as a decimal string. We check orders against the USD limits.\nAbsent when no maximum applies.",
            "example": "10000"
          },
          "minAmount": {
            "type": "string",
            "description": "Smallest amount your organization can move on this rail in one order, as a decimal\nstring in `limitCurrency`. We set every limit in USD and convert it at the current\nrate, so a bank rail's limits move with the exchange rate. We round it up to two\ndecimals. Absent when no minimum applies, or when we can't convert it right now;\n`minAmountUsd` still shows it.",
            "example": "17.51"
          },
          "minAmountUsd": {
            "type": "string",
            "description": "`minAmount` in USD, as a decimal string. We check orders against the USD limits.\nAbsent when no minimum applies.",
            "example": "1.01"
          },
          "rejection": {
            "$ref": "#/components/schemas/RegistrationRejection",
            "description": "Why this direction was rejected. Present only when `status` is `rejected`."
          },
          "status": {
            "$ref": "#/components/schemas/RouteRegistrationStatus"
          }
        }
      },
      "RegistrationInfoRequirements": {
        "allOf": [
          {
            "$ref": "#/components/schemas/RegistrationRequirements"
          },
          {
            "type": "object",
            "required": [
              "formats"
            ],
            "properties": {
              "formats": {
                "type": "object",
                "description": "We key each required field's value format by the field's JSON Pointer.",
                "additionalProperties": {
                  "$ref": "#/components/schemas/RegistrationValueFormat"
                },
                "propertyNames": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "RegistrationRejection": {
        "type": "object",
        "description": "We set this when we reject a rail direction. It gives the reason.",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/RegistrationRejectionCode"
          },
          "message": {
            "type": "string",
            "description": "Our explanation of `code`, written so you can show it to your customer. The wording may\nchange; branch on `code`.",
            "example": "This tax ID already has an active account for a different bank account. Use that bank account instead."
          }
        }
      },
      "RegistrationRejectionCode": {
        "type": "string",
        "description": "Why a rail direction was rejected. New values may be added.\n\n- `registeredInV1`: the bank account is registered with our v1 API. It becomes usable in v2 once we finish migrating existing accounts.\n- `taxIdHasActiveAccount`: the tax ID already has an active account for a different bank account. Use that bank account.\n- `registrationDetailsChanged`: the account is already registered with different details. Register it again with the details it was first registered with.\n- `invalidRegistrationInfo`: the registration info doesn't meet the payment provider's rules. Correct `registrationInfo`, then register the account again.\n- `invalidAccountNumber`: the payment provider says the account number isn't valid. Check it, then register the account again.\n- `unknownBank`: we don't recognize the bank the account number belongs to. Check the account number, then register the account again.\n- `inactiveBank`: the account's bank can't take transfers right now. Register the account again later, or use an account at another bank.\n- `accountBlocked`: the payment provider has blocked the account. Registering it again won't help; use a different account, or contact support.\n- `holderNameMismatch`: the account holder name doesn't match the bank's records. Correct `registrationInfo.accountHolderName`, then register the account again.\n- `railUnavailable`: we can't register accounts on this rail right now. This is on our side; contact support.\n- `providerRejected`: the payment provider rejected the account, for a reason not listed above. Check `accountDetails` and `registrationInfo`, then register it again.\n- `registrationFailed`: we couldn't complete the registration. Register the account again.\n- `registrationCanceled`: the registration was canceled. Register the account again.",
        "enum": [
          "registeredInV1",
          "taxIdHasActiveAccount",
          "registrationDetailsChanged",
          "invalidRegistrationInfo",
          "invalidAccountNumber",
          "unknownBank",
          "inactiveBank",
          "accountBlocked",
          "holderNameMismatch",
          "railUnavailable",
          "registrationFailed",
          "registrationCanceled",
          "providerRejected"
        ]
      },
      "RegistrationRequirements": {
        "type": "object",
        "required": [
          "required",
          "missing"
        ],
        "properties": {
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The required fields we hold no verified value for, as JSON Pointers. Ask the customer\nfor these. This list is for registering a new account. Registering an account the\norganization already holds may need fewer fields."
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every registration field the route requires, as JSON Pointers such as\n`#/registrationInfo/taxId`. The same lists as the `registration-info-required` error."
          }
        }
      },
      "RegistrationValueFormat": {
        "type": "string",
        "description": "The format of a `registrationInfo` value. `text` is free text, `date` is a day as `YYYY-MM-DD`, and `country` is a two-letter ISO 3166-1 country code.",
        "enum": [
          "text",
          "date",
          "country"
        ]
      },
      "Requirement": {
        "type": "string",
        "description": "Which requirement this is. Only the ones that apply to this customer are listed; their country decides which those are.\n\n1. `personalData`: name, date of birth, tax ID, country and address; Mexico also requires CURP\n2. `identityDocument`: a government-issued ID\n3. `proofOfAddress`: an address document; appears only when the identity document carried no address\n4. `occupation`: job title and occupation category\n5. `emailConfirmation`: the customer confirming their email address\n6. `selfie`: a live face capture; cannot be uploaded\n7. `customerAgreement`: the customer accepting the required agreements\n\nWe may add requirements, and will update these docs when we do. A country may also introduce one of its own; see [Country-specific requirements](/v2/guides/onboarding#country-specific-requirements).",
        "enum": [
          "emailConfirmation",
          "personalData",
          "identityDocument",
          "proofOfAddress",
          "selfie",
          "occupation",
          "customerAgreement"
        ]
      },
      "RequirementState": {
        "type": "object",
        "description": "One thing a customer's verification still needs, and where it stands.",
        "required": [
          "type",
          "status",
          "requiresLaunch"
        ],
        "properties": {
          "requiresLaunch": {
            "type": "boolean",
            "description": "True when only the customer can satisfy this in the hosted step, such as the liveness\ncapture. A property of the requirement rather than of its progress, so it does not\nchange as the customer advances. `selfie` reads true whether or not the selfie has been\ntaken. A requirement with status `satisfied` needs no further action even when this\nflag is true.\n\nFalse does not mean the requirement is yours to submit. It means the API *can* submit\nit. The customer can always enter it in the hosted step instead, which is why launching\nthem satisfies everything. So this flag says what the API cannot reach, not when to\nlaunch: an outstanding requirement reading true is one no API call will ever clear."
          },
          "status": {
            "$ref": "#/components/schemas/RequirementStatus"
          },
          "type": {
            "$ref": "#/components/schemas/Requirement"
          }
        },
        "example": {
          "requiresLaunch": false,
          "status": "pending",
          "type": "identityDocument"
        }
      },
      "RequirementStatus": {
        "type": "string",
        "description": "How far along this requirement is.\n\n- `satisfied`: accepted, nothing more to do\n- `pending`: nothing has been provided for this yet, so it is still owed\n- `awaitingReview`: provided, not yet reviewed\n- `actionRequired`: **reviewed and rejected**, so it must be provided again, corrected\n\nTell `pending` and `awaitingReview` apart: a shared verification whose identity document and selfie transferred reads `awaitingReview` for both, so do not read `pending` into it and send them again. More values may be added, so act on the two that carry an instruction (`satisfied` means done, `actionRequired` means send again) and treat anything else as in progress.",
        "enum": [
          "satisfied",
          "pending",
          "awaitingReview",
          "actionRequired"
        ]
      },
      "RestrictedCountriesResponse": {
        "type": "object",
        "required": [
          "countries"
        ],
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RestrictedCountry"
            }
          }
        },
        "example": {
          "countries": [
            {
              "code": "AF",
              "kyb": true,
              "kyc": true,
              "name": "Afghanistan"
            }
          ]
        }
      },
      "RestrictedCountry": {
        "type": "object",
        "description": "A country where we restrict KYC, KYB or both.",
        "required": [
          "code",
          "name",
          "kyc",
          "kyb"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The ISO 3166-1 alpha-2 country code, such as `AF`."
          },
          "kyb": {
            "type": "boolean",
            "description": "True when we restrict KYB in this country."
          },
          "kyc": {
            "type": "boolean",
            "description": "True when we restrict KYC in this country."
          },
          "name": {
            "type": "string",
            "description": "The country's English name, such as `Afghanistan`."
          }
        }
      },
      "ReturnedDeposit": {
        "type": "object",
        "required": [
          "depositTransactionId",
          "returnTransactionId",
          "amount",
          "asset",
          "returnedAt"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "The amount we sent back, in whole units of `asset`."
          },
          "asset": {
            "type": "string",
            "description": "The asset we sent back. It is the order's source asset."
          },
          "depositTransactionId": {
            "type": "string",
            "description": "The deposit we returned: its chain transaction, or the bank transfer's id. When the\nbank returned a SPEI transfer itself, this is\n`{claveRastreo}:{fechaOperacion}:{institucionOrdenante}`: the tracking key, the\noperation date and the paying bank, because banks reuse tracking keys on later days."
          },
          "returnTransactionId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The transaction that sent the deposit back. Null when the bank returned the original\ntransfer, so there is no transaction of its own."
          },
          "returnedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When we recorded the return. For a wallet deposit, this is when the return was final\non chain. For a SPEI transfer, this is when we told the bank to return it."
          }
        },
        "example": {
          "amount": "24.99",
          "asset": "CETES:GC3CW7EDYRTWQ635VDIGY6S4ZUF5L6TQ7AA4MWS7LEQDBLUSZXV7UPS4",
          "depositTransactionId": "3b8f2c1d9e4a7b6c5d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e",
          "returnTransactionId": "9a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9",
          "returnedAt": "2026-09-28T17:20:41Z"
        }
      },
      "RouteRegistrationStatus": {
        "type": "string",
        "description": "The account's status on one rail in one direction. Only `ready` can be quoted.",
        "enum": [
          "pending",
          "ready",
          "rejected",
          "disabled"
        ]
      },
      "SignatureAlgorithm": {
        "type": "string",
        "description": "ECDSA over P-256 with SHA-256 (the JOSE `ES256` algorithm), using the key registered as `signerPublicKey`. We accept the signature as DER or as the 64-byte `r||s` form, hex-encoded.",
        "enum": [
          "es256"
        ]
      },
      "SimulateFiatReceivedRequest": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "The simulated deposit amount, as a positive decimal string.",
            "example": "1000"
          }
        },
        "example": {
          "amount": "1000"
        }
      },
      "SpeiFundingDestination": {
        "type": "object",
        "title": "spei",
        "required": [
          "clabe",
          "bankName",
          "recipientName"
        ],
        "properties": {
          "bankName": {
            "type": "string"
          },
          "clabe": {
            "type": "string",
            "example": "646180000000000009"
          },
          "recipientName": {
            "type": "string"
          }
        }
      },
      "StablebondInfoCachable": {
        "type": "object",
        "description": "One stablebond's price, net amounts and supply on each chain.",
        "required": [
          "name",
          "symbol",
          "image",
          "description",
          "netAmountDecimal",
          "netValueDecimal",
          "bondCurrency",
          "tokenPriceDecimal",
          "purchaseOrderAmount",
          "redeemOrderAmount",
          "blockchains",
          "solanaMintAddress",
          "endOfLifeAt",
          "sortOrder"
        ],
        "properties": {
          "blockchains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlockchainSupplyCachable"
            },
            "description": "The bond's supply on each chain."
          },
          "bondCurrency": {
            "type": "string",
            "description": "The currency the bond settles in, as an ISO 4217 code."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The bond's description. Null when we haven't saved the bond's metadata."
          },
          "endOfLifeAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When we marked the bond end of life, RFC 3339. Null while the bond is live."
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "The bond's image URL. Null when we haven't saved the bond's metadata."
          },
          "name": {
            "type": "string",
            "description": "The bond's name, such as `Etherfuse CETES`."
          },
          "netAmountDecimal": {
            "type": "string",
            "description": "The net number of tokens outstanding."
          },
          "netValueDecimal": {
            "type": "string",
            "description": "The net value outstanding, in the bond's currency."
          },
          "purchaseOrderAmount": {
            "type": "string",
            "description": "The amount in open purchase orders."
          },
          "redeemOrderAmount": {
            "type": "string",
            "description": "The amount in open redeem orders."
          },
          "solanaMintAddress": {
            "type": "string",
            "description": "The bond's Solana mint address."
          },
          "sortOrder": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The bond's position in our list, from 0. Null when we haven't placed it, so it sorts after placed bonds by symbol."
          },
          "symbol": {
            "type": "string",
            "description": "The bond's symbol, such as `CETES`."
          },
          "tokenPriceDecimal": {
            "type": "string",
            "description": "The price of one whole token in the bond's currency, rounded to the mint's decimals."
          }
        }
      },
      "StablebondsCachable": {
        "type": "object",
        "description": "Every stablebond in our latest snapshot.",
        "required": [
          "calculatedAt",
          "stablebonds"
        ],
        "properties": {
          "calculatedAt": {
            "type": "string",
            "description": "When we computed the snapshot, RFC 3339."
          },
          "stablebonds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StablebondInfoCachable"
            },
            "description": "Every stablebond in the snapshot, live bonds first, then by `sortOrder`, then by symbol."
          }
        }
      },
      "SubmitAuthorizationRequest": {
        "type": "object",
        "required": [
          "id",
          "signature"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The `authorization.id` you signed."
          },
          "signature": {
            "type": "string",
            "description": "The hex-encoded signature over `method.message`: DER, or the 128-character `r||s` form\nWebCrypto produces."
          }
        },
        "example": {
          "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
          "signature": "3045022100..."
        }
      },
      "SubmitQuestionnaireRequest": {
        "oneOf": [
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/OccupationAnswers"
              },
              {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "occupation"
                    ]
                  }
                }
              }
            ],
            "title": "occupation"
          },
          {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgreementAnswers"
              },
              {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "agreement"
                    ]
                  }
                }
              }
            ],
            "title": "agreement"
          }
        ],
        "description": "The customer's answers to one questionnaire, named by `type`. New values may be added. If `type` names a questionnaire that does not exist, the request is rejected and the error tells you which names are valid."
      },
      "SubmitVerificationAdditionalInfo": {
        "type": "object",
        "properties": {
          "curp": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's CURP. A Mexican customer (`country: \"MEX\"`) needs one to complete\nverification. Send it here, or the customer enters it in the\n[`/idv` launch](/v2/guides/kyc-websdk).",
            "example": "XEXX010101HNEXXXA4",
            "maxLength": 18,
            "minLength": 18,
            "pattern": "^[A-Za-z0-9]{18}$"
          }
        }
      },
      "SubmitVerificationRequest": {
        "type": "object",
        "description": "Personal data a partner submits on the customer's behalf. A Mexican customer (`country: \"MEX\"`) needs a CURP and RFC to complete verification.",
        "required": [
          "firstName",
          "lastName",
          "dateOfBirth",
          "taxId",
          "country",
          "address"
        ],
        "properties": {
          "additionalInfo": {
            "$ref": "#/components/schemas/SubmitVerificationAdditionalInfo",
            "description": "Information beyond the standard personal data, which some verifications ask for."
          },
          "address": {
            "$ref": "#/components/schemas/VerificationAddress"
          },
          "country": {
            "type": "string",
            "description": "The customer's country, as an ISO 3166-1 alpha-3 code. Alpha-2 codes and country names\nare rejected. This is the one country field for the customer (there is no separate\nnationality), and its value routes them to their country's requirements.",
            "example": "MEX"
          },
          "dateOfBirth": {
            "type": "string",
            "description": "`YYYY-MM-DD`. Any other format is a 400.",
            "example": "1990-01-01"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "taxId": {
            "type": "string",
            "description": "The customer's tax identification number. The RFC for a Mexican customer.",
            "example": "XAXX010101000"
          }
        },
        "example": {
          "additionalInfo": {
            "curp": "XEXX010101HNEXXXA4"
          },
          "address": {
            "city": "Ciudad de Mexico",
            "country": "MEX",
            "postalCode": "06600",
            "region": "CDMX",
            "street": "Av. Reforma 100"
          },
          "country": "MEX",
          "dateOfBirth": "1990-01-01",
          "firstName": "Ana",
          "lastName": "Ejemplo",
          "taxId": "XAXX010101000"
        }
      },
      "SupportedAssets": {
        "type": "object",
        "required": [
          "markets",
          "tokens"
        ],
        "properties": {
          "markets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketAsset"
            }
          },
          "tokens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TokenAsset"
            }
          }
        },
        "example": {
          "markets": [
            {
              "asset": "MXN",
              "country": "MX",
              "currency": "MXN",
              "rails": [
                "spei"
              ]
            }
          ],
          "tokens": [
            {
              "asset": "CETES:GC3CW7EDYRTWQ635VDIGY6S4ZUF5L6TQ7AA4MWS7LEQDBLUSZXV7UPS4",
              "bridgeDestinations": [
                "solana"
              ],
              "chain": "stellar",
              "currency": "MXN",
              "image": "https://assets.etherfuse.com/cetes.png",
              "name": "Etherfuse CETES",
              "symbol": "CETES"
            },
            {
              "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
              "bridgeDestinations": [
                "base"
              ],
              "chain": "solana",
              "currency": "USD",
              "image": null,
              "name": "USD Coin",
              "symbol": "USDC"
            }
          ]
        }
      },
      "TokenAsset": {
        "type": "object",
        "description": "A stablebond or stablecoin on one chain.",
        "required": [
          "asset",
          "chain",
          "currency",
          "symbol",
          "name",
          "image",
          "bridgeDestinations"
        ],
        "properties": {
          "asset": {
            "type": "string",
            "description": "The value to send as `sourceAsset` or `destinationAsset`: the mint on Solana, the\ncontract on EVM chains, `CODE:ISSUER` on Stellar."
          },
          "bridgeDestinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Chain"
            },
            "description": "The chains you can send this token to with a cross-chain transfer. The destination\nwallet receives the same token on that chain. Empty when the token can't leave this\nchain."
          },
          "chain": {
            "$ref": "#/components/schemas/Chain"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "The fiat currency the token is backed by, as an ISO 4217 code."
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        }
      },
      "TokenCost": {
        "type": "object",
        "description": "Current pricing for one Etherfuse token: its cost in its currency and in USD, and the exchange rate from each FX provider in `sources`.",
        "required": [
          "token_symbol",
          "token_mint",
          "image",
          "description",
          "end_of_life_at",
          "token_kind",
          "currency",
          "token_cost_in_fiat",
          "token_cost_in_usd",
          "fiat_exchange_rate_with_usd",
          "current_basis_points",
          "current_time",
          "sources"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "The currency the token is priced in, as an ISO 4217 code such as `MXN`."
          },
          "current_basis_points": {
            "type": "integer",
            "format": "int32",
            "description": "The bond's annual rate in basis points, so `554` is 5.54%. Always `0` on a principal\ntoken, because the coupon goes to the underlying bond."
          },
          "current_time": {
            "type": "string",
            "description": "When we priced the token, RFC 3339."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The token's description. Null when we haven't saved the token's metadata."
          },
          "end_of_life_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When we marked the token end of life, RFC 3339. Null while the token is live."
          },
          "fiat_exchange_rate_with_usd": {
            "type": "string",
            "description": "The exchange rate between `currency` and USD."
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "The token's image URL. A principal token without saved metadata uses the image from its\non-chain metadata. Null when we have neither."
          },
          "payment_mint": {
            "type": "string",
            "description": "Bonds only: the mint address of the token a purchase settles in. Absent on principal\ntokens."
          },
          "sources": {
            "type": "object",
            "description": "Each FX provider's exchange rate and the USD cost it gives, keyed by our FX provider id.",
            "additionalProperties": {
              "$ref": "#/components/schemas/TokenCostSource"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "token_cost_in_fiat": {
            "type": "string",
            "description": "The token's cost in `currency`. A principal token holds par with its currency, so 1 MEXe\nis 1.000000 MXN."
          },
          "token_cost_in_usd": {
            "type": "string",
            "description": "The token's cost in USD."
          },
          "token_kind": {
            "$ref": "#/components/schemas/TokenKind"
          },
          "token_mint": {
            "type": "string",
            "description": "The token's own Solana mint address."
          },
          "token_symbol": {
            "type": "string",
            "description": "The display symbol, such as `CETES` or `MEXe`. The list endpoint keys each token by this\nvalue in uppercase."
          },
          "underlying_bond_symbol": {
            "type": "string",
            "description": "Principal tokens only: the symbol of the bond this token wraps. Absent on bonds."
          }
        }
      },
      "TokenCostSource": {
        "type": "object",
        "description": "One FX provider's exchange rate and the token cost it gives. Compare them across providers to check the price.",
        "required": [
          "exchange_rate",
          "token_cost_in_usd",
          "updated_at"
        ],
        "properties": {
          "exchange_rate": {
            "type": "string",
            "description": "This provider's USD to currency exchange rate, as the provider reports it. We never\nadjust it by a principal token's wrap rate."
          },
          "token_cost_in_usd": {
            "type": "string",
            "description": "The token's cost in USD at this provider's rate."
          },
          "updated_at": {
            "type": "integer",
            "format": "int64",
            "description": "When the provider last updated the rate, in Unix seconds.",
            "minimum": 0
          }
        }
      },
      "TokenKind": {
        "type": "string",
        "description": "`bond` for a stablebond, `principal_token` for a token that wraps one, such as MEXe, which wraps CETES.",
        "enum": [
          "bond",
          "principal_token"
        ]
      },
      "UpdateMeRequest": {
        "type": "object",
        "required": [
          "partnerFeeDefaultBps"
        ],
        "properties": {
          "partnerFeeDefaultBps": {
            "type": "integer",
            "format": "int32",
            "description": "The new default partner fee in basis points, from 0 to 500 (5.00%).",
            "maximum": 500,
            "minimum": 0
          }
        },
        "example": {
          "partnerFeeDefaultBps": 100
        }
      },
      "UpdateOrganizationRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "The new name. Blank names and names over 200 characters return `400`.",
            "maxLength": 200
          },
          "partnerFeeDefaultBps": {
            "type": "integer",
            "format": "int32",
            "description": "Your default partner fee in basis points, from 0 to 500 (5.00%). We add it to quotes\nfor your customer organizations when the quote request has no `partnerFeeBpsOverride`.\nOnly your own approved business takes it; any other organization returns `403`.",
            "maximum": 500,
            "minimum": 0
          },
          "preferredPayoutCurrency": {
            "$ref": "#/components/schemas/PayoutCurrency",
            "description": "We pay your partner earnings in this currency. Only your own approved business takes\nit; any other organization returns `403`."
          }
        },
        "example": {
          "displayName": "Acme Inc."
        },
        "minProperties": 1
      },
      "UpdatePaymentAccountRequest": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "The new label. A label that contains `<`, `>`, `;`, `{`, `}`, a backtick, `|`, `\\`,\n`$(`, `../` or a control character returns `400`."
          }
        }
      },
      "UpdateWebhookSubscriptionRequest": {
        "type": "object",
        "properties": {
          "eventType": {
            "$ref": "#/components/schemas/WebhookEventType"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 512
          }
        },
        "minProperties": 1
      },
      "UploadVerificationDocumentsRequest": {
        "type": "object",
        "description": "The customer's documents, as `multipart/form-data` parts. Send at least one of `id_front`, `id_back` or `proof_of_address`.",
        "properties": {
          "country": {
            "type": "string",
            "description": "The country that issued these documents, as an ISO 3166-1 alpha-3 code. Send it only\nwhen the customer's profile has no country yet.",
            "example": "MEX"
          },
          "id_back": {
            "type": "string",
            "format": "binary",
            "description": "Back of the identity document, where it has two sides. JPEG, PNG or PDF, up to 10 MB.\nRequired whenever `id_type` is `ID_CARD` or `DRIVERS`, and refused for `PASSPORT`,\nwhich is single-sided. Send both sides in the same request: sending this\nwithout `id_front` returns `400`, so you can't add a back to an earlier upload."
          },
          "id_front": {
            "type": "string",
            "format": "binary",
            "description": "Front of the identity document, or its only side. JPEG, PNG or PDF, up to 10 MB."
          },
          "id_type": {
            "$ref": "#/components/schemas/IdentityDocumentKind"
          },
          "proof_of_address": {
            "type": "string",
            "format": "binary",
            "description": "A document that shows the customer's address. JPEG, PNG or PDF, up to 10 MB. Send it\nonce `proofOfAddress` is listed, or with the identity document before the identity\nstage is submitted. Sent at any other time, we answer `202` and then drop it, and the\nrequirement stays outstanding."
          },
          "proof_of_address_type": {
            "$ref": "#/components/schemas/AddressDocumentKind"
          }
        }
      },
      "UserInfo": {
        "type": "object",
        "description": "Info about the end user, collected at org/customer creation time. The user record is pre-populated with the partner's display name and email so the customer's eventual Firebase sign-in attaches to the correct user, so we can send status-change emails, and so the verification record has an email address.",
        "required": [
          "email",
          "displayName"
        ],
        "properties": {
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "VerificationAddress": {
        "type": "object",
        "description": "The customer's residential address. Required, and it must match the identity document you upload; the provider cross-checks the two.",
        "required": [
          "street",
          "city",
          "country"
        ],
        "properties": {
          "buildingNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": "string",
            "example": "Ciudad de Mexico"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-3.",
            "example": "MEX"
          },
          "flatNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "postalCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional, because some countries issue none. Send it when the country has one.",
            "example": "06600"
          },
          "region": {
            "type": [
              "string",
              "null"
            ],
            "description": "State or province.",
            "example": "CDMX"
          },
          "street": {
            "type": "string",
            "example": "Av. Reforma 100"
          }
        }
      },
      "VerificationStatus": {
        "type": "string",
        "description": "- `notStarted`: verification has not started.\n- `inProgress`: the customer started but has not submitted everything.\n- `submitted`: submitted and waiting for review.\n- `approved`: cleared.\n- `denied`: rejected, or a previous approval was revoked.",
        "enum": [
          "notStarted",
          "inProgress",
          "submitted",
          "approved",
          "denied"
        ]
      },
      "VerificationStatusResponse": {
        "type": "object",
        "description": "Where the customer's verification stands after a write. `status` is the same value `GET /organization/{organizationId}/kyc` reports.",
        "required": [
          "organizationId",
          "status"
        ],
        "properties": {
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/VerificationStatus"
          }
        },
        "example": {
          "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "status": "inProgress"
        }
      },
      "WalletBalance": {
        "type": "object",
        "required": [
          "symbol",
          "tokenKind",
          "identifier",
          "balance",
          "currency",
          "amountInFiat",
          "amountInUsd"
        ],
        "properties": {
          "amountInFiat": {
            "type": "string",
            "format": "decimal",
            "description": "Value of the held amount in `currency`, to six decimal places. Stablebond values use\nthe bond price we read from the chain."
          },
          "amountInUsd": {
            "type": "string",
            "format": "decimal",
            "description": "Value of the held amount in USD, to six decimal places, using the same asset price as\namountInFiat and the current FX rate."
          },
          "balance": {
            "type": "string",
            "format": "decimal",
            "description": "Held amount, at the asset's own decimal precision. A decimal string, so no\nprecision is lost."
          },
          "currency": {
            "type": "string",
            "description": "The fiat currency this asset is denominated in (e.g. \"mxn\" for CETES, \"brl\" for\nTESOURO)"
          },
          "identifier": {
            "type": "string",
            "description": "Chain-specific asset identifier: the mint on Solana, the contract on EVM chains,\n\"CODE:ISSUER\" on Stellar"
          },
          "symbol": {
            "type": "string",
            "description": "Asset symbol (e.g. \"cetes\")"
          },
          "tokenKind": {
            "$ref": "#/components/schemas/WalletTokenKind"
          }
        }
      },
      "WalletBalancesStatus": {
        "type": "string",
        "enum": [
          "current",
          "updating",
          "failed",
          "stale"
        ]
      },
      "WalletTokenKind": {
        "type": "string",
        "enum": [
          "bond",
          "principal_token",
          "stablecoin"
        ]
      },
      "WebhookEventType": {
        "type": "string",
        "enum": [
          "orderUpdated",
          "paymentAccountUpdated",
          "kycUpdated",
          "kybUpdated"
        ]
      },
      "WebhookSubscription": {
        "type": "object",
        "required": [
          "id",
          "eventType",
          "url",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "eventType": {
            "$ref": "#/components/schemas/WebhookEventType"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "WebhookSubscriptionList": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSubscription"
            }
          }
        }
      },
      "WithinMarketFee": {
        "type": "object",
        "required": [
          "sourceKind",
          "destinationKind",
          "feeBps"
        ],
        "properties": {
          "destinationKind": {
            "$ref": "#/components/schemas/FeeAssetKind"
          },
          "feeBps": {
            "type": "integer",
            "format": "int32",
            "description": "Fee in basis points."
          },
          "sourceKind": {
            "$ref": "#/components/schemas/FeeAssetKind"
          }
        }
      }
    },
    "responses": {
      "Conflict": {
        "description": "`conflict`: the request conflicts with the resource's current state. `detail` says how.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "`forbidden`: your API key's organization may not do this.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InternalError": {
        "description": "`internal-error`: an unexpected error on our side. Retry with backoff, and quote `instance` to support if it persists.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InvalidRequest": {
        "description": "`invalid-request`: a path, query or body value is malformed, or `pageSize` is 0 or over 100.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "`not-found`: your API key cannot act for this organization, or no such resource belongs to it.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "OrganizationNotFound": {
        "description": "`not-found`: your API key cannot act for this organization.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "PayloadTooLarge": {
        "description": "`payload-too-large`: the request body is too large.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RateLimitExceeded": {
        "description": "`rate-limit-exceeded`: too many requests. Wait the number of seconds in `Retry-After` and try again.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            },
            "description": "Seconds to wait before retrying."
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "ServiceUnavailable": {
        "description": "`service-unavailable`: a provider or chain we depend on did not answer in time. Retry with backoff.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "`unauthorized`: the `Authorization` header is missing, not ASCII, or does not hold a valid API key.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "API key sent in the Authorization header, with no `Bearer` prefix."
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Payment Accounts",
      "description": "Register the bank accounts and wallets that money moves from and to, and read their readiness per rail."
    },
    {
      "name": "Quotes",
      "description": "Price a transfer between two registered payment accounts."
    },
    {
      "name": "Orders",
      "description": "Create orders from quotes and track them."
    },
    {
      "name": "Webhook Subscriptions",
      "description": "Subscribe to webhook events."
    },
    {
      "name": "Webhook Events",
      "description": "Payloads Etherfuse sends to your webhook subscriptions."
    },
    {
      "name": "Sandbox",
      "description": "Endpoints that work only in sandbox, for testing."
    },
    {
      "name": "Assets",
      "description": "The markets and tokens a quote can use, and the balances of a wallet."
    },
    {
      "name": "Authentication",
      "description": "Partner JWT authentication: exchange a JWT for an access token, or launch a user into the app."
    },
    {
      "name": "KYC",
      "description": "Submit a customer's verification data, documents and questionnaire answers, import a verification they already passed elsewhere, and check where their KYC stands."
    },
    {
      "name": "KYB",
      "description": "Check where a business organization's KYB stands."
    },
    {
      "name": "Lookup",
      "description": "Public reference data: exchange rates, stablebonds, bond costs, country codes."
    },
    {
      "name": "Organizations",
      "description": "Your organization, your default partner fee, and the customer organizations you create."
    },
    {
      "name": "Members",
      "description": "The people who belong to a customer business organization and complete its KYB."
    },
    {
      "name": "Statements",
      "description": "Monthly revenue share statements for closed months, as a list or as a CSV or PDF download."
    }
  ]
}
