پرش به مطلب اصلی

Get Package Price Lifetime API

POST /getPackagePriceLifetime

Description

This endpoint retrieves the lifetime price of a package based on the provided group ID for the getPackagePriceLifetime query.

Request

Endpoint: /getPackagePriceLifetime

Method: POST

Body:

query getPackagePriceLifetime ($groupId: Int!) {
getPackagePriceLifetime (groupId: $groupId) {
groupId
price
}
}

GraphQL Variables:

{
"groupId": 0
}

Example Request

cURL:

curl --location 'YOUR_API_ENDPOINT' \
--header 'Content-Type: application/json' \
--data '{"query":"query getPackagePriceLifetime ($groupId: Int!) {\n getPackagePriceLifetime (groupId: $groupId) {\n groupId\n price\n }\n}","variables":{"groupId":0}}'

Response

The response will include the lifetime package price details:

  • groupId: The ID of the group for which the lifetime package price is being retrieved.
  • price: The lifetime price of the package associated with the provided group ID.

Errors

  • 404 Not Found: The provided groupId does not exist.
  • 500 Internal Server Error: Server error while processing the request.
  • 400 Bad Request: Invalid groupId provided.

Notes

  • Ensure that you provide a valid groupId to retrieve the correct lifetime package price.
  • This endpoint is specifically for retrieving lifetime pricing information. Verify any differences from other package price endpoints.
  • Lifetime prices are generally fixed and may not change frequently. Confirm the latest pricing information to ensure accuracy.
  • If you encounter issues, verify that the groupId exists and is correctly provided.