📦 Products & PricingPrices

Update a price

Updates a price. Only certain fields can be updated (active, name, nickname, lookup_key, metadata). Core pricing fields are immutable.

PATCH/prices/{id}

Updates a price. Only certain fields can be updated (active, name, nickname, lookup_key, metadata). Core pricing fields are immutable.


Related endpoints

  • GET /prices — List prices
  • POST /prices — Create a price
  • GET /prices/{id} — Retrieve a price
  • DELETE /prices/{id} — Archive a price

Common errors

  • 400 invalid_request — malformed payload or failed validation.
  • 401 authentication_error — missing, invalid, expired, or revoked credential. Codes: authentication_failed, invalid_api_key, expired_api_key, api_key_revoked, session_invalid, merchant_required. Carries a WWW-Authenticate: Bearer challenge.
  • 404 resource_missing — the referenced resource does not exist or is not visible to your key.

Idempotency

Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.

x-api-key<token>

Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.

In: header

Path Parameters

id*string

Price ID

Formatuuid

Request Body

application/json

Price update details

TypeScript Definitions

Use the request body type in TypeScript.

Parameters for updating an existing price. Amounts cannot be changed — archive and create a new price instead.

Response Body

application/json

application/json

application/json

application/json

application/json

Stuck on an error response? Ask the RevKeen assistant to explain it.
curl -X PATCH "https://api.revkeen.com/v2/prices/11111111-1111-4111-8111-111111111111" \
  -H "x-api-key: $REVKEEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "active": true,
    "name": "example",
    "nickname": "example",
    "description": "Example request from API docs"
  }'

Synthetic documentation data, validated against the response schema; not a live API result.

{  "id": "b5d8e2f1-3a6c-4d9b-8e7f-1c4a2b5d6e73",  "object": "price",  "product_id": "a7b3c9d2-1e4f-4b6a-8c5d-2f9e0a1b3c42",  "active": true,  "currency": "gbp",  "unit_amount": 4900,  "unit_amount_decimal": "4900",  "type": "recurring",  "pricing_model": "fixed",  "interval": "month",  "interval_count": 1,  "trial_period_days": 14,  "start_rule": "immediate",  "minimum_amount": null,  "maximum_amount": null,  "suggested_amount": null,  "preset_amounts": null,  "name": "Monthly",  "nickname": "Monthly",  "description": null,  "version": 1,  "lookup_key": "pro_monthly_gbp",  "billing_scheme": "per_unit",  "tiers_mode": null,  "tiers": null,  "transform_quantity": null,  "percentage_rate_bps": null,  "pay_in_advance": true,  "spending_minimum_cents": null,  "option_values": null,  "sku": null,  "image_url": null,  "metadata": {},  "created_at": "2026-04-02T10:00:00.000Z",  "updated_at": "2026-04-02T10:05:00.000Z"}