Create a price
Creates a new price for a product. Supports fixed, pay-what-you-want, and free pricing models.
/pricesCreates a new price for a product. Supports fixed, pay-what-you-want, and free pricing models.
Related endpoints
GET /prices— List pricesGET /prices/{id}— Retrieve a pricePATCH /prices/{id}— Update a priceDELETE /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 aWWW-Authenticate: Bearerchallenge.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.
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
Request Body
application/json
Price creation details
TypeScript Definitions
Use the request body type in TypeScript.
Parameters for creating a new price. Specify the product, amount, currency, and billing interval.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.revkeen.com/v2/prices" \
-H "x-api-key: $REVKEEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "11111111-1111-4111-8111-111111111111"
}'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"}