Wagyu Swap Orders API
Manage session-owned order actions and history.
Manage session-owned order actions and history.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wagyu-xyz:wagyu-xyz-orders-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wagyu Consumer Orders API
version: v2
contact:
name: Wagyu API documentation
url: https://docs.wagyu.xyz
description: 'Public HTTP contract for building a Wagyu swap and native-bridge client. Order IDs are not credentials; retain the returned session ID privately. WebSocket updates are documented separately because REST remains the durable source of truth. An order status is final only when it is completed or refunded: failed and expired are not final, because a recovery or a late deposit can still complete or refund the order.'
x-final-order-statuses:
- completed
- refunded
servers:
- url: https://api.wagyu.xyz
description: Production
tags:
- name: Orders
description: Manage session-owned order actions and history.
paths:
/v2/orders/{id}:
delete:
operationId: deleteOrder
summary: Permanently remove a completed or refunded order
tags:
- Orders
requestBody:
required: true
content:
application/json:
schema:
type: object
properties: {}
additionalProperties: false
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/Ok'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/v2/orders:
get:
operationId: listSessionOrders
summary: List orders owned by a session
tags:
- Orders
parameters:
- schema:
default: 200
type: integer
minimum: 1
maximum: 200
in: query
name: limit
required: false
description: Page size for this session's order history.
- schema:
default: 0
type: integer
minimum: 0
maximum: 9007199254740991
in: query
name: offset
required: false
description: Number of orders to skip. History is ordered most-recent first, so this pages backwards through it.
security:
- orderSession: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrderList'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/v2/orders/{id}/review:
get:
operationId: getOrderReview
summary: Read an order review with an owner session or destination proof
tags:
- Orders
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
- destinationProof: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrderReview'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
put:
operationId: submitOrderReview
summary: Submit a completed-order review
tags:
- Orders
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrderReviewRequest'
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/OrderReviewSubmitted'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/v2/orders/{id}/refund-address:
put:
operationId: submitRefundAddress
summary: Submit a refund address for an eligible order
tags:
- Orders
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RefundAddressRequest'
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/RefundAddressAccepted'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/v2/orders/{id}/deposit-wait/close:
post:
operationId: continueOnArrivedDeposit
summary: Stop waiting for the rest of a short deposit and continue on what arrived
tags:
- Orders
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
- integratorKey: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/Ok'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/v2/orders/{id}/payout-address:
put:
operationId: submitPayoutAddress
summary: Submit a replacement payout address when the order asks for one
tags:
- Orders
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutAddressRequest'
parameters:
- schema:
$ref: '#/components/schemas/OrderId'
in: path
name: id
required: true
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
security:
- orderSession: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/PayoutAddressAccepted'
'400':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'503':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'504':
description: Default Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
components:
schemas:
OrderReviewSubmitted:
type: object
properties:
success:
type: boolean
enum:
- true
required:
- success
additionalProperties: false
ChainId:
type: integer
minimum: 0
maximum: 9007199254740991
description: Non-negative integer chain identifier.
PayoutAddressAccepted:
type: object
properties:
ok:
type: boolean
enum:
- true
payoutAddress:
type: string
required:
- ok
- payoutAddress
additionalProperties: false
BridgeAssetKey:
type: string
enum:
- xmr
- trx
- zec
description: Registered native-bridge asset key, never a display symbol.
OrderSummary:
type: object
properties:
orderId:
type: string
product:
type: string
enum:
- swap
- bridge
- coinflip
status:
$ref: '#/components/schemas/OrderStatus'
asset:
$ref: '#/components/schemas/BridgeAssetKey'
direction:
$ref: '#/components/schemas/BridgeDirection'
chainId:
anyOf:
- $ref: '#/components/schemas/ChainId'
- type: 'null'
toAddress:
type:
- string
- 'null'
depositAddress:
type:
- string
- 'null'
createdAt:
type:
- string
- 'null'
updatedAt:
type:
- string
- 'null'
fromChainId:
anyOf:
- $ref: '#/components/schemas/ChainId'
- type: 'null'
depositChainId:
anyOf:
- $ref: '#/components/schemas/ChainId'
- type: 'null'
fromToken:
type: string
depositToken:
type: string
fromTokenSymbol:
type: string
depositTokenSymbol:
type: string
fromTokenDecimals:
$ref: '#/components/schemas/TokenDecimals'
depositTokenDecimals:
$ref: '#/components/schemas/TokenDecimals'
fromAmount:
type: string
depositAmount:
type: string
toChainId:
anyOf:
- $ref: '#/components/schemas/ChainId'
- type: 'null'
toToken:
type: string
toTokenSymbol:
type: string
toTokenDecimals:
$ref: '#/components/schemas/TokenDecimals'
expectedOutput:
type: string
depositTxHash:
type:
- string
- 'null'
receivingTxHash:
type:
- string
- 'null'
sessionId:
type:
- string
- 'null'
refundAddress:
type:
- string
- 'null'
refundRequestedAt:
type:
- string
- 'null'
expiresAt:
type: string
amountUsd:
type: number
bonusStage:
type: string
enum:
- none
- coinflip
coinflipRequested:
type: boolean
fundingProvider:
anyOf:
- type: string
enum:
- privy
- type: 'null'
integratorFeeUsd:
type:
- number
- 'null'
required:
- orderId
- product
- status
- chainId
- toAddress
- depositAddress
- createdAt
- updatedAt
additionalProperties: false
RefundAddressRequest:
type: object
properties:
refundAddress:
$ref: '#/components/schemas/RefundAddress'
required:
- refundAddress
additionalProperties: false
ApiErrorCode:
type: string
enum:
- invalid_request
- unauthorized
- forbidden
- not_found
- conflict
- amount_below_minimum
- no_route
- paused
- rate_limited
- unavailable
- request_failed
- integration_not_approved
- human_check_failed
OrderReviewRequest:
type: object
properties:
ratingSpeed:
type: integer
minimum: 1
maximum: 5
description: How fast the order settled. 1 is worst, 5 is best.
ratingRate:
type: integer
minimum: 1
maximum: 5
description: How good the rate felt. 1 is worst, 5 is best.
ratingExperience:
type: integer
minimum: 1
maximum: 5
description: Overall experience. 1 is worst, 5 is best.
comment:
description: Optional free-text feedback.
anyOf:
- type: string
maxLength: 500
- type: 'null'
required:
- ratingSpeed
- ratingRate
- ratingExperience
additionalProperties: false
OrderStatus:
type: string
enum:
- awaiting_deposit
- awaiting_hxmr
- awaiting_trx1
- awaiting_zec1
- awaiting_xmr1
- processing
- completed
- failed
- expired
- refunded
- needs_review
OrderReview:
type: object
properties:
review:
anyOf:
- type: object
properties:
orderId:
type: string
ratingSpeed:
type: number
ratingRate:
type: number
ratingExperience:
type: number
comment:
type:
- string
- 'null'
createdAt:
type: string
required:
- orderId
- ratingSpeed
- ratingRate
- ratingExperience
- comment
- createdAt
additionalProperties: false
- type: 'null'
required:
- review
additionalProperties: false
OrderList:
type: object
properties:
orders:
type: array
items:
$ref: '#/components/schemas/OrderSummary'
required:
- orders
additionalProperties: false
TokenDecimals:
type: integer
minimum: 0
maximum: 36
RefundAddress:
type: string
minLength: 1
maxLength: 256
description: Refund destination. Its chain-specific validity is checked by the API.
BridgeDirection:
type: string
enum:
- deposit
- withdraw
description: deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset.
PayoutAddressRequest:
type: object
properties:
payoutAddress:
$ref: '#/components/schemas/RefundAddress'
required:
- payoutAddress
additionalProperties: false
ApiError:
type: object
properties:
code:
$ref: '#/components/schemas/ApiErrorCode'
error:
type: string
minAmountUsd:
type: number
exclusiveMinimum: 0
retryAfter:
type: number
minimum: 0
required:
- code
- error
additionalProperties: false
RefundAddressAccepted:
type: object
properties:
ok:
type: boolean
enum:
- true
refundAddress:
type: string
required:
- ok
- refundAddress
additionalProperties: false
Ok:
type: object
properties:
ok:
type: boolean
enum:
- true
required:
- ok
additionalProperties: false
OrderId:
type: string
pattern: ^[A-Za-z0-9:_-]{1,128}$
description: 'Public order identifier. Not a credential: every read still requires the owner session or the destination proof.'
securitySchemes:
orderSession:
type: apiKey
in: header
name: x-session-id
description: Owner credential returned when an order is created. Keep it private and send it only in this header, never in a URL.
destinationProof:
type: apiKey
in: query
name: verify
description: 'Read-only proof for one order: its exact destination address. Missing or invalid proof intentionally returns the same 404 as a missing order.'
integratorKey:
type: apiKey
in: header
name: x-integrator-key
description: Optional integration credential. It does not unlock the API — quoting, creating and tracking all work without it. It attributes the order to your integration, collects your integrator fee, and is what permits a caller-supplied sessionId at creation. A confidential (server-side) key may also end the deposit wait of the orders created by its own integration. `x-api-key` is accepted as an alias; a key in the query string is refused even when valid, so a credential can never reach a proxy log. Sending no key is anonymous, never an error. A key that is present but invalid, revoked, or belongs to a suspended integration is refused with 401 on every route rather than silently downgraded to anonymous, and that 401 carries the generic unauthorized body — the reason stays in our logs.