Create a price
Creates a new Price for an existing Product.
Creates a new Price for an existing Product.
Authorization
api-key API key for merchant integrations. Send as Authorization: Bearer <your key>.
In: header
Query Parameters
Product ID
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/prices?productId=string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "price_abc123", "object": "price", "name": "string", "description": "string", "currency": "EGP", "unitAmount": 0, "type": "ONE_TIME", "recurring": { "interval": "DAY", "intervalCount": 0 }, "customUnitAmount": { "minimum": 0, "maximum": 0, "preset": 0 }, "stock": 0, "startDate": "string", "expirationDate": "string", "active": true, "lookupKey": "pro_monthly", "createdAt": "string", "updatedAt": "string", "productId": "string"}List prices by lookup key GET
Retrieves the prices with the given lookup keys, up to 10. Repeat the parameter for several: `lookupKeys=pro_monthly&lookupKeys=pro_yearly`. A key no price has is left out.
Update a price PATCH
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.