Let’s now create a Price for the Product you previously created.
<YOUR_SECRET_KEY_HERE>
curl --request POST \ --url https://pay.chargily.net/test/api/v2/prices \ --header 'Authorization: Bearer <YOUR_SECRET_KEY_HERE>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 5000, "currency": "dzd", "product_id": "01hhyjnrdbc1xhgmd34hs1v3en" }'
{ "id": "01hhy57e5j3xzce7ama8gtk7m0", "entity": "price", "livemode": false, "amount": 5000, "currency": "dzd", "metadata": null, "created_at": 1702892910, "updated_at": 1702892910, "product_id": "01hhyjnrdbc1xhgmd34hs1v3en" }