{ "opencollection": "1.0.0", "info": { "name": "SamCart Public Charges Orders API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "sc-api", "value": "{{sc-api}}", "placement": "header" } }, "items": [ { "info": { "name": "Orders", "type": "folder" }, "items": [ { "info": { "name": "List orders", "type": "http" }, "http": { "method": "GET", "url": "https://api.samcart.com/v1/orders", "params": [ { "name": "start_date", "value": "", "type": "query", "description": "Start of the date range filter (ISO 8601)." }, { "name": "end_date", "value": "", "type": "query", "description": "End of the date range filter (ISO 8601)." }, { "name": "funnel_id", "value": "", "type": "query", "description": "Filter orders to a specific funnel / upsell source." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of records to return per page." }, { "name": "offset", "value": "", "type": "query", "description": "Number of records to skip for pagination." } ] }, "docs": "Returns all orders within the specified parameters. Supports filtering by date range and by funnel / upsell source, plus pagination." }, { "info": { "name": "Get an order", "type": "http" }, "http": { "method": "GET", "url": "https://api.samcart.com/v1/orders/:order_id", "params": [ { "name": "order_id", "value": "", "type": "path", "description": "The ID of the order." } ] }, "docs": "Retrieves an individual order by ID." }, { "info": { "name": "Update order custom fields", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.samcart.com/v1/orders/:order_id", "params": [ { "name": "order_id", "value": "", "type": "path", "description": "The ID of the order." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates order-level and upsell custom fields on an existing order." } ] } ], "bundled": true }