API reference
Read an order review
GET
/v2/orders/{id}/reviewRead an order review with an owner session or destination proof.
Authentication: Required: the order’s owner session in X-Session-ID, or the destination proof ?verify=<destination-address> (read-only).
#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:
review· object or null · requiredorderId· string · requiredratingSpeed· number · requiredratingRate· number · requiredratingExperience· number · requiredcomment· string or null · requiredcreatedAt· string · required
Errors use the standard error envelope: branch on code, never on the message.
#Example
curl
curl 'https://api-beta.wagyu.xyz/v2/orders/<orderId>/review' \
-H 'x-session-id: <sessionId>'JavaScript
const res = await fetch('https://api-beta.wagyu.xyz/v2/orders/<orderId>/review', {
headers: {"x-session-id":"<sessionId>"},
});
const data = await res.json();Python
import requests
res = requests.get('https://api-beta.wagyu.xyz/v2/orders/<orderId>/review', headers={"x-session-id":"<sessionId>"}, timeout=30)
data = res.json()No response is captured for this route: it needs a real order. The response fields above come from the live contract.