docs

Create a price

Creates a new Price for an existing Product.

POST
/prices
  Creates a new Price for an existing Product.
AuthorizationBearer <token>

API key for merchant integrations. Send as Authorization: Bearer <your key>.

In: header

Query Parameters

productId*string

Product ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/prices?productId=string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "price_abc123",
  "productId": "prod_xyz789",
  "merchantId": "merch_def456",
  "currency": "EGP",
  "unitAmount": 10000,
  "type": "ONE_TIME",
  "active": true,
  "createdAt": "2024-01-01T00:00:00.000Z"
}
Empty
Empty