Skip to main content

Create a product

Create a new product and use it quickly add products to pricing tables in documents.

Parameters

category
string
ID of category.
currency
string
required
Three-letter ISO currency code.
description
string
Description for the product.
name
string
required
Name for the product.
price
integer
required
Price for the product in cents.
sku
string
SKU for the product.

Returns

Returns the created product object. Throws an error if some parameters are not valid.

post
/api/products
curl -X POST https://{workspace}.documocu.com/api/products \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"category": "cat_7vd1kynnir8fxdg6qgtgvuom",
"created_at": "2024-05-14T11:24:10+00:00",
"currency": "USD",
"deleted_at": null,
"description": "Quia rerum recusandae porro perspiciatis.",
"id": "prod_0xpd94emeujod9uu4lnob9r3",
"name": "Doloribus",
"price": 29,
"sku": "c327ab9d-4f3a-3b46-a962-161634682093",
"updated_at": "2024-05-14T11:24:10+00:00"
}