Create product
Create a new product. Requires 'products:write' scope.
/productsCreate a new product. Requires 'products:write' scope.
Related endpoints
GET /products— List productsGET /products/{id}— Get product by IDPATCH /products/{id}— Update productGET /product-collections— List product collectionsPOST /product-collections— Create a product collectionGET /product-collections/{id}— Get a product collectionPATCH /product-collections/{id}— Update a product collectionDELETE /product-collections/{id}— Delete a product collection
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.
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
Product creation details
TypeScript Definitions
Use the request body type in TypeScript.
Parameters for creating a new product, including name, billing type, and pricing.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.revkeen.com/v2/products" \
-H "x-api-key: $REVKEEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "prd_1RxKm4MnBoCpDqErFsGtHuIv",
"name": "example",
"kind": "subscription",
"pricing_model": "one_time",
"amount_minor": 1000
}'Synthetic documentation data, validated against the response schema; not a live API result.
{ "data": { "id": "a7b3c9d2-1e4f-4b6a-8c5d-2f9e0a1b3c42", "object": "product", "product_id": "PRO-MONTHLY", "name": "Pro plan", "description": "Unlimited invoices, automated reminders and priority support.", "kind": "subscription", "pricing_model": "recurring", "amount_minor": 4900, "currency": "GBP", "interval": "month", "interval_count": 1, "trial_days": 14, "fulfillment_type": "digital", "track_inventory": false, "stock_quantity": null, "tags": [ "saas", "monthly" ], "billing_anchor_rule": "same_day", "billing_anchor_day": null, "first_charge_behavior": "immediate", "end_behavior": "until_canceled", "max_payments": null, "usage_meter_id": null, "slug": "pro-plan", "is_active": true, "is_archived": false, "image_url": null, "images": [], "seo_title": null, "seo_description": null, "store_visibility": "visible", "store_visible_from": null, "tax_behavior": "exclusive", "tax_code": null, "metadata": {}, "created_at": "2026-04-02T10:00:00.000Z", "updated_at": "2026-04-02T10:05:00.000Z" }}