---
updatedAt: 2026-05-15T20:58:36.000Z
agentTools:
  siteIndex: https://docs.bitso.com/llms.txt
  projectIndex: https://docs.bitso.com/juno/llms.txt
---

# List financial movements

Returns a paginated page of financial movements for the authenticated user, unifying funding, withdrawal, and conversion entries from multiple backend sources into a single, consistent view.

# OpenAPI definition

````json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Juno API",
    "version": "v1.0"
  },
  "servers": [
    {
      "url": "https://stage.buildwithjuno.com",
      "description": "Juno stage environment"
    },
    {
      "url": "https://buildwithjuno.com",
      "description": "Juno production environment"
    }
  ],
  "security": [
    {
      "BitsoAuth": []
    }
  ],
  "tags": [
    {
      "name": "Financial Movements",
      "description": "Unified, paginated view of user-facing money operations across funding, withdrawal, and conversion rails."
    }
  ],
  "paths": {
    "/mint_platform/v1/financial_movements": {
      "get": {
        "description": "Returns a paginated page of financial movements for the authenticated user, sorted by creation date descending. Movements aggregate entries from multiple backend sources (deposits, withdrawals, conversions) into a single, unified representation.\n\nPagination is token-based. To fetch the next page, pass the `next_page_token` from the previous response back as the `page_token` query parameter. A null or absent `next_page_token` signals the end of the collection. Page tokens are opaque and must not be parsed by clients.\n\nOn error, the response body is `{\"errors\": [{\"code\": \"...\", \"message\": \"...\"}]}` with an appropriate HTTP status code.",
        "operationId": "listFinancialMovements",
        "parameters": [
          {
            "description": "Opaque token returned in `next_page_token` of a previous response. Omit this parameter to fetch the first page.",
            "example": "9WmxhY3Rfc2V......",
            "in": "query",
            "name": "page_token",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of financial movements to return. Defaults to 20. Values above 20 are clamped to 20.",
            "example": 20,
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "FirstPage": {
                    "description": "FirstPage",
                    "summary": "First page with mixed movement types",
                    "value": {
                      "financial_movements": [
                        {
                          "id": "89325a16-.....",
                          "type": "WITHDRAWAL",
                          "created_at": "2026-04-10T15:30:00.000Z",
                          "updated_at": "2026-04-10T15:35:22.000Z",
                          "status": "COMPLETED",
                          "withdrawal": {
                            "juno_transaction_type": "ISSUANCE",
                            "juno_transaction_id": "c4e5f6a7-.....",
                            "refund": true,
                            "type": "SPEI",
                            "asset": "MXN",
                            "gross_amount": "1000.00",
                            "fee": "5.00",
                            "net_amount": "995.00",
                            "spei": {
                              "destination_clabe": "646180115400000001",
                              "external_id": "spei-rastreo-abc123"
                            }
                          }
                        },
                        {
                          "id": "a1b2c3d4-.....",
                          "type": "FUNDING",
                          "created_at": "2026-04-10T14:00:00.000Z",
                          "updated_at": "2026-04-10T14:05:00.000Z",
                          "status": "COMPLETED",
                          "funding": {
                            "type": "CRYPTO",
                            "asset": "USDC",
                            "amount": "5000.00",
                            "crypto": {
                              "network": "ARBITRUM",
                              "source_address": "0xabc......",
                              "destination_address": "0x742......",
                              "transaction_hash": "0x12b......"
                            }
                          }
                        },
                        {
                          "id": "b2c3d4e5-.....",
                          "type": "WITHDRAWAL",
                          "created_at": "2026-04-10T12:00:00.000Z",
                          "updated_at": "2026-04-10T12:10:00.000Z",
                          "status": "FAILED",
                          "withdrawal": {
                            "type": "CRYPTO",
                            "asset": "USDC",
                            "gross_amount": "1000.00",
                            "fee": "0.00",
                            "net_amount": "1000.00",
                            "crypto": {
                              "network": "ETHEREUM",
                              "source_address": "0xdef......",
                              "destination_address": "0x742......"
                            }
                          },
                          "error": {
                            "code": "transaction_insufficient_funds",
                            "message": "Cannot process transfer due to insufficient funds."
                          }
                        },
                        {
                          "id": "89325a16-.....",
                          "type": "CONVERSION",
                          "created_at": "2026-04-10T15:30:00.000Z",
                          "updated_at": "2026-04-10T15:35:22.000Z",
                          "status": "COMPLETED",
                          "conversion": {
                            "quote_id": "b2c3d4e5-.....",
                            "source_asset": "MXN",
                            "destination_asset": "USD",
                            "source_amount": "1000.00",
                            "destination_amount": "10.00",
                            "exchange_rate": "0.01"
                          }
                        }
                      ],
                      "next_page_token": "9WmxhY3Rfc2V......",
                      "total_count": 4
                    }
                  },
                  "LastPage": {
                    "description": "LastPage",
                    "summary": "Last page (no next_page_token)",
                    "value": {
                      "financial_movements": [
                        {
                          "id": "c3d4e5f6-.....",
                          "type": "FUNDING",
                          "created_at": "2026-01-15T08:00:00.000Z",
                          "updated_at": "2026-01-15T08:10:00.000Z",
                          "status": "COMPLETED",
                          "funding": {
                            "type": "SPEI",
                            "asset": "MXN",
                            "amount": "100.00",
                            "spei": {
                              "source_clabe": "646180115400000123",
                              "destination_clabe": "646180115400000001",
                              "external_id": "spei-rastreo-xyz999"
                            }
                          }
                        }
                      ],
                      "total_count": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/FinancialMovementsListResponse"
                }
              }
            },
            "description": "Page of financial movements retrieved successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "InvalidParameter": {
                    "description": "InvalidParameter",
                    "value": {
                      "errors": [
                        {
                          "code": "invalid_field",
                          "message": "page_size: numeric value out of bounds."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BadRequestErrorResponse"
                }
              }
            },
            "description": "Bad request — invalid page_token or page_size."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedErrorResponse"
                }
              }
            },
            "description": "Container error schema for authorization errors."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenErrorResponse"
                }
              }
            },
            "description": "Container error schema for forbidden errors."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundErrorResponse"
                }
              }
            },
            "description": "Container error schema for not found errors."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequestsErrorResponse"
                }
              }
            },
            "description": "Container error schema for rate-limiting errors."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalErrorResponse"
                }
              }
            },
            "description": "Container error schema for internal errors."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailableErrorResponse"
                }
              }
            },
            "description": "Container error schema for service unavailable errors."
          }
        },
        "summary": "List financial movements",
        "tags": [
          "Financial Movements"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiKeyDisabledError": {
        "description": "Disabled API key error schema. Indicates the API key used to sign the request is disabled.",
        "properties": {
          "code": {
            "type": "string",
            "default": "api_key_disabled",
            "description": "Error code.",
            "example": "api_key_disabled"
          },
          "message": {
            "type": "string",
            "default": "The API key used to sign the request is disabled.",
            "description": "Error message.",
            "example": "The API key used to sign the request is disabled."
          }
        }
      },
      "ApiKeyInvalidFormatError": {
        "description": "Invalid API format key error schema. Indicates the API key used to sign the request has an invalid format.",
        "properties": {
          "code": {
            "type": "string",
            "default": "api_key_invalid_format",
            "description": "Error code.",
            "example": "api_key_invalid_format"
          },
          "message": {
            "type": "string",
            "default": "The API key used to sign the request has an invalid format. The API key should contain only letters and numbers, and its length must be 10.",
            "description": "Error message.",
            "example": "The API key used to sign the request has an invalid format. The API key should contain only letters and numbers, and its length must be 10."
          }
        }
      },
      "ApiKeyNotFoundError": {
        "description": "Invalid API key not found error schema. Indicates the API key used to sign the request was not found.",
        "properties": {
          "code": {
            "type": "string",
            "default": "api_key_not_found",
            "description": "Error code.",
            "example": "api_key_not_found"
          },
          "message": {
            "type": "string",
            "default": "The API key used to sign the request was not found.",
            "description": "Error message.",
            "example": "The API key used to sign the request was not found."
          }
        }
      },
      "BadRequestErrorResponse": {
        "description": "Container error schema for bad request errors.",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/InvalidFieldError"
                },
                {
                  "$ref": "#/components/schemas/UnparseableInputError"
                },
                {
                  "$ref": "#/components/schemas/MissingParameterError"
                }
              ],
              "description": "Bad request error schema."
            },
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "BitsoTransferFundingDetails": {
        "type": "object",
        "description": "Internal-transfer-specific fields of a funding leg.",
        "properties": {
          "external_id": {
            "type": "string",
            "description": "Reference emitted by the originating internal action (e.g. the issuance/redemption id).",
            "example": "internal-ref-1"
          }
        }
      },
      "BitsoTransferWithdrawalDetails": {
        "type": "object",
        "description": "Internal-transfer-specific fields of a withdrawal leg.",
        "properties": {
          "external_id": {
            "type": "string",
            "description": "Reference emitted by the originating internal action (e.g. the issuance/redemption id).",
            "example": "internal-ref-2"
          }
        }
      },
      "ConversionDetails": {
        "type": "object",
        "description": "Conversion (BRFQ quote execution) leg of a financial movement.",
        "properties": {
          "destination_amount": {
            "type": "string",
            "format": "decimal",
            "description": "Amount of the destination asset.",
            "example": 1000
          },
          "destination_asset": {
            "type": "string",
            "description": "Asset being converted to (destination leg).",
            "example": "MXN"
          },
          "exchange_rate": {
            "type": "string",
            "format": "decimal",
            "description": "Exchange rate applied to the conversion.",
            "example": 19.9
          },
          "quote_id": {
            "type": "string",
            "description": "Identifier of the executed quote.",
            "example": "a22584ec-8006-4077-b25b-3686e0fb77f3"
          },
          "source_amount": {
            "type": "string",
            "format": "decimal",
            "description": "Amount of the source asset.",
            "example": 50.25
          },
          "source_asset": {
            "type": "string",
            "description": "Asset being converted from (source leg).",
            "example": "USDC"
          }
        }
      },
      "CryptoFundingDetails": {
        "type": "object",
        "description": "Crypto-specific fields of a funding leg.",
        "properties": {
          "destination_address": {
            "type": "string",
            "description": "User-side wallet address that received the deposit.",
            "example": "0x742......"
          },
          "network": {
            "type": "string",
            "description": "Blockchain network the deposit travelled on (e.g. ETHEREUM, ARBITRUM, POLYGON).",
            "example": "ARBITRUM"
          },
          "source_address": {
            "type": "string",
            "description": "On-chain wallet address that originated the deposit.",
            "example": "0xabc......"
          },
          "transaction_hash": {
            "type": "string",
            "description": "Blockchain transaction hash for the deposit.",
            "example": "0x12b......"
          }
        }
      },
      "CryptoWithdrawalDetails": {
        "type": "object",
        "description": "Crypto-specific fields of a withdrawal leg.",
        "properties": {
          "destination_address": {
            "type": "string",
            "description": "Destination wallet address that received the withdrawal.",
            "example": "0x742......"
          },
          "network": {
            "type": "string",
            "description": "Blockchain network the withdrawal travelled on (e.g. ETHEREUM, ARBITRUM, POLYGON).",
            "example": "ARBITRUM"
          },
          "source_address": {
            "type": "string",
            "description": "Bitso-side hot wallet address that originated the withdrawal.",
            "example": "0xdef......"
          },
          "transaction_hash": {
            "type": "string",
            "description": "Blockchain transaction hash for the withdrawal. May be absent until the rail confirms.",
            "example": "0x12b......"
          }
        }
      },
      "ErrorDefinition": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InternalError"
          },
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        ],
        "description": "Internal error schema."
      },
      "FinancialMovement": {
        "type": "object",
        "description": "A single financial movement representing a money operation across Bitso's rails.",
        "properties": {
          "conversion": {
            "$ref": "#/components/schemas/ConversionDetails",
            "description": "Conversion details. Present only when type=CONVERSION."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the movement was created (UTC), ISO-8601 with millisecond precision.",
            "example": "2026-01-15T10:30:00.000Z"
          },
          "error": {
            "$ref": "#/components/schemas/FinancialMovementError",
            "description": "Error information. Present only when status=FAILED."
          },
          "funding": {
            "$ref": "#/components/schemas/FundingDetails",
            "description": "Funding details. Present only when type=FUNDING."
          },
          "id": {
            "type": "string",
            "description": "Unique identifier of the movement, scoped to its category.",
            "example": "f3587f27-452f-4b18-9c34-6599171f6be7"
          },
          "status": {
            "$ref": "#/components/schemas/FinancialMovementStatus",
            "description": "Canonical lifecycle status of the movement.",
            "example": "COMPLETED"
          },
          "type": {
            "$ref": "#/components/schemas/FinancialMovementType",
            "description": "Movement category.",
            "example": "WITHDRAWAL"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the movement was last updated (UTC), ISO-8601 with millisecond precision.",
            "example": "2026-01-15T10:35:00.000Z"
          },
          "withdrawal": {
            "$ref": "#/components/schemas/WithdrawalDetails",
            "description": "Withdrawal details. Present only when type=WITHDRAWAL."
          }
        }
      },
      "FinancialMovementError": {
        "type": "object",
        "description": "Failure information attached to a financial movement when its status is FAILED.",
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code.",
            "example": "INSUFFICIENT_FUNDS"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message.",
            "example": "Insufficient funds for withdrawal."
          }
        }
      },
      "FinancialMovementStatus": {
        "type": "string",
        "description": "Lifecycle status of a financial movement (BAP-16 compliant).",
        "enum": [
          "PENDING",
          "PROCESSING",
          "COMPLETED",
          "FAILED"
        ]
      },
      "FinancialMovementType": {
        "type": "string",
        "description": "Category of the financial movement.",
        "enum": [
          "FUNDING",
          "WITHDRAWAL",
          "CONVERSION"
        ]
      },
      "FinancialMovementsListResponse": {
        "type": "object",
        "description": "A single page of financial movements.",
        "properties": {
          "financial_movements": {
            "type": "array",
            "description": "Financial movements in this page, ordered by creation date descending.",
            "items": {
              "$ref": "#/components/schemas/FinancialMovement"
            }
          },
          "next_page_token": {
            "type": "string",
            "description": "Opaque token to fetch the next page; null or absent when there are no more pages.",
            "example": "9WmxhY3Rfc2V......"
          },
          "total_count": {
            "type": "integer",
            "format": "int32",
            "description": "Number of financial movements returned in this page.",
            "example": 4
          }
        }
      },
      "ForbiddenErrorResponse": {
        "description": "Container error schema for forbidden errors.",
        "example": {
          "errors": [
            {
              "code": "forbidden_request",
              "message": "Permission denied. You do not have the required authorization to access this resource or perform this action."
            }
          ]
        },
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ForbiddenRequestError"
                },
                {
                  "$ref": "#/components/schemas/IpAddressNotAllowedError"
                },
                {
                  "$ref": "#/components/schemas/SuspendedAccountError"
                }
              ],
              "description": "Forbidden error schema."
            },
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "ForbiddenRequestError": {
        "description": "Authorization error schema. Indicates the authenticated user lacks necessary permissions.",
        "properties": {
          "code": {
            "type": "string",
            "default": "forbidden_request",
            "description": "Error code.",
            "example": "forbidden_request"
          },
          "message": {
            "type": "string",
            "default": "Permission denied. You do not have the required authorization to access this resource or perform this action.",
            "description": "Error message.",
            "example": "Permission denied. You do not have the required authorization to access this resource or perform this action."
          }
        }
      },
      "FundingDetails": {
        "type": "object",
        "description": "Funding (deposit) leg of a financial movement.",
        "properties": {
          "amount": {
            "type": "string",
            "format": "decimal",
            "description": "Gross amount received.",
            "example": 1000
          },
          "asset": {
            "type": "string",
            "description": "Asset or currency of the deposit.",
            "example": "MXN"
          },
          "bitso_transfer": {
            "$ref": "#/components/schemas/BitsoTransferFundingDetails",
            "description": "Internal-transfer-specific fields. Present only when type=BITSO_TRANSFER."
          },
          "crypto": {
            "$ref": "#/components/schemas/CryptoFundingDetails",
            "description": "Crypto-specific fields. Present only when type=CRYPTO."
          },
          "juno_transaction_id": {
            "type": "string",
            "description": "Juno transaction identifier of the originating action when applicable (e.g. the redemption id being refunded).",
            "example": "c4e5f6a7-....."
          },
          "juno_transaction_type": {
            "type": "string",
            "description": "Juno transaction type when the funding stems from a platform action (e.g. REDEMPTION for a refunded redemption). Absent for organic fundings.",
            "example": "REDEMPTION"
          },
          "refund": {
            "type": "boolean",
            "description": "True when the funding is a refund of a prior action.",
            "example": true
          },
          "spei": {
            "$ref": "#/components/schemas/SpeiFundingDetails",
            "description": "SPEI-specific fields. Present only when type=SPEI."
          },
          "type": {
            "$ref": "#/components/schemas/MovementMethodType",
            "description": "Discriminator for the rail used to receive the deposit. The matching nested object — `spei`, `bitso_transfer`, or `crypto` — is populated to carry the rail-specific fields.",
            "example": "SPEI"
          }
        }
      },
      "InternalError": {
        "description": "Internal error schema. Indicates the system encountered an internal error.",
        "properties": {
          "code": {
            "type": "string",
            "default": "internal_error",
            "description": "Error code.",
            "example": "internal_error"
          },
          "message": {
            "type": "string",
            "default": "Internal error.",
            "description": "Error message.",
            "example": "Internal error."
          }
        }
      },
      "InternalErrorResponse": {
        "description": "Container error schema for internal errors.",
        "example": {
          "errors": [
            {
              "code": "internal_error",
              "message": "Internal error."
            }
          ]
        },
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDefinition"
            },
            "maxItems": 1,
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "InvalidFieldError": {
        "description": "Invalid field error schema. Indicates the provided request has an invalid field.",
        "properties": {
          "code": {
            "type": "string",
            "default": "invalid_field",
            "description": "Error code.",
            "example": "invalid_field"
          },
          "message": {
            "type": "string",
            "description": "Error message."
          }
        }
      },
      "IpAddressNotAllowedError": {
        "description": "Invalid IP error schema. Indicates the IP address to access the resource is not allowed.",
        "properties": {
          "code": {
            "type": "string",
            "default": "ip_address_not_allowed",
            "description": "Error code.",
            "example": "ip_address_not_allowed"
          },
          "message": {
            "type": "string",
            "default": "IP address is not allowed to access the resource.",
            "description": "Error message.",
            "example": "IP address is not allowed to access the resource."
          }
        }
      },
      "MissingParameterError": {
        "description": "Missing parameter error schema. Indicates the provided request is missing a required parameter.",
        "properties": {
          "code": {
            "type": "string",
            "default": "missing_parameter",
            "description": "Error code.",
            "example": "missing_parameter"
          },
          "message": {
            "type": "string",
            "description": "Error message.",
            "example": "sender_id parameter is missing."
          }
        }
      },
      "MovementMethodType": {
        "type": "string",
        "description": "Rail used by a funding or withdrawal leg.",
        "enum": [
          "SPEI",
          "BITSO_TRANSFER",
          "CRYPTO"
        ]
      },
      "NotFoundErrorResponse": {
        "description": "Container error schema for not found errors.",
        "example": {
          "errors": [
            {
              "code": "resource_not_found",
              "message": "Resource not found."
            }
          ]
        },
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDefinition"
            },
            "maxItems": 1,
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "RequestNonceAlreadyInUseError": {
        "description": "Request nonce already in use error schema. Indicates the provided request nonce was already used.",
        "properties": {
          "code": {
            "type": "string",
            "default": "request_nonce_already_in_use",
            "description": "Error code.",
            "example": "request_nonce_already_in_use"
          },
          "message": {
            "type": "string",
            "default": "The provided request nonce was already used.",
            "description": "Error message.",
            "example": "The provided request nonce was already used."
          }
        }
      },
      "RequestNonceDatetimeError": {
        "description": "Request nonce date-time error schema. Indicates the provided request nonce has a invalid date-time range.",
        "properties": {
          "code": {
            "type": "string",
            "default": "request_nonce_date_time_error",
            "description": "Error code.",
            "example": "request_nonce_date_time_error"
          },
          "message": {
            "type": "string",
            "default": "The request nonce date-time must be in the past and is valid only for 30 seconds.",
            "description": "Error message.",
            "example": "The request nonce date-time must be in the past and is valid only for 30 seconds."
          }
        }
      },
      "RequestNonceNegativeError": {
        "description": "Request nonce negative error schema. Indicates the nonce provided for the request is negative value.",
        "properties": {
          "code": {
            "type": "string",
            "default": "request_nonce_negative",
            "description": "Error code.",
            "example": "request_nonce_negative"
          },
          "message": {
            "type": "string",
            "default": "The request nonce must be a positive number.",
            "description": "Error message.",
            "example": "The request nonce must be a positive number."
          }
        }
      },
      "RequestSignatureInvalidError": {
        "description": "Request signature invalid error schema. Indicates the request signature is invalid.",
        "properties": {
          "code": {
            "type": "string",
            "default": "request_signature_invalid",
            "description": "Error code.",
            "example": "request_signature_invalid"
          },
          "message": {
            "type": "string",
            "default": "The request signature used for the request is invalid.",
            "description": "Error message.",
            "example": "The request signature used for the request is invalid."
          }
        }
      },
      "ServiceUnavailableErrorResponse": {
        "description": "Container error schema for service unavailable errors.",
        "example": {
          "errors": [
            {
              "code": "service_unavailable",
              "message": "Service temporarily unavailable. Please try again later."
            }
          ]
        },
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDefinition"
            },
            "maxItems": 1,
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "SpeiFundingDetails": {
        "type": "object",
        "description": "SPEI-specific fields of a funding leg.",
        "properties": {
          "destination_clabe": {
            "type": "string",
            "description": "User-side receiver CLABE that received the deposit.",
            "example": 646180115400000000
          },
          "external_id": {
            "type": "string",
            "description": "Reference emitted by SPEI for the deposit (clave de rastreo).",
            "example": "spei-rastreo-abc123"
          },
          "source_clabe": {
            "type": "string",
            "description": "Sender CLABE that originated the deposit.",
            "example": 646180115400000100
          }
        }
      },
      "SpeiWithdrawalDetails": {
        "type": "object",
        "description": "SPEI-specific fields of a withdrawal leg.",
        "properties": {
          "destination_clabe": {
            "type": "string",
            "description": "External CLABE that received the withdrawal.",
            "example": 646180115400000000
          },
          "external_id": {
            "type": "string",
            "description": "Reference emitted by SPEI for the withdrawal (clave de rastreo). May be absent until the rail confirms.",
            "example": "spei-rastreo-abc123"
          }
        }
      },
      "SuspendedAccountError": {
        "description": "Suspended account error schema. Indicates the user's account is suspended.",
        "properties": {
          "code": {
            "type": "string",
            "default": "suspended_account",
            "description": "Error code.",
            "example": "suspended_account"
          },
          "message": {
            "type": "string",
            "default": "Account is currently suspended. Please, contact customer support for additional information.",
            "description": "Error message.",
            "example": "Account is currently suspended. Please, contact customer support for additional information."
          }
        }
      },
      "TooManyRequestsErrorResponse": {
        "description": "Container error schema for rate-limiting errors.",
        "example": {
          "errors": [
            {
              "code": "too_many_requests",
              "message": "Too many requests were made in the current time period."
            }
          ]
        },
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDefinition"
            },
            "maxItems": 1,
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "UnauthorizedError": {
        "description": "Authentication error schema. Indicates missing or invalid authentication credentials.",
        "properties": {
          "code": {
            "type": "string",
            "default": "unauthorized_request",
            "description": "Error code."
          },
          "message": {
            "type": "string",
            "default": "Authentication required. Valid credentials must be provided to access this resource.",
            "description": "Error message."
          }
        }
      },
      "UnauthorizedErrorResponse": {
        "description": "Container error schema for authorization errors.",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/UnauthorizedError"
                },
                {
                  "$ref": "#/components/schemas/ApiKeyInvalidFormatError"
                },
                {
                  "$ref": "#/components/schemas/ApiKeyNotFoundError"
                },
                {
                  "$ref": "#/components/schemas/ApiKeyDisabledError"
                },
                {
                  "$ref": "#/components/schemas/RequestSignatureInvalidError"
                },
                {
                  "$ref": "#/components/schemas/RequestNonceNegativeError"
                },
                {
                  "$ref": "#/components/schemas/RequestNonceDatetimeError"
                },
                {
                  "$ref": "#/components/schemas/RequestNonceAlreadyInUseError"
                }
              ],
              "description": "Authorization error schema."
            },
            "minItems": 1,
            "uniqueItems": true
          }
        }
      },
      "UnparseableInputError": {
        "description": "Unparseable input error schema. Indicates the provided request is unparseable.",
        "properties": {
          "code": {
            "type": "string",
            "default": "unparseable_input",
            "description": "Error code.",
            "example": "unparseable_input"
          },
          "message": {
            "type": "string",
            "default": "The provided input is unparseable.",
            "description": "Error message.",
            "example": "The provided input is unparseable."
          }
        }
      },
      "WithdrawalDetails": {
        "type": "object",
        "description": "Withdrawal leg of a financial movement.",
        "properties": {
          "asset": {
            "type": "string",
            "description": "Asset or currency of the withdrawal.",
            "example": "MXN"
          },
          "bitso_transfer": {
            "$ref": "#/components/schemas/BitsoTransferWithdrawalDetails",
            "description": "Internal-transfer-specific fields. Present only when type=BITSO_TRANSFER."
          },
          "crypto": {
            "$ref": "#/components/schemas/CryptoWithdrawalDetails",
            "description": "Crypto-specific fields. Present only when type=CRYPTO."
          },
          "fee": {
            "type": "string",
            "format": "decimal",
            "description": "Fee charged for the withdrawal.",
            "example": 5
          },
          "gross_amount": {
            "type": "string",
            "format": "decimal",
            "description": "Gross amount before fees.",
            "example": 1000
          },
          "juno_transaction_id": {
            "type": "string",
            "description": "Juno transaction identifier of the originating action when applicable (e.g. the issuance id being refunded).",
            "example": "c4e5f6a7-....."
          },
          "juno_transaction_type": {
            "type": "string",
            "description": "Juno transaction type when the withdrawal stems from a platform action (e.g. ISSUANCE for a refunded issuance). Absent for organic withdrawals.",
            "example": "ISSUANCE"
          },
          "net_amount": {
            "type": "string",
            "format": "decimal",
            "description": "Net amount delivered to the destination.",
            "example": 995
          },
          "refund": {
            "type": "boolean",
            "description": "True when the withdrawal is a refund of a prior action.",
            "example": true
          },
          "spei": {
            "$ref": "#/components/schemas/SpeiWithdrawalDetails",
            "description": "SPEI-specific fields. Present only when type=SPEI."
          },
          "type": {
            "$ref": "#/components/schemas/MovementMethodType",
            "description": "Discriminator for the rail used to send the withdrawal. The matching nested object — `spei`, `bitso_transfer`, or `crypto` — is populated to carry the rail-specific fields.",
            "example": "SPEI"
          }
        }
      }
    },
    "securitySchemes": {
      "BitsoAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Bitso",
        "description": "Custom bitso authentication mechanism that requires a signed token sent in the `Authorization` header. Use the following format: ``` Authorization: Bitso <token> ```\n"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
````