Create Product

Create a new product that can be used in payment links and invoices.

Endpoint

POST /api/products

Request Body

ParameterTypeRequiredDescription
namestringYesProduct name
pricenumberYesProduct price
currencystringYesCurrency code
descriptionstringNoProduct description
categorystringNoProduct category

Response

Returns the created product object.
{
  "id": "prod_123456789",
  "name": "Premium Service",
  "price": 99.99,
  "currency": "USD",
  "description": "Premium service package",
  "category": "Services",
  "created_at": "2023-01-01T00:00:00Z"
}