{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"6867f5cc-78a5-4c87-827a-c83f4f67687a","name":"Dayuan Web Integration","description":"## Overview\n\nThis guide is designed to assist developers in integrating with the Dayuan marketplace via the Dayuan API. By directly integrating your ecommerce system with Dayuan, you can manage products, process orders, and access customer data using your own operational systems. The Dayuan API offers a sustainable, low-impact solution, ready for future developments and product onboarding.\n\nTo help customers with their integrations, Dayuan also provides a Technical Supervisor, in addition to a dedicated Dayuan Implementation Manager, to project and successfully manage customer onboarding.\n\nIf you are interested in integrating with Dayuan via the Dayuan API, you should first be familiar with:\n\n- **API Design**: The Dayuan API uses a RESTful-style design. You need to understand the HTTP protocol and be able to use your preferred programming language to send HTTP requests.\n    \n- **Business Processes**: Familiarity with the underlying business processes around managing ecommerce operations, such as product listings, order processing, and customer management.\n    \n- **Error Handling**: Designing and implementing a strategy into your existing application for handling errors and other negative responses.\n    \n\n## 🚀 Get started here\n\nTo start using the Dayuan API, you need to:\n\n1. **Sign Up**: Register for a Dayuan developer account.\n    \n2. **API Key**: Obtain your API key from the Dayuan developer portal.\n    \n3. **Documentation**: Read through this documentation to understand the available endpoints and their usage.\n    \n\n## Dayuan - API\n\nThere are two versions of this API available to you: Staging and Production. Use the staging environment to test your integration - no live data will be passed from or into Dayuan production environment, so you are able to develop and test. Once you are ready to go live, your integration must be signed off by your Account Manager, who will repeat the process of generating access credential for the live environment.\n\n#### Production Endpoint: [https://dayuan.biz/apis](https://dayuan.biz)\n\n_Note: Endpoints use the HTTPS protocol to ensure the security of data transmission between servers._\n\nPlease email the Client Integration Team at [it@dayuan.io](https://mailto:it@dayuan.io/) to get start with Dayuan API integration for the staging and production systems. You will be supplied with:\n\n- API credentials (Client-Id, Client-Secret & Client-Name).\n    \n- Channel codes list associated with your account.\n    \n- Vendor codes list associated with your account.\n    \n- Carrier & Carrier Service codes list associated with your account (if the same is not provided by you).\n    \n- Warehouse Code list associated with your account.\n    \n- Merchant codes list associated with your account.\n    \n\n### Conclusion\n\nThe Dayuan API is a powerful tool for developers looking to enhance their ecommerce capabilities. We are committed to providing a robust and comprehensive API to support your business needs. Dive into the documentation, explore the endpoints, and start integrating with Dayuan today.\n\n### Headers\n\n| Name | Required | Description | Example |\n| --- | --- | --- | --- |\n| Client-Id | Yes | A unique identifier required to access API provided by Dayuan. | ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ123456 |\n| Client-Secret | Yes | A unique secret key required to access API provided by Dayuan. | ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ123456 |\n| Client-Name | Yes | Client name provided by Dayuan. |  |\n| Content-Type | No | Some API methods need to get data from an HTTP request body. Such APIs generally use POST or PUT requests. If not specified, such APIs only accept data in JSON format. Meanwhile, in the transmission request, the HTTP request header set Content-Type value of application/json. | application/json |\n| Accept | No | API only supports JSON formatted data return formats, and requires HTTP Accept request headers only application/json. Unless otherwise specified, set this value explicitly in each request. | application/json |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"20209157","team":3369156,"collectionId":"6867f5cc-78a5-4c87-827a-c83f4f67687a","publishedId":"2sA3e2gVNx","public":true,"publicUrl":"https://documenter-api.postman.tech/view/20209157/2sA3e2gVNx","privateUrl":"https://go.postman.co/documentation/20209157-6867f5cc-78a5-4c87-827a-c83f4f67687a","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FFC107"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"system_default","themes":[{"name":"dark","logo":"https://content.pstmn.io/02eba320-5e17-4724-94a6-b951771b61ab/ZGF5dWFuLXJlbW92ZWQucG5n","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FFC107"}},{"name":"light","logo":"https://content.pstmn.io/384e37e6-7011-4c74-9ded-cf2b31b2231f/ZG93bmxvYWQucG5n","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FFC107"}}]}},"version":"8.12.6","publishDate":"2024-07-10T08:36:02.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/384e37e6-7011-4c74-9ded-cf2b31b2231f/ZG93bmxvYWQucG5n","logoDark":"https://content.pstmn.io/02eba320-5e17-4724-94a6-b951771b61ab/ZGF5dWFuLXJlbW92ZWQucG5n"}},"statusCode":200},"environments":[],"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/1c7a4c31387d78d285cd64ade253b0df1b703d7adb33210e5a3bb7126068d841","favicon":"https://res.cloudinary.com/postman/image/upload/v1650983470/team/s7zw0exhtblxvebxjlpu.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"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sA3e2gVNx"}