curl --request GET \
--url https://pay.chargily.net/test/api/v2/prices \
--header 'Authorization: Bearer <token>'
{
"livemode": false,
"current_page": 1,
"data": [
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
},
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}
],
"first_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"last_page": 1,
"last_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"next_page_url": null,
"path": "https://pay.chargily.net/test/api/v2/customers",
"per_page": 10,
"prev_page_url": null,
"total": 2
}
Returns a list of all your prices.
curl --request GET \
--url https://pay.chargily.net/test/api/v2/prices \
--header 'Authorization: Bearer <token>'
{
"livemode": false,
"current_page": 1,
"data": [
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
},
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}
],
"first_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"last_page": 1,
"last_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"next_page_url": null,
"path": "https://pay.chargily.net/test/api/v2/customers",
"per_page": 10,
"prev_page_url": null,
"total": 2
}
per_page
value.
{
"livemode": false,
"current_page": 1,
"data": [
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
},
{
"id": "01hhy57e5j3xzce7ama8gtk7m0",
"entity": "price",
"amount": 200,
"currency": "dzd",
"metadata": null,
"created_at": 1702892910,
"updated_at": 1702892910,
"product_id": "01hhy57dnhxf6pq4zcmw7tjnp6"
}
],
"first_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"last_page": 1,
"last_page_url": "https://pay.chargily.net/test/api/v2/customers?page=1",
"next_page_url": null,
"path": "https://pay.chargily.net/test/api/v2/customers",
"per_page": 10,
"prev_page_url": null,
"total": 2
}