terms_offer_invalid: The terms offer is not usable
The offer is malformed, its signature does not recover to the payee it names, it names another payee than the stream, or the offerId is unknown. Nothing is opened.
The same code answers a payee registering an offer (POST /payee/v1/terms/offers) whose terms are malformed, for example two terms for the same metric and comparison. Nothing is registered. That route answers {"error": "state", "reason": "terms_offer_invalid", "detail": "…"} and never adds errorDetail, even with Dynamo-Error-Detail: 1.
What to do
- Ask the payee for a fresh offer: signed with its own key (
signTermsOffer) or registered on the payee surface (POST /payee/v1/terms/offers).
On the wire
HTTP 409, error type state_error.
On a stream open the body carries errorDetail only when the request sends Dynamo-Error-Detail: 1. With the header:
{
"error": "state",
"reason": "terms_offer_invalid",
"detail": "…",
"errorDetail": {
"type": "state_error",
"code": "terms_offer_invalid",
"message": "…",
"param": "terms",
"doc_url": "…/errors/terms_offer_invalid.md",
"fix": "the terms offer is malformed, not signed by the payee it names, or names another payee; ask the payee for a fresh offer"
}
}
See all error codes.