Hashira
ReferenceProducts

Create a product

A product is a catalog entry with no price of its own. Prices are attached separately and are append-only, so repricing means adding a price and deactivating the old one.

POST
/v1/products
AuthorizationBearer <token>

A Hashira API key.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/products" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "isActive": true,  "createdAt": "2019-08-24T14:15:22Z"}