16854

api-log
User-
Device Ip110.226.182.95
Request Method
POST
Endpoint
https://dev.stockflow.me/api/v1/subscribe-now
Request Headers
{
    "host": [
        "dev.stockflow.me"
    ],
    "connection": [
        "keep-alive"
    ],
    "content-length": [
        "324"
    ],
    "sec-ch-ua-platform": [
        "\"Windows\""
    ],
    "user-agent": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
    ],
    "sec-ch-ua": [
        "\"Google Chrome\";v=\"143\", \"Chromium\";v=\"143\", \"Not A(Brand\";v=\"24\""
    ],
    "content-type": [
        "application/json"
    ],
    "sec-ch-ua-mobile": [
        "?0"
    ],
    "accept": [
        "*/*"
    ],
    "origin": [
        "https://web.stockflow.me"
    ],
    "sec-fetch-site": [
        "same-site"
    ],
    "sec-fetch-mode": [
        "cors"
    ],
    "sec-fetch-dest": [
        "empty"
    ],
    "referer": [
        "https://web.stockflow.me/"
    ],
    "accept-encoding": [
        "gzip, deflate, br, zstd"
    ],
    "accept-language": [
        "en-US,en;q=0.9,hi;q=0.8"
    ]
}
Request Body
{
    "user_id": 21,
    "subscription_id": 29,
    "products": [
        {
            "product_id": 36,
            "qty": 11,
            "subscription_price": 5
        },
        {
            "product_id": 37,
            "qty": 10,
            "subscription_price": 9
        },
        {
            "product_id": 38,
            "qty": 8,
            "subscription_price": 40
        },
        {
            "product_id": 39,
            "qty": 5,
            "subscription_price": 5
        },
        {
            "product_id": 42,
            "qty": 5,
            "subscription_price": 25
        }
    ],
    "total": 84,
    "discount": 12.5
}
Response Body
{
    "success": true,
    "status": 200,
    "message": "Subscription created successfully",
    "data": {
        "user_subscription_id": 262,
        "subscription_id": "29",
        "name": "Medium Office ",
        "description": "<ul>\r\n\t<li>4 Delivery for entire month</li>\r\n\t<li>More than 25+ Office items</li>\r\n\t<li>Delivered on the 1st Sunday of the Month</li>\r\n</ul>\r\n",
        "tag": "Most Popular",
        "billing_cycle": "monthly",
        "image": "https://dev.stockflow.me/uploads/6920079b394ae.jpg",
        "has_customisation_option": true,
        "button_text": "Subscribe Now",
        "visit_in_month": "1",
        "validity": 30,
        "buffer_day": 2,
        "regular_price": "0.00",
        "final_price": "76.50",
        "is_active": true,
        "is_default": false,
        "created_at": "2025-11-21 12:02:59",
        "updated_at": "2025-12-16 11:51:18",
        "products": [
            {
                "product_id": 36,
                "name": "Omnia Photocopy A3 Paper (Ream)",
                "subscription_price": "5.50",
                "total": "5.50",
                "qty": 11,
                "discount": "0.00"
            },
            {
                "product_id": 37,
                "name": "Original Premium Color Photocopy Paper",
                "subscription_price": "9.00",
                "total": "10.00",
                "qty": 10,
                "discount": "1.00"
            },
            {
                "product_id": 38,
                "name": "Photocopy A4 Paper Brilliant (Carton)",
                "subscription_price": "32.00",
                "total": "40.00",
                "qty": 8,
                "discount": "8.00"
            },
            {
                "product_id": 39,
                "name": "3M Scotch Magic 811 Removable Tape, 3/4\" X 1296\", Clear",
                "subscription_price": "5.00",
                "total": "5.50",
                "qty": 5,
                "discount": "0.50"
            },
            {
                "product_id": 42,
                "name": "HP 652 Black Original Ink Advantage Cartridge (F6V25AE)",
                "subscription_price": "25.00",
                "total": "26.00",
                "qty": 5,
                "discount": "1.00"
            }
        ],
        "sub_total": "87.00",
        "discount": "10.50",
        "total": "76.50",
        "is_runtime_calculated": true,
        "order_id": 203,
        "order_type": "S",
        "payment_method": [
            {
                "type": "K-Net",
                "code": "K",
                "is_enable": 1,
                "icon": "https://dev.stockflow.me/images/knet.png"
            },
            {
                "type": "Visa/MasterCard",
                "code": "CC",
                "is_enable": 1,
                "icon": "https://dev.stockflow.me/images/visa.png"
            },
            {
                "type": "Apple Pay",
                "code": "PA",
                "icon": "https://dev.stockflow.me/images/apple-pay.png",
                "is_enable": 1
            },
            {
                "type": "Cash",
                "code": "C",
                "icon": "https://dev.stockflow.me/images/cash.png",
                "is_enable": 1
            }
        ],
        "shipping_addresses": []
    }
}
Response Status200
Created At2025-12-25 13:11:16