Prices
Retrieve a price
- Documentation
- API Reference
- Community
- The Customer object
- POSTCreate a customer
- POSTUpdate a customer
- GETRetrieve a customer
- GETList all customers
- DELDelete a customer
- The Product object
- POSTCreate a product
- POSTUpdate a Product
- GETRetrieve a product
- GETList all products
- DELDelete a product
- GETRetrieve a products's prices
Customers
Products
Prices
Retrieve a price
Retrieves all the information of an already-existing price by providing it’s unique identifier (ID).
GET
/
prices
/
{id}
Authorization
string
*
Bearer
Authorization
Required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
id
string
id
string
The ID of the price.
curl --request GET \
--url https://pay.chargily.net/test/api/v2/prices/{id} \
--header 'Authorization: Bearer <token>'
{
"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.
Returns
If a valid ID is provided, it returns a price object.
curl --request GET \
--url https://pay.chargily.net/test/api/v2/prices/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"livemode": false,
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}