{"_id":"58112e72ded0340f0085d042","user":"55253acaf0f4610d00f7193f","project":"551e85be610f400d00837db7","parentDoc":null,"__v":0,"category":{"_id":"58112e72ded0340f0085d032","project":"551e85be610f400d00837db7","__v":0,"version":"58112e71ded0340f0085d02a","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-17T19:28:09.961Z","from_sync":false,"order":7,"slug":"merchant-api-methods","title":"Merchant API Methods"},"version":{"_id":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":4,"createdAt":"2016-10-26T22:30:09.862Z","releaseDate":"2016-10-26T22:30:09.862Z","categories":["58112e72ded0340f0085d02b","58112e72ded0340f0085d02c","58112e72ded0340f0085d02d","58112e72ded0340f0085d02e","58112e72ded0340f0085d02f","58112e72ded0340f0085d030","58112e72ded0340f0085d031","58112e72ded0340f0085d032","58112e72ded0340f0085d033","58112e72ded0340f0085d034","581137cc604d3c230048b7e4","58dc367221742d0f00a73f98","590768e54669da0f00db5c0b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"new designer","version_clean":"2.0.0","version":"2.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-11T16:53:44.699Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"The following methods operate on the [Shipment Batch](doc:shipment-batches) resource.\n\n# List all shipment_batches\n[block:html]\n{\n  \"html\": \"<div class=\\\"endpoint list\\\">\\n  <span class=\\\"method get\\\">GET</span>\\n  <span class=\\\"uri\\\">\\n    http://api.cratejoy.com/v1/shipment_batches/\\n  </span>\\n</div>\"\n}\n[/block]\n# List Carts\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$.get('https://api.cratejoy.com/v1/shipment_batches/');\",\n      \"language\": \"javascript\",\n      \"name\": \"List\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"count\\\": 1,\\n  \\\"next\\\": null,\\n  \\\"prev\\\": null,\\n  \\\"results\\\": [{\\n    'end': '2016-07-04T00:00:00Z', \\n    'start': '2016-06-04T00:00:00Z', \\n    'end_inclusive': '2016-07-03T00:00:00Z', \\n    'product_billing_id': 84, \\n    'type': 'shipping_batch', \\n    'id': 108\\n  }]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Response: 200 OK\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"shipment-batch-methods","type":"basic","title":"Shipment Batch Methods"}

Shipment Batch Methods


The following methods operate on the [Shipment Batch](doc:shipment-batches) resource. # List all shipment_batches [block:html] { "html": "<div class=\"endpoint list\">\n <span class=\"method get\">GET</span>\n <span class=\"uri\">\n http://api.cratejoy.com/v1/shipment_batches/\n </span>\n</div>" } [/block] # List Carts [block:code] { "codes": [ { "code": "$.get('https://api.cratejoy.com/v1/shipment_batches/');", "language": "javascript", "name": "List" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"count\": 1,\n \"next\": null,\n \"prev\": null,\n \"results\": [{\n 'end': '2016-07-04T00:00:00Z', \n 'start': '2016-06-04T00:00:00Z', \n 'end_inclusive': '2016-07-03T00:00:00Z', \n 'product_billing_id': 84, \n 'type': 'shipping_batch', \n 'id': 108\n }]\n}", "language": "json", "name": "Response: 200 OK" } ] } [/block]