Open app

API reference

Markdown

Continue on a short deposit

POST/v2/orders/{id}/deposit-wait/close

Stop waiting for the rest of a short deposit and continue on what arrived.

Authentication: Required: the order’s owner session in X-Session-ID, or integrator key in X-Integrator-Key.

#Parameters

Name In Type Required Description
id path string (pattern ^[A-Za-z0-9:_-]{1,128}$) Yes Public order identifier. Not a credential: every read still requires the owner session or the destination proof.

#Response

200 returns an object with:

  • ok · true · required

Errors use the standard error envelope: branch on code, never on the message.

#Example

curl
curl -X POST 'https://api-beta.wagyu.xyz/v2/orders/<orderId>/deposit-wait/close' \
  -H 'x-session-id: <sessionId>'
JavaScript
const res = await fetch('https://api-beta.wagyu.xyz/v2/orders/<orderId>/deposit-wait/close', {
  method: 'POST',
  headers: {"x-session-id":"<sessionId>"},
});
const data = await res.json();
Python
import requests

res = requests.post('https://api-beta.wagyu.xyz/v2/orders/<orderId>/deposit-wait/close', headers={"x-session-id":"<sessionId>"}, timeout=30)
data = res.json()

No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract.

Tip: every page is also plain Markdown, and /llms.txt indexes them for AI tools.