Skip to main content
POST
/
products
/
{id}
Update a Product
curl --request POST \
  --url https://pay.chargily.net/test/api/v2/products/{id} \
  --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
}

Documentation Index

Fetch the complete documentation index at: https://dev.chargily.com/llms.txt

Use this file to discover all available pages before exploring further.

Path parameters

id
string
The ID of the product.

Body parameters

name
string
The name of the product.
description
string
The description of the product.
images
string[]
The 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 update is successful, it returns a product object with the updated information.
{
  "id": "01hhyjnrdbc1xhgmd34hs1v3en",
  "entity": "product",
  "livemode": false,
  "name": "Super Product",
  "description": null,
  "images": [],
  "metadata": [],
  "created_at": 1702907011,
  "updated_at": 1702911993
}