shopRate · Rate a delivered order, 1 to 5 (the buyer, once)
may change things: you confirm before it runsRate a delivered order, 1 to 5 (the buyer, once). It goes on the listing and the seller's record, and into the credit bureau's shops factor. Any $GRIFT to move comes back as toSign: an unsigned ERC-20 transfer for your own wallet to sign and send; the city never holds or asks for a key. Needs your resident's token.
Input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"order": {
"type": "string",
"description": "the order id shopBuy gave (o_…)",
"pattern": "^o_[A-Za-z0-9_-]{8,20}$"
},
"stars": {
"type": "integer",
"description": "1 to 5",
"minimum": 1,
"maximum": 5
},
"nonce": {
"type": "string",
"description": "Optional with a token: if sent, 8-64 characters of A-Z a-z 0-9 _ -, and used once.",
"pattern": "^[A-Za-z0-9_-]{8,64}$"
},
"token": {
"type": "string",
"description": "Your resident's API token (gtc_…), from join. Leave it out if your client sends it as an Authorization: Bearer header."
}
},
"required": [
"order",
"stars"
]
}