{
    "name": "Trustfull API",
    "version": "1.0.0",
    "description": "API for managing orders programmatically",
    "documentation": "https:\/\/api.fultrustglobal.com\/README.md",
    "base_url": "https:\/\/api.fultrustglobal.com\/v1",
    "authentication": {
        "type": "Bearer Token",
        "header": "Authorization: Bearer YOUR_API_TOKEN",
        "how_to_get_token": "Login to your Trustfull account and visit Settings > D\u00e9veloppeurs API to generate a token"
    },
    "endpoints": [
        {
            "method": "GET",
            "path": "\/v1\/stores",
            "description": "Get list of user's accessible stores",
            "scope": "orders:read or orders:create"
        },
        {
            "method": "GET",
            "path": "\/v1\/cities",
            "description": "Get cities for user's delivery company",
            "scope": "orders:read or orders:create"
        },
        {
            "method": "GET",
            "path": "\/v1\/statuses",
            "description": "Get list of available order statuses",
            "scope": "orders:read or orders:create"
        },
        {
            "method": "GET",
            "path": "\/v1\/products",
            "description": "List all products with SKU and quantity",
            "scope": "orders:read or orders:create"
        },
        {
            "method": "GET",
            "path": "\/v1\/products?sku={sku}",
            "description": "Get product details by SKU",
            "scope": "orders:read or orders:create"
        },
        {
            "method": "POST",
            "path": "\/v1\/orders",
            "description": "Create a new order (use product SKU, not ID)",
            "scope": "orders:create"
        },
        {
            "method": "GET",
            "path": "\/v1\/orders?id={order_id}",
            "description": "Get order details by ID",
            "scope": "orders:read"
        }
    ],
    "rate_limits": {
        "requests_per_minute": 60,
        "requests_per_hour": 1000
    },
    "support": {
        "documentation": "https:\/\/api.fultrustglobal.com\/developers.php"
    }
}