Skip to main content
POST
/
products
cURL
curl --request POST \
  --url http://dolfin-service-973993966394.europe-west2.run.app/products \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "currency": "<string>",
  "description": "<string>",
  "unitPrice": 123,
  "type": "Product"
}
'
{
  "name": "<string>",
  "currency": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "unitPrice": 123,
  "type": "Product",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
name
string
required
currency
string
required
description
null | string
unitPrice
type
enum<string>
Available options:
Product,
Service

Response

Created

name
string
required
currency
string
required
id
string<uuid>
organisationId
string<uuid>
description
null | string
unitPrice
type
enum<string>
Available options:
Product,
Service
createdAt
string<date-time>
updatedAt
string<date-time>