Skip to main content
POST
https://pay.chargily.net/test/api/v2
/
prices
/
{id}
Update a price
curl --request POST \
  --url https://pay.chargily.net/test/api/v2/prices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": [
    {}
  ]
}
'
{
  "id": "01hhy57e5j3xzce7ama8gtk7m0",
  "entity": "price",
  "livemode": false,
  "amount": 200,
  "currency": "dzd",
  "metadata": null,
  "created_at": 1702892910,
  "updated_at": 1702892910,
  "product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}

Path parameters

id
string
The ID of the price.

Body parameters

metadata
array
A Set of key-value pairs that can be used to store additional information about the price.

Returns

If the update is successful, it returns a price object with the updated information.
{
  "id": "01hhy57e5j3xzce7ama8gtk7m0",
  "entity": "price",
  "livemode": false,
  "amount": 200,
  "currency": "dzd",
  "metadata": null,
  "created_at": 1702892910,
  "updated_at": 1702892910,
  "product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}