{ "opencollection": "1.0.0", "info": { "name": "Admin Account / Address Line Items API", "version": "v3" }, "items": [ { "info": { "name": "Line Items", "type": "folder" }, "items": [ { "info": { "name": "Return a list of Line Items", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/line_items", "params": [ { "name": "page", "value": "1", "type": "query" }, { "name": "per_page", "value": "50", "type": "query" }, { "name": "include", "value": "order,tax_category,variant.product,digital_links", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" }, { "name": "filter[order_id_eq]", "value": "123", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a list of Line Items" }, { "info": { "name": "Create a Line Item", "type": "http" }, "http": { "method": "POST", "url": "http://{defaultHost}/api/v2/platform/line_items", "params": [ { "name": "include", "value": "order,tax_category,variant.product,digital_links", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a Line Item" }, { "info": { "name": "Return a Line Item", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/line_items/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "order,tax_category,variant.product,digital_links", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a Line Item" }, { "info": { "name": "Update a Line Item", "type": "http" }, "http": { "method": "PATCH", "url": "http://{defaultHost}/api/v2/platform/line_items/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "order,tax_category,variant.product,digital_links", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates a Line Item" }, { "info": { "name": "Delete a Line Item", "type": "http" }, "http": { "method": "DELETE", "url": "http://{defaultHost}/api/v2/platform/line_items/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a Line Item" } ] } ], "bundled": true }