{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"cdf33683-dcce-4d3d-a20d-696f2fcef3c2","name":"Dropshipping API","description":"This document gives detailed information about Laptop.bg's API endpoints and examples on how to use them. In general, two APIs can be distinguished:\n\n - [Feeds API](#0a35bdfc-10e8-4877-a634-5e3aa61df75a) - used for getting access to different products exports\n - [Orders API](#05b8353f-94f2-4abb-88bd-edc0739c8c94) - used for creating dropshipping orders \n\n# Using the documentation\n\nIn this documentation you can find definitions of requests and examples for every endpoint. Each endpoint is presented with an URL, followed by a short description of expected parameters, information on feed's update, a list of possible returned error codes and a description of a successful response. On the right side of the endpoint's description you can find examples of curl requests and their corresponding responses. Moreover, for the [POST order](##e82c5d78-2c09-48ef-ac91-96410f2df78d) request there are several examples illustrating different cases for both valid and invalid dropshipping orders. These request examples can be accessed by clicking the ▼ on the right of the example request.\n\n### Postman mock server\n\nYou will notice that all examples here are making requests to https://4c3d487d-2f73-47b5-b627-a158ffb6c13a.mock.pstmn.io/ . Please, keep in mind that this is a mock server provided by Postman. This means that for every request made to it, it will always return the same predefined response. It is used only in this documentation for illustrating purposes.\n\n# Testing the API \n\nYou can use the Laptop.bg's test environment (demo.laptop.bg) while developing your integration with the laptop.bg's API. \nYou are going to need test credentials (email and token) to access the test environment and the Laptop.bg's team should provide them to you.\nPlease, keep in mind that the test environment contains only a sample of the laptop.bg's products and is refreshed every day. This means that it is completely normal for a product's id to be present in today's products feed on demo.laptop.bg, but not be present tomorrow. Another thing to be pointed out is that since this environment is being refreshed daily, orders created today will be unavailable tomorrow. This test environment is created to help you implement your integration with this API. You can make requests for accessing products' feeds or creating orders, so you can test API's responses. \n\n# Using the API in production\n\nAfter successfully integrating our API and testing it on demo.laptop.bg, you will be given access to our production environment. Your authentication token for production will be different than the one used for the test environment. Once you have the correct access rights, you will be able to get feeds containing all products and their information as well as creating orders, which then will be processed by our colleagues and delivered to clients.\n\n# API endpoints definitions and examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"1449608","collectionId":"cdf33683-dcce-4d3d-a20d-696f2fcef3c2","publishedId":"2s8YzRxhtD","public":true,"publicUrl":"https://docs.laptop.bg","privateUrl":"https://go.postman.co/documentation/1449608-cdf33683-dcce-4d3d-a20d-696f2fcef3c2","customColor":{"top-bar":"FFFFFF","right-sidebar":"32415B","highlight":"17bbf0"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.11.6","publishDate":"2022-12-08T10:46:47.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Test","id":"eaa685e6-c9fd-4909-8fb7-6bfe6c702ea6","owner":"11638688","values":[{"key":"admin_email","value":"test@example.com","enabled":true},{"key":"admin_token","value":"test_token","enabled":true},{"key":"dropshipping_host","value":"https://4c3d487d-2f73-47b5-b627-a158ffb6c13a.mock.pstmn.io","enabled":true},{"key":"product_id","value":"53193","enabled":true},{"key":"order_id","value":"","enabled":true},{"key":"mediator_host","value":"https://2312b6e3-b0b6-459c-a0f9-c27bf5a00b04.mock.pstmn.io","enabled":true,"type":"default"},{"key":"service_station_host\n","value":"https://89f52304-c7a2-4f28-9fad-df6b7488debd.mock.pstmn.io","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":"https://laptop.bg/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Test","value":"11638688-eaa685e6-c9fd-4909-8fb7-6bfe6c702ea6"}],"canonicalUrl":"https://docs.laptop.bg/view/metadata/2s8YzRxhtD"}