﻿{"openapi":"3.0.0","info":{"title":"OneStall Cargo API","version":"1.0.0","description":"API reference for integrating OneStall Cargo logistics into your application."},"servers":[{"url":"https:\/\/api.onestallcargo.com\/api"}],"paths":{"\/v1\/user":{"get":{"summary":"Verify Authentication & Profile","description":"Test your API Bearer token, verify your authenticated seller account, check wallet balance, KYC verification status, and registered merchant details.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/external\/rate":{"post":{"summary":"Calculate Shipping Rates","description":"Get real-time dynamic shipping rates based on pickup, delivery pincodes, and physical weight.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/rates":{"post":{"summary":"Courier Rates & Delivery ETA","description":"Calculate and compare real-time shipping freight charges, COD handling fees, and delivery ETAs across courier partners (Delhivery, Blue Dart, Shadowfax, Xpressbees) based on weight, dimensions, and COD invoice value.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/shipments":{"get":{"summary":"List All Shipments (Paginated)","description":"Retrieve a paginated list of all consignments created by your merchant account. Filter by status, payment mode, or creation date range.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/shipments\/{awb}":{"get":{"summary":"Track Shipment by AWB Number","description":"Retrieve real-time tracking status, courier transit milestones, hub scan logs, out-for-delivery status, and delivery confirmation by AWB number.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/shipments\/{awb}\/cancel":{"post":{"summary":"Cancel Shipment & Auto Refund","description":"Cancel an unpicked or manifested shipment. The total booking fee deducted during creation is instantly credited back into your merchant wallet.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/external\/serviceability":{"post":{"summary":"Pincode Serviceability & Reach","description":"Check whether a 6-digit Indian postal pincode is covered by OneStall Cargo nationwide fulfillment network and whether Cash on Delivery (COD) is available.","responses":{"200":{"description":"Successful operation"}}}},"\/v1\/integrations\/{platform}\/webhook\/{user_id}":{"post":{"summary":"E-Commerce Store Order Webhook","description":"Receive automated incoming order creation webhooks from Shopify, WooCommerce, or custom storefronts to instantly generate shipments and manifest labels.","responses":{"200":{"description":"Successful operation"}}}}}}