GET
/
packages
/
{package_id}
/
purchases
/
{purchase_id}
Get a package purchase
curl --request GET \
  --url https://{your-workspace}.neetocal.com/api/external/v1/packages/{package_id}/purchases/{purchase_id} \
  --header 'X-Api-Key: <x-api-key>'
{
  "purchase": {
    "id": "1b217cc5-69b5-4fb1-a13c-c22f9c14e7f9",
    "name": "John Doe",
    "email": "john@example.com",
    "purchase_code": "PUR-123456",
    "duration_remaining": 3600,
    "status": "confirmed",
    "notes": "Customer requested priority support",
    "package_id": "aff17ff8-1bf8-4e77-a3c5-2f86104f9a20",
    "duration": 7200,
    "created_at": "2023-12-01T10:00:00Z",
    "updated_at": "2023-12-01T10:30:00Z",
    "payment": {
      "amount": "120.0",
      "currency": "inr",
      "status": "successful",
      "payment_at": "2023-12-01T10:30:00Z"
    }
  }
}
Replace {your-workspace} with your workspace’s subdomain.
Learn how to find your subdomain in Identifying your subdomain.

Headers

X-Api-Key
string
required

X-Api-Key is used to authenticate requests using an API key. Provide your API key in this header to access protected endpoints. Refer to Authentication for more information.

Path Parameters

package_id
string
required

Id of the package. You can get package_id by listing all packages using our List all packages API. Here you will see id for each package.

purchase_id
string
required

Id of the purchase to retrieve. You can get purchase_id by listing purchases for a package using our List package purchases API. Here you will see id for each purchase.

Response

200 - application/json

OK - Request succeeded

The response is of type object.