Skip to content
agentsub
Esc
↑↓navigate↵open⌘Jpreview

Update a merchant offer

PATCH/v1/merchants/{id}/offers/{offerId}
Authorization
AuthorizationBearer token (JWT) · headerrequired

Clerk human owner session JWT; iss must equal the configured Clerk issuer and the identity must be a human (not agent) owner with a verified email.

or
AuthorizationOAuth2 access token · headerrequired
Scopes:agentsub:owner
Path parameters
idstringrequired
offerIdstringrequired
Header parameters
Idempotency-Keystringrequired

Required only where this parameter is listed. Same payload/key recovers prior operation; secret replays omit plaintext.

matches ^[A-Za-z0-9._:-]{1,200}$
Request body
requiredapplication/json
skustringrequired
min length 1 · max length 100 · matches ^[a-zA-Z0-9._-]+$
titlestringrequired
min length 1 · max length 150
descriptionstring
max length 2000 · default: ""
unitstringrequired
min length 1 · max length 100
priceUsdstringrequired
matches ^(0|[1-9]\d{0,5})(\.\d{1,6})?$
categorystringrequired
min length 1 · max length 60
Responses
200

Offer updated

offerOffer
Show properties
idstring
acceptorIdstring
titlestring
descriptionstring
unitstring
priceUcMicrocredits

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
priceUsdstring

USD decimal string; 1,000,000 microcredits = $0.01

categorystring
acceptedPaymentMethodsstring[]
400

invalid_input problem

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
401

unauthorized problem; live 401s advertise WWW-Authenticate: Bearer resource_metadata=...

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
403

Identity, ownership, scope or policy denied (human_required, owner_claim_required, scope_required, FROZEN, CAP_EXCEEDED, SCOPE_FORBIDDEN)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
503

Runtime or provider configuration unavailable (runtime_configuration_required, signing_configuration_required, runtime_unavailable, workspace_unavailable, provider_configuration_required)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
Request
curl -X PATCH 'https://api.agentsub.dev/v1/merchants/string/offers/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Idempotency-Key: string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "sku": "string",
  "title": "string",
  "description": "",
  "unit": "string",
  "priceUsd": "string",
  "category": "string"
}'
Response
{
  "offer": {
    "id": "string",
    "acceptorId": "string",
    "title": "string",
    "description": "string",
    "unit": "string",
    "priceUc": "string",
    "priceUsd": "string",
    "category": "string",
    "acceptedPaymentMethods": [
      "string"
    ]
  }
}