{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/labels/purchase.json","auth":"required","settings":"","examples":{"codes":[{"language":"curl","code":"curl --location --request POST 'https://tophatter.com/merchant_api/v1/labels/purchase.json' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n   \"orders\":[\n      {\n         \"id\":6254,\n         \"combined_order_ids\": [6266, 6277],\n         \"weight\":3.5,\n         \"product_code\":\"29\",\n         \"shipping_date\":\"2021-10-10\"\n      },\n      {\n         \"id\":6255,\n         \"weight\":2.5,\n         \"product_code\":\"29\",\n         \"shipping_date\":\"2021-10-10\"\n      }\n   ],\n   \"callback_url\":\"https://webhook.site/2d004fcb-f649-4d4e-b3e0-86bc87455991\",\n   \"access_token\":\"YOUR_ACCESS_TOKEN\"\n}'"}]},"method":"post","params":[{"name":"orders","type":"array_object","default":"","desc":"Order details to estimate the shipping cost","required":true,"in":"body","ref":"","_id":"5772e233dceb570e003a91ca"},{"name":"access_token","type":"string","default":"","desc":"Your Access Token for accessing Tophatter APIs","required":true,"in":"body","ref":"","_id":"5834b49e10b9b40f006a7c88"},{"name":"callback_url","type":"string","default":"","desc":"An endpoint to post the label purchase status details","required":true,"in":"body","ref":"","_id":"61829e9669970a05dfed9253"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n    \"request_id\": \"046efa16-a1f2-4aa0-b28c-a63d83512059\"\n}","name":""}]}},"next":{"description":"","pages":[]},"title":"Purchase","type":"endpoint","slug":"purchase","excerpt":"","body":"","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61829e9669970a05dfed9250","createdAt":"2021-11-03T14:37:10.359Z","user":"567f0baca74a1c0d003e1fba","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Labels","slug":"labels","order":9999,"from_sync":false,"reference":false,"_id":"60f505090c9c97000f61acce","createdAt":"2021-07-19T04:52:25.264Z","version":"567f0c06143cc60d00c1fdc1","project":"567f0c06143cc60d00c1fdbe","__v":0},"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["567f0c07143cc60d00c1fdc2","56a9783109cb9c0d00f0c7d3","56a97837f834950d0037b363","56a9783b2d8fd90d0036eed6","56a979912d8fd90d0036eed8","5834b5691a80690f00d31faf","5834b5e4f775120f00c45f9d","5bf1a1473031e4005075ae14","5c64c200244bda003204b97f","6036b3ce32fcbe02eb8d7011","60f505090c9c97000f61acce"],"_id":"567f0c06143cc60d00c1fdc1","__v":11,"createdAt":"2015-12-26T21:52:06.734Z","releaseDate":"2015-12-26T21:52:06.734Z","project":"567f0c06143cc60d00c1fdbe"},"project":"567f0c06143cc60d00c1fdbe","__v":1,"parentDoc":null}