Internal Order Validation

get/api/stablecoin/v1/internal/order-validation

Stateless validation of an order request — runs the same checks as order creation (eligibility, blacklist, jurisdiction, minimum amount, source/destination validation) without persisting anything. Short-circuits on the first validation failure.

Query Parameters

  • enterpriseIdstring
    Min length: >= 1 characters
  • fromAssetstringRequired
    Source asset token identifier (e.g. "usd1")
    Example: usd1
    Min length: >= 1 characters
  • toAssetstringRequired
    Destination asset token identifier (e.g. "eth:usd1")
    Example: eth:usd1
    Min length: >= 1 characters
  • amountstringRequired
    Order amount in base units
    Example: 1000000
    Pattern: ^[1-9][0-9]*$
  • sourceWalletIdstringRequired
    Source wallet ID
    Min length: >= 1 characters
  • destinationTypestringRequired
    Destination type
    Enum: go_account address wallet
  • destinationWalletIdstring
    Destination wallet ID
    Min length: >= 1 characters
  • destinationAddressstring
    Destination address
    Min length: >= 1 characters

200 Response

valid boolean required
Whether all validations passed
errors array[object] required
Validation failures; empty when valid is true
code string required
Machine-readable error code
Allowed values: INVALID_ASSET_PAIR ENTERPRISE_NOT_ELIGIBLE INVALID_ORDER_AMOUNT ADDRESS_BLACKLISTED SOURCE_WALLET_NOT_AUTHORIZED INVALID_DESTINATION
message string required
Human-readable error description
field string
The request field that caused the validation failure

400 Response

valid boolean required
Whether all validations passed
errors array[object] required
Validation failures; empty when valid is true
code string required
Machine-readable error code
Allowed values: INVALID_ASSET_PAIR ENTERPRISE_NOT_ELIGIBLE INVALID_ORDER_AMOUNT ADDRESS_BLACKLISTED SOURCE_WALLET_NOT_AUTHORIZED INVALID_DESTINATION
message string required
Human-readable error description
field string
The request field that caused the validation failure

401 Response

valid boolean required
Whether all validations passed
errors array[object] required
Validation failures; empty when valid is true
code string required
Machine-readable error code
Allowed values: INVALID_ASSET_PAIR ENTERPRISE_NOT_ELIGIBLE INVALID_ORDER_AMOUNT ADDRESS_BLACKLISTED SOURCE_WALLET_NOT_AUTHORIZED INVALID_DESTINATION
message string required
Human-readable error description
field string
The request field that caused the validation failure

404 Response

500 Response