api-log
| User | - |
|---|---|
| Device Ip | 110.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": [
"175"
],
"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": 26,
"products": [
{
"product_id": 45,
"qty": 1,
"subscription_price": 4.5
},
{
"product_id": 50,
"qty": 1,
"subscription_price": 3.5
}
],
"total": 8,
"discount": 0.6
} |
| Response Body | {
"success": true,
"status": 200,
"message": "Subscription created successfully",
"data": {
"user_subscription_id": 263,
"subscription_id": "26",
"name": "Small Officeeee",
"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": "Regular",
"billing_cycle": "monthly",
"image": "https://dev.stockflow.me/uploads/69157854d45b4.png",
"has_customisation_option": true,
"button_text": "Subscribe Now",
"visit_in_month": "1",
"validity": 30,
"buffer_day": 2,
"regular_price": "0.00",
"final_price": "8.00",
"is_active": true,
"is_default": false,
"created_at": "2025-11-13 11:19:00",
"updated_at": "2025-12-23 18:34:51",
"products": [
{
"product_id": 45,
"name": "Kangaro Heavy Duty Stapler HD-23S13",
"subscription_price": "4.50",
"total": "4.80",
"qty": 1,
"discount": "0.30"
},
{
"product_id": 50,
"name": "Pilot White Board Marker Blue",
"subscription_price": "3.50",
"total": "3.80",
"qty": 1,
"discount": "0.30"
}
],
"sub_total": "8.60",
"discount": "0.60",
"total": "8.00",
"is_runtime_calculated": true,
"order_id": 204,
"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 Status | 200 |
| Created At | 2025-12-25 13:11:21 |