{
    "info": {
        "name": "Adolfjon API v1",
        "_postman_id": "adolfjon-api-v1",
        "description": "Read-only API for Adolfjon.uz. Set the apiKey variable to your ak_test_ or ak_live_ key. Docs: https://dev.adolfjon.uz/docs",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{apiKey}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://dev.adolfjon.uz"
        },
        {
            "key": "apiKey",
            "value": "ak_test_YOUR_KEY"
        }
    ],
    "item": [
        {
            "name": "Meta",
            "item": [
                {
                    "name": "Inspect your key",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/key",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "key"
                            ]
                        },
                        "description": "Shows the key you are calling with: mode, scopes, limits, usage today and expiry. Needs no permission. A good first call.\n\nDocs: https://dev.adolfjon.uz/docs/api/key"
                    }
                },
                {
                    "name": "Ping",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/ping",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "ping"
                            ]
                        },
                        "description": "Health check. No key needed. Limited to 60 calls per minute per IP.\n\nDocs: https://dev.adolfjon.uz/docs/api/ping",
                        "auth": {
                            "type": "noauth"
                        }
                    }
                }
            ]
        },
        {
            "name": "Catalog",
            "item": [
                {
                    "name": "List categories",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/catalog/categories",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "catalog",
                                "categories"
                            ],
                            "query": [
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language of names. Default en.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "All store categories that are on, with the number of products on sale in each.\n\nPermission: catalog:read\n\nDocs: https://dev.adolfjon.uz/docs/api/categories"
                    }
                },
                {
                    "name": "List products",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/catalog/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "catalog",
                                "products"
                            ],
                            "query": [
                                {
                                    "key": "category",
                                    "value": "",
                                    "description": "Only this category id.",
                                    "disabled": true
                                },
                                {
                                    "key": "type",
                                    "value": "",
                                    "description": "Only this product type.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Items per page, 1 to 100. Default 20.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "meta.next_cursor from the previous page.",
                                    "disabled": true
                                },
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language of titles and texts. Default en.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Products on sale, newest first. Prices are the public price in UZS, including active sales.\n\nPermission: catalog:read\n\nDocs: https://dev.adolfjon.uz/docs/api/products"
                    }
                },
                {
                    "name": "Get a product",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/catalog/products/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "catalog",
                                "products",
                                ":id"
                            ],
                            "query": [
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language. Default en.",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "341",
                                    "description": "Product id."
                                }
                            ]
                        },
                        "description": "One product by id. Returns not_found when it is hidden or sold out for good.\n\nPermission: catalog:read\n\nDocs: https://dev.adolfjon.uz/docs/api/product"
                    }
                },
                {
                    "name": "List news",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/news",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "news"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Items per page, 1 to 100. Default 20.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "meta.next_cursor from the previous page.",
                                    "disabled": true
                                },
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language of titles and texts. Default en.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Published news posts, newest first.\n\nPermission: catalog:read\n\nDocs: https://dev.adolfjon.uz/docs/api/news"
                    }
                }
            ]
        },
        {
            "name": "Account",
            "item": [
                {
                    "name": "Your profile",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me"
                            ]
                        },
                        "description": "The account that owns the key. No email, phone or login details are ever returned.\n\nPermission: account:read\n\nDocs: https://dev.adolfjon.uz/docs/api/me"
                    }
                },
                {
                    "name": "Your balance",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/balance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "balance"
                            ]
                        },
                        "description": "Current balance in UZS.\n\nPermission: balance:read\n\nDocs: https://dev.adolfjon.uz/docs/api/balance"
                    }
                },
                {
                    "name": "Balance history",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/balance/transactions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "balance",
                                "transactions"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Items per page, 1 to 100. Default 20.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "meta.next_cursor from the previous page.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Every change to your balance, newest first. type is topup, purchase, refund or adjustment. amount is negative when money left the balance.\n\nPermission: balance:read\n\nDocs: https://dev.adolfjon.uz/docs/api/transactions"
                    }
                },
                {
                    "name": "Your orders",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/orders",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "orders"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Items per page, 1 to 100. Default 20.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "meta.next_cursor from the previous page.",
                                    "disabled": true
                                },
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language of titles and texts. Default en.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Your store orders, newest first. Order info only: delivered items (keys, logins, codes) are never returned by the API.\n\nPermission: orders:read\n\nDocs: https://dev.adolfjon.uz/docs/api/orders"
                    }
                },
                {
                    "name": "Get an order",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/orders/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "orders",
                                ":id"
                            ],
                            "query": [
                                {
                                    "key": "lang",
                                    "value": "en",
                                    "description": "Language. Default en.",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "TST000503",
                                    "description": "Order number, e.g. A7K2M9."
                                }
                            ]
                        },
                        "description": "One of your orders by its order number (the id field of the list).\n\nPermission: orders:read\n\nDocs: https://dev.adolfjon.uz/docs/api/order"
                    }
                },
                {
                    "name": "Your plan",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/licenses",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "licenses"
                            ]
                        },
                        "description": "Your VIP / LITE plan. plan is what is active right now; paid_plan and expires_at show the paid plan even after it ended.\n\nPermission: licenses:read\n\nDocs: https://dev.adolfjon.uz/docs/api/licenses"
                    }
                },
                {
                    "name": "Your Hour Boost",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/boost",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "boost"
                            ]
                        },
                        "description": "Your Hour Boost plans with hours, games (Steam app ids) and the linked account status. Read only in v1.\n\nPermission: boost:read\n\nDocs: https://dev.adolfjon.uz/docs/api/boost"
                    }
                },
                {
                    "name": "Your notifications",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/me/notifications",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "me",
                                "notifications"
                            ],
                            "query": [
                                {
                                    "key": "unread",
                                    "value": "",
                                    "description": "Only unread ones.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit",
                                    "value": "20",
                                    "description": "Items per page, 1 to 100. Default 20.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "meta.next_cursor from the previous page.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Site notifications, newest first. Reading them here does not mark them as read.\n\nPermission: notifications:read\n\nDocs: https://dev.adolfjon.uz/docs/api/notifications"
                    }
                }
            ]
        }
    ]
}