Product List
Get Available Products
The method for getting available products returns a collection of products divided by product types, and also returns product variants and their remaining quantity
Request
URL
https://api.belurk.com/products/get-all
Sending Method
GET
CURL
- 1.curl --location 'https://api.belurk.com/products/get-all'
- 2.--header 'x-api-token: {{API_TOKEN}}'
Successful Response
Response Status: HTTP 200 OK
- 1.{
- 2. "data": {
- 3. "ipv6": {
- 4. "name": "IPv6",
- 5. "variants": [
- 6. {
- 7. "variant_id": 88,
- 8. "period": "2 месяца",
- 9. "price": 5,
- 10. "speed": 20,
- 11. "country": "Казахстан",
- 12. "country_code": "KZ",
- 13. "country_icon": "https://storage.belurk.com/icons/iconKZ.svg",
- 14. "discount": null,
- 15. "max_quantity": 100,
- 16. }
- 17. ]
- 18. }
- 19. "ipv4_shared": {
- 20. "name": "IPv4 Shared",
- 21. "variants": [
- 22. {
- 23. "variant_id": 64,
- 24. "period": "2 месяца",
- 25. "price": 20,
- 26. "speed": 20,
- 27. "country": "Финляндия",
- 28. "country_code": "FI",
- 29. "country_icon": "https://storage.belurk.com/icons/iconFI.svg",
- 30. "discount": null,
- 31. "max_quantity": 50,
- 32. }
- 33. ]
- 34. }
- 35. "ipv4": {
- 36. "name": "IPv4",
- 37. "variants": [
- 38. {
- 39. "variant_id": 58,
- 40. "period": "3 месяца",
- 41. "price": 90,
- 42. "speed": 20,
- 43. "country": "Финляндия",
- 44. "country_code": "FI",
- 45. "country_icon": "https://storage.belurk.com/icons/iconFI.svg",
- 46. "discount": null,
- 47. "max_quantity": 100,
- 48. }
- 49. ]
- 50. }
- 51. }
- 52.}
Failure Response
Response Status: HTTP 401 Unauthorized
- 1.{
- 2. "data": null
- 3. "error": "Unauthorized"
- 4.}