التوثيق

Price

A Price defines what a Product costs: the unit amount, currency, and (for subscriptions) billing interval. A single Product can have many Prices, letting you offer the same item in multiple currencies, tiers, or billing models without duplicating your catalog. Reference a Price by ID when creating Checkout Sessions, Payment Links, or line items, and the customer is charged according to what the Price defines.

A Price defines what a Product costs: the unit amount, currency, and (for subscriptions) billing interval. A single Product can have many Prices, letting you offer the same item in multiple currencies, tiers, or billing models without duplicating your catalog. Reference a Price by ID when creating Checkout Sessions, Payment Links, or line items, and the customer is charged according to what the Price defines.

{  "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,  "createdAt": "string",  "updatedAt": "string",  "productId": "string"}