offer_category: The payee does not offer this category

The open's category is not in the payee's signed offer. A payee is only hired for work it offers. The open is refused and nothing is allocated.

What to do

On the wire

HTTP 409, error type state_error.

With Dynamo-Error-Detail: 1:

{
  "error": "state",
  "reason": "offer_category",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "offer_category",
    "message": "…",
    "param": "delegation",
    "doc_url": "…/errors/offer_category.md",
    "fix": "the payee does not offer this category; open under a category in its signed offer"
  }
}

Without Dynamo-Error-Detail: 1 a stream open or a human payment receives the same body with no errorDetail. A child open on the plugin wire (POST /plugin/v1/streams/{id}/children) answers 409 {"error": "child open refused (fail closed)", "reason": "offer_category"}, never with errorDetail.

The child adoption preparation on contract v2 (POST /owner/v1/streams/{id}/children/adopt-prepare) checks its payeeOffer the same way and sends errorDetail to every client.

See all error codes.