Skip to main content
POST
https://pay.chargily.net/test/api/v2
/
products
Create a product
curl --request POST \
  --url https://pay.chargily.net/test/api/v2/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "images": [
    "<string>"
  ],
  "metadata": {}
}
'
{
  "id": "01hhyjnrdbc1xhgmd34hs1v3en",
  "entity": "product",
  "livemode": false,
  "name": "Super Product",
  "description": null,
  "images": [],
  "metadata": [],
  "created_at": 1702907011,
  "updated_at": 1702911993
}

Body parameters

name
string
required
The name of the product.
description
string
The description of the product.
images
string[]
Up to 8 URLs of images of the product.
metadata
key-value array
A Set of key-value pairs that can be used to store additional information about the product.

Returns

If the request is successful, it returns a product object.
{
  "id": "01hhyjnrdbc1xhgmd34hs1v3en",
  "entity": "product",
  "livemode": false,
  "name": "Super Product",
  "description": null,
  "images": [],
  "metadata": [],
  "created_at": 1702907011,
  "updated_at": 1702911993
}