curl --request GET \
--url https://{workspace}.neetocal.com/api/external/v1/packages/{package_id} \
--header 'X-Api-Key: <x-api-key>'
{
"package": {
"id": "aff17ff8-1bf8-4e77-a3c5-2f86104f9a20",
"name": "Consultation Package",
"slug": "consultation-package",
"status": "enabled",
"duration": 7200,
"fee": {
"id": "1b217cc5-69b5-4fb1-a13c-c22f9c14e7f9",
"amount": "120.0",
"currency": "inr",
"feeable_id": "aff17ff8-1bf8-4e77-a3c5-2f86104f9a20",
"feeable_type": "Package",
"payment_provider": "cash",
"kind": "fixed",
"min_amount": "120.0",
"taxes": [
{}
],
"is_default": true,
"display_amount": "<string>",
"is_tax_enabled": true,
"is_tip_enabled": true,
"is_tax_applicable_on_tip": true,
"vpas": [
{}
],
"amount_in_smallest_currency_unit": 12000
}
}
}
This API allows to get a package.
curl --request GET \
--url https://{workspace}.neetocal.com/api/external/v1/packages/{package_id} \
--header 'X-Api-Key: <x-api-key>'
{
"package": {
"id": "aff17ff8-1bf8-4e77-a3c5-2f86104f9a20",
"name": "Consultation Package",
"slug": "consultation-package",
"status": "enabled",
"duration": 7200,
"fee": {
"id": "1b217cc5-69b5-4fb1-a13c-c22f9c14e7f9",
"amount": "120.0",
"currency": "inr",
"feeable_id": "aff17ff8-1bf8-4e77-a3c5-2f86104f9a20",
"feeable_type": "Package",
"payment_provider": "cash",
"kind": "fixed",
"min_amount": "120.0",
"taxes": [
{}
],
"is_default": true,
"display_amount": "<string>",
"is_tax_enabled": true,
"is_tip_enabled": true,
"is_tax_applicable_on_tip": true,
"vpas": [
{}
],
"amount_in_smallest_currency_unit": 12000
}
}
}
{your-workspace}
with your workspace’s subdomain. Bearer token for API access.
Id of the package to retrieve.
OK - Request succeeded
The response is of type object
.