{"info":{"_postman_id":"61c14f3d-9a74-4f05-9c13-bf56a3054701","name":"Vendors API (deprecated)","description":"<html><head></head><body><h1 id=\"public-corporategiftcom-api\">Public CorporateGift.com API</h1>\n<p>Receive, process, and manage Corporategift.com orders through our Order Management API.</p>\n<p>Corporategift.com authenticates your API requests using your account’s API token. If you do not include your key when making an API request, or use one that is incorrect or outdated, API returns an error.</p>\n<p>Every account is provided a token that can be obtained from the vendor rep.</p>\n<p>General API urls:</p>\n<p>Production:<br><a href=\"https://api.corporategift.com/api/\">https://api.corporategift.com/api/</a></p>\n<p>Test:<br><a href=\"https://api.staging.corporategift.com/api/\">https://api.staging.corporategift.com/api/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Public CorporateGift.com API","slug":"public-corporategiftcom-api"}],"owner":"7014849","collectionId":"61c14f3d-9a74-4f05-9c13-bf56a3054701","publishedId":"TzCV1ijF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-08-16T08:47:06.000Z"},"item":[{"name":"Orders","item":[{"name":"Get Order By ID","id":"f7ac83b4-fe02-49aa-9a56-04aaab92f95d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{api_base_url}}/api/shared/orders/100153957","description":"<p>This request allows the vendor to get specific order details (with the products assigned to the vendor) using the order ID parameter.</p>\n<p><strong>Example</strong></p>\n<p>https://api.corporategift.com/api/shared/orders/ID</p>\n\n<p>curl --location --request GET 'https://api.staging.corporategift.com/api/shared/orders/100044084' \\</p>\n\n<p>--header 'Content-Type: application/json' \\</p>\n\n<p>--header 'Accept: application/json' \\</p>\n\n<p>--header 'Authorization: Bearer 7042|UyGBRKexqiLvYqSuoMdm9WIsZQEWo8CDLIiTSSju' \\</p>\n\n<p>--header 'Cookie: frontend=b75n6aptv651d9c8rbf35ed9r5; google_csrf=b338fcf2f89045ec5e59ada3af155583'</p>\n\n<p>We will Return:  </p>\n<table><tbody><tr><td><p>Field</p></td><td><p>Description</p></td><td><p>Type</p></td></tr><tr><td><p>data</p></td><td><p>Main response container.</p></td><td><p>object</p></td></tr><tr><td><p>data.id</p></td><td><p>Current order ID.</p></td><td><p>int</p></td></tr><tr><td><p>data.name</p></td><td><p>Order name.</p></td><td><p>string</p></td></tr><tr><td><p>data.created_at</p></td><td><p>Order creation date.</p></td><td><p>string</p></td></tr><tr><td><p>data.shipping_method</p></td><td><p>Method of shipping. If different shipment methods were chosen, returns \"Vendor Shipping\" and each order item gets its own shipping_method parameter.</p></td><td><p>string</p></td></tr><tr><td><p>data.shipping_arrival_date</p></td><td><p>Date of shipment arrival.</p></td><td><p>string</p></td></tr><tr><td><p>data.is_paid</p></td><td><p>Payment status indicator.</p></td><td><p>boolean</p></td></tr><tr><td><p>data.is_fully_shipped</p></td><td><p>Shipment status indicator. Returns true if every order product was sent.</p></td><td><p>boolean</p></td></tr><tr><td><p>data.is_partially_shipped</p></td><td><p>Shipment status indicator. Returns true if at least one order product was sent and no everything was sent.</p></td><td><p>boolean</p></td></tr><tr><td><p>data.gift_message</p></td><td><p>Gift message.</p></td><td><p>string</p></td></tr><tr><td><p>data.address</p></td><td><p>Address data container.</p></td><td><p>object</p></td></tr><tr><td><p>data.address.firstname</p></td><td><p>Recipient first name.</p></td><td><p>string</p></td></tr><tr><td><p>data.address.lastname</p></td><td><p>Recipient last name.</p></td><td><p>string</p></td></tr><tr><td><p>data.address.country</p></td><td><p>Recipient country code.</p></td><td><p>string</p></td></tr><tr><td><p>data.address.postcode</p></td><td><p>Recipient postcode.</p></td><td><p>string</p></td></tr><tr><td><p>data.address.city</p></td><td><p>Recipient city.</p></td><td><p>string</p></td></tr><tr><td><p>data.address.street</p></td><td><p>Recipient street.</p></td><td><p>string</p></td></tr><tr><td><p>data.items</p></td><td><p>Product items container.</p></td><td><p>object</p></td></tr><tr><td><p>data.items.sku</p></td><td><p>Product SKU code.</p></td><td><p>string</p></td></tr><tr><td><p>data.items.name</p></td><td><p>Product name.</p></td><td><p>string</p></td></tr><tr><td><p>data.items.qty</p></td><td><p>Ordered product quantity.</p></td><td><p>int</p></td></tr><tr><td><p>data.items.gift_message</p></td><td><p>Gift message.</p></td><td><p>string</p></td></tr><tr><td><p>data.items.options</p></td><td><p>Product options container.</p></td><td><p>array</p></td></tr><tr><td><p>data.items.options.label</p></td><td><p>Option label.</p></td><td><p>string</p></td></tr><tr><td><p>data.items.options.value</p></td><td><p>Option value.</p></td><td><p>string</p></td></tr></tbody></table>","urlObject":{"path":["api","shared","orders","100153957"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7ac83b4-fe02-49aa-9a56-04aaab92f95d"},{"name":"Get Orders List","id":"ff5b36a2-f7e6-47df-a723-5c9b55a8026f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{api_base_url}}/api/shared/orders?visibility=all&page=1&per_page=15","description":"<p><strong>This request allows the vendor to get a detailed list of orders containing the vendor’s products.</strong></p>\n<p><strong>Example</strong></p>\n<p><a href=\"https://api.corporategift.com/api/shared/orders?date_from=2021-03-01&amp;date_to=2021-04-09&amp;page=1\">https://api.corporategift.com/api/shared/orders?date_from=2021-03-01&amp;date_to=2021-04-09&amp;page=1</a></p>\n<p>url --location --request GET '<a href=\"https://api.staging.corporategift.com/api/shared/orders?date_from=2016-10-16&amp;date_to=2016-10-18&amp;page=1'\">https://api.staging.corporategift.com/api/shared/orders?date_from=2016-10-16&amp;date_to=2016-10-18&amp;page=1'</a><br />--header 'Accept: application/json'<br />--header 'Authorization: Bearer 7042|UyGBRKexqiLvYqSuoMdm9WIsZQEWo8CDLIiTSSju'<br />--header 'Cookie: frontend=b75n6aptv651d9c8rbf35ed9r5; google_csrf=b338fcf2f89045ec5e59ada3af155583'</p>\n<p>Search query parameters in url</p>\n\n<ul><li><p>date_from - Define the date when the earliest order you want to show was created. To show all orders, leave this empty.</p></li><li><p>date_to - Define the date when the oldest order you want to show was created. To show all orders, leave this empty.</p></li><li><p>page - By default, we show 50 orders per page (to save sending and receiving time). You may switch between pages, defining page param<a href=\"#cmnt1\">[a]</a>. Set its value from 1 to n. The pages count (and link to previous and next one) you will get with each response.</p></li></ul>\n\n<p><strong>We Will Return:</strong></p>\n<table><tbody><tr><td><p>Field</p></td><td><p>Description</p></td><td><p>Type</p></td></tr><tr><td><p>data</p></td><td><p>Main response container.</p></td><td><p>array</p></td></tr><tr><td><p>data[].id</p></td><td><p>Current order ID.</p></td><td><p>int</p></td></tr><tr><td><p>data[].name</p></td><td><p>Order name.</p></td><td><p>string</p></td></tr><tr><td><p>data[].created_at</p></td><td><p>Order creation date.</p></td><td><p>string</p></td></tr><tr><td><p>data[].shipping_method</p></td><td><p>Method of shipping. If different shipment methods were chosen, returns \"Vendor Shipping\" and each order item gets its own shipping_method parameter.</p></td><td><p>string</p></td></tr><tr><td><p>data[].shipping_arrival_date</p></td><td><p>Date of shipment arrival.</p></td><td><p>string</p></td></tr><tr><td><p>data[].is_paid</p></td><td><p>Payment status indicator.</p></td><td><p>boolean</p></td></tr><tr><td><p>data[].is_fully_shipped</p></td><td><p>Shipment status indicator. Returns true if every order product was sent.</p></td><td><p>boolean</p></td></tr><tr><td><p>data[].is_partially_shipped</p></td><td><p>Shipment status indicator. Returns true if at least one order product was sent and no everything was sent.</p></td><td><p>boolean</p></td></tr><tr><td><p>data[].gift_message</p></td><td><p>Gift message.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address</p></td><td><p>Address data container.</p></td><td><p>object</p></td></tr><tr><td><p>data[].address.firstname</p></td><td><p>Recipient first name.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address.lastname</p></td><td><p>Recipient last name.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address.country</p></td><td><p>Recipient country code.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address.postcode</p></td><td><p>Recipient postcode.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address.city</p></td><td><p>Recipient city.</p></td><td><p>string</p></td></tr><tr><td><p>data[].address.street</p></td><td><p>Recipient street.</p></td><td><p>string</p></td></tr><tr><td><p>data[].items</p></td><td><p>Product items container.</p></td><td><p>object</p></td></tr><tr><td><p>data[].items.sku</p></td><td><p>Product SKU code.</p></td><td><p>string</p></td></tr><tr><td><p>data[].items.name</p></td><td><p>Product name.</p></td><td><p>string</p></td></tr><tr><td><p>data[].items.qty</p></td><td><p>Ordered product quantity.</p></td><td><p>int</p></td></tr><tr><td><p>data[].items.gift_message</p></td><td><p>Gift message.</p></td><td><p>string</p></td></tr><tr><td><p>data[].items.options</p></td><td><p>Product options container.</p></td><td><p>array</p></td></tr><tr><td><p>data[].items.options.label</p></td><td><p>Option label.</p></td><td><p>string</p></td></tr><tr><td><p>data[].items.options.value</p></td><td><p>Option value.</p></td><td><p>string</p></td></tr><tr><td><p>links</p></td><td><p>Pagination links container.</p></td><td><p>object</p></td></tr><tr><td><p>links.first</p></td><td><p>First results page.</p></td><td><p>string</p></td></tr><tr><td><p>links.last</p></td><td><p>Last results page.</p></td><td><p>string</p></td></tr><tr><td><p>links.prev</p></td><td><p>Previous results page.</p></td><td><p>string</p></td></tr><tr><td><p>links.next</p></td><td><p>Next results page.</p></td><td><p>string</p></td></tr><tr><td><p>meta</p></td><td><p>Metadata container.</p></td><td><p>object</p></td></tr><tr><td><p>meta.current_page</p></td><td><p>Current page number.</p></td><td><p>int</p></td></tr><tr><td><p>meta.from</p></td><td><p>First page number.</p></td><td><p>int</p></td></tr><tr><td><p>meta.last_page</p></td><td><p>Last page number.</p></td><td><p>int</p></td></tr><tr><td><p>meta.path</p></td><td><p>Base url.</p></td><td><p>int</p></td></tr><tr><td><p>meta.per_page</p></td><td><p>Orders per page.</p></td><td><p>int</p></td></tr><tr><td><p>meta.to</p></td><td><p></p></td><td><p>int</p></td></tr><tr><td><p>meta.total</p></td><td><p>Total orders count.</p></td><td><p>int</p></td></tr><tr><td><p>meta.links</p></td><td><p>Pages links container.</p></td><td><p>array</p></td></tr><tr><td><p>meta.links[].url</p></td><td><p>Page url.</p></td><td><p>string</p></td></tr><tr><td><p>meta.links[].label</p></td><td><p>Page link label.</p></td><td><p>string</p></td></tr><tr><td><p>meta.links[].active</p></td><td><p>Link status indicator.</p></td><td><p>boolean</p></td></tr></tbody></table>","urlObject":{"path":["api","shared","orders"],"host":["{{api_base_url}}"],"query":[{"disabled":true,"key":"date_from","value":"2021-08-01"},{"disabled":true,"key":"date_to","value":"2021-08-30"},{"description":{"content":"<p>default is unshipped</p>\n","type":"text/plain"},"key":"visibility","value":"all"},{"key":"page","value":"1"},{"key":"per_page","value":"15"},{"disabled":true,"key":"order_number","value":"100093409"},{"disabled":true,"description":{"content":"","type":"text/plain"},"key":"cg_sku","value":""}],"variable":[]}},"response":[],"_postman_id":"ff5b36a2-f7e6-47df-a723-5c9b55a8026f"},{"name":"Start Handling Order","id":"57eed5b5-7d1e-40ed-a957-6b13233b344f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/shared/orders/100004378/start-handling","description":"<p>This request should be sent when the vendor starts processing a specific order.</p>\n<p><strong>Example:</strong></p>\n<p><a href=\"https://api.corporategift.com/api/shared/orders/ID/start-handling\">https://api.corporategift.com/api/shared/orders/ID/start-handling</a>\ncurl --location --request POST 'http:///api.corporategift.com/api/shared/orders/OrderID/start-handling' <br />--header 'Accept: application/json' <br />--header 'Authorization: Bearer 23500|Uea1DlXJLHnVmzxhezflE1fmMEnPqWtSkOD2W0gT' <br />--header 'Content-Type: application/json' <br />--data-raw '{\n   \"id\": \"12345\"\n}'</p>\n<p><strong>Parameters in url</strong><br /></p>\n<ul>Order ID - ID of the order to begin handling.</ul>\n\n<p><strong>Data in request body</strong><br /></p>\n<ul>id - Internal order ID assigned in the vendor’s system.\n</ul>\n\n<p><strong>We will return:</strong><br />\n{success: true | false}</p>\n","urlObject":{"path":["shared","orders","100004378","start-handling"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"57eed5b5-7d1e-40ed-a957-6b13233b344f"},{"name":"Create Shipment","id":"1d62dc97-c1cf-41c7-a1dc-f11ae2a9c123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order_id\": \"100093409\",\n    \"track_number\": \"123456\",\n    \"title\": \"ground\",\n    \"carrier_code\": \"fedex\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_base_url}}/api/shared/orders/create-shipment","description":"<p>With this request a vendor can create a new shipment for an order.</p>\n<p>Example:</p>\n<p><a href=\"https://api.corporategift.com/api/shared/orders/create-shipment\">https://api.corporategift.com/api/shared/orders/create-shipment</a>\ncurl --location --request POST '<a href=\"http://api.corporategift.com/api/shared/orders/create-shipment\">http://api.corporategift.com/api/shared/orders/create-shipment</a>' <br />--header 'Accept: application/json' <br />--header 'Content-Type: application/json' <br />--header 'Authorization: Bearer 23500|Uea1DlXJLHnVmzxhezflE1fmMEnPqWtSkOD2W0gT' <br />--data-raw '{\n   \"order_id\": \"100000819\",\n   \"track_number\": \"123456789\",\n   \"title\": \"\",\n   \"carrier_code\": \"Fedex\"\n}'</p>\n<p><strong>Data in request body</strong><br /></p>\n<ul><li>order_id - Our Order ID.</li><li>track_number - Tracking number of the created shipment.</li><li>title - Title of the shipment.</li><li>carrier_code - Name of the shipping carrier.</li></ul>\n\n<p><strong>We Will Return:</strong><br />\n{success: true | false}</p>\n","urlObject":{"path":["api","shared","orders","create-shipment"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d62dc97-c1cf-41c7-a1dc-f11ae2a9c123"},{"name":"Reject","id":"ce3fe494-f109-4fe9-9824-bd5ebe479fa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{api_url}}/shared/orders/100145851/reject","urlObject":{"path":["shared","orders","100145851","reject"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce3fe494-f109-4fe9-9824-bd5ebe479fa4"}],"id":"3d5c1931-ab19-4d6c-a3bf-899eb8195b25","description":"<p>ORDERS API</p>\n<p><b>Get</b>  - Get Order By ID<br />\n<b>Get</b>   - List Orders<br />\n<b>Post</b> - Start Handling Order<br />\n<b>Post</b> - Create Shipment for Orders<br />\n<b>Patch</b> - Reject an Order</p>\n","_postman_id":"3d5c1931-ab19-4d6c-a3bf-899eb8195b25","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"61c14f3d-9a74-4f05-9c13-bf56a3054701","id":"61c14f3d-9a74-4f05-9c13-bf56a3054701","name":"Vendors API (deprecated)","type":"collection"}}},{"name":"Inventory","item":[{"name":"Update Stock","id":"db588cc7-979c-4129-8638-f6617ad672be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"sku\": \"86-J3B5-PRT0\",\n            \"qty\": 900\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/shared/products/update-stock-level","description":"<p>Send a JSON request with parameters of your internal sku and the qty.\nIf set to 0 or negative it will go out of stock and will not be available on Corporategift.com</p>\n","urlObject":{"path":["shared","products","update-stock-level"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"db588cc7-979c-4129-8638-f6617ad672be"}],"id":"6ae0fb10-d561-44aa-8932-dd721d44d87c","description":"<p>Update inventory levels on Corporategift.com</p>\n","_postman_id":"6ae0fb10-d561-44aa-8932-dd721d44d87c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"61c14f3d-9a74-4f05-9c13-bf56a3054701","id":"61c14f3d-9a74-4f05-9c13-bf56a3054701","name":"Vendors API (deprecated)","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"94237025-d5ef-439e-9cbb-afb0dc96c1a9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"13151c76-e866-42f1-b608-1a1a10a5aed4","type":"text/javascript","exec":[""]}}]}