{"id":3783,"date":"2019-12-03T13:40:46","date_gmt":"2019-12-03T13:40:46","guid":{"rendered":"https:\/\/dev.cdiscount.com\/marketplace\/?page_id=3783"},"modified":"2023-08-03T09:01:09","modified_gmt":"2023-08-03T09:01:09","slug":"how-to-connect-to-the-api","status":"publish","type":"page","link":"https:\/\/wp74.directchezmoi.com\/?page_id=3783","title":{"rendered":"How to connect to the API"},"content":{"rendered":"<div id=\"wppb-builder-container\" class=\"wppb-builder-container\">\n<!DOCTYPE html>\n<!--\nTo change this license header, choose License Headers in Project Properties.\nTo change this template file, choose Tools | Templates\nand open the template in the editor.\n-->\n<html>\n    <head>\n        <title>TODO supply a title<\/title>\n        <meta charset=\"UTF-8\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <\/head>\n    <body>\n        <h1 class=\"text-center font-weight-bold\">How to connect to the API <i class=\"fa fa-plug text-secondary\"><\/i><\/h1>\n<br>\n<br>\n<p>Once you have setup your account you are ready to do your first authenticated connection.<\/p>\n<p>In this section, we propose you to proceed manually step by step to your first connection. Then, you will be able to adapt your system to call the Cdiscount Marketplace API.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"\">\n<h2 class=\"font-weight-bold\">The choices available to you<\/h2>\n<p>You have the choice between 2 connection options, either you choose to delegate the management of your flows to an integrator, or you manage your flows yourself.<\/p>\n\n<h5 class=\"font-weight-bold\">You want to delegate<\/h5>\n<p>If you choose to use a flow integrator, you can consult the <a href=\"https:\/\/marketplace.cdiscount.com\/nos-partenaires\/\">page<\/a> of our partners here to find yours.<\/p>\n\n<h5 class=\"font-weight-bold\">Manage your own flows:<\/h5>\n<p>You want to generate your own feeds, find below the tools necessary to install your environment.<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<br>\n<div class=\"row\">\n\n    <div class=\"col-1\"><\/div>\n<div class=\"col-4\">\n\n<div class=\"card borderCard\" style=\"width: 30rem;\">\n\n<iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/385004847\" width=\"600\" height=\"240\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen><\/iframe>\n  <div class=\"card-body\">\n<div class=\"text-center\">\n<h4 class=\"font-weight-bold\">Postman<\/h4>\n\n<\/div>\n  <\/div>\n  <ul class=\"list-group list-group-flush\">\n    <li class=\"list-group-item list-group-item-info\"><h5 class=\"font-weight-bold\">Install Postman<\/h5>\n<p>For install postman you do download it <a href=\"https:\/\/www.getpostman.com\/\">here<\/a> and just follow step next <\/p><\/li>\n    <li class=\"list-group-item\"><h5 class=\"font-weight-bold\">Add Your new Collection<\/h5>\n<p>Once installed, you must go to new and add a new collection<\/p><\/li>\n    <li class=\"list-group-item list-group-item-info\"><h5 class=\"font-weight-bold\">Add new request<\/h5>\n\n<h6 class=\"font-weight-bold\"><span class=\"badge badge-pill badge-primary\">A <\/span> Request to the token<\/h6>\n<ol>\n<li>Specify the URL of the token generator : <span class=\"text-primary\">https:\/\/sts.cdiscount.com\/users\/httpIssue.svc\/?realm=https:\/\/wsvc.cdiscount.com\/MarketplaceAPIService.svc<\/span><\/li>\n<li>In the tag Auth choose type Basic Auth and set up your login\/Password<\/li>\n\n<li>Send your request<\/li>\n<li>Get your valid token<\/li>\n<\/ol>\n<h6 class=\"font-weight-bold\"><span class=\"badge badge-pill badge-primary\">B <\/span> Request to the method call<\/h6>\n<ol>\n<li>Choose Post and add the url <span class=\"text-primary\">https:\/\/wsvc.cdiscount.com\/MarketplaceAPIService.svc<\/span><\/li>\n\n<li>Add in the tag Headers the key Content-Type with Value text\/xml and Key SoapAction and Value the url for call method you need. For example <a href=\"http:\/\/www.cdiscount.com\/IMarketplaceAPIService\/GetSellerInformation\">http:\/\/www.cdiscount.com\/IMarketplaceAPIService\/GetSellerInformation<\/a> <\/li>\n<li>In the Tag Body choose raw format and paste your call API<\/li>\n<\/ol>\n\n<\/li>\n  <\/ul>\n   <p class=\"text-center\">Or you can  directly download collection <a href=\"https:\/\/dev.cdiscount.com\/marketplace\/wp-content\/uploads\/CdiscountApiCallAndToken.postman_collection.zip\"><i class=\"fa fa-download\"><\/i><\/a><\/p>\n<\/div>\n    <\/div>\n    <div class=\"col-1\"><\/div>\n<div class=\"col-4\">\n<div class=\"card borderCard\" style=\"width: 30rem;\">\n<iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/385005511\" width=\"600\" height=\"240\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen><\/iframe>\n  <div class=\"card-body\">\n<div class=\"text-center\">\n<h4 class=\" font-weight-bold\">SoapUI<\/h4>\n\n<\/div>\n  <\/div>\n  <ul class=\"list-group list-group-flush\">\n    <li class=\"list-group-item list-group-item-info\"><h5 class=\"font-weight-bold\">Install SoapUI<\/h5>\n<p>For install SoapUI you do download it <a href=\"https:\/\/www.soapui.org\/downloads\/soapui.html\">here<\/a> and just follow step next <\/p><\/li>\n    <li class=\"list-group-item\"><h5 class=\"font-weight-bold\"><span class=\"\">Add new Soap project<\/span><\/h5>\n<p>Once installed, file new Soap project with url https:\/\/wsvc.cdiscount.com\/MarketplaceAPIService.svc?wsdl for prod environnement<\/p><\/li>\n    <li class=\"list-group-item list-group-item-info\"><h5 class=\"font-weight-bold\"><span class=\"\">Add new project to generate token<\/span><\/h5>\n<ol>\n<li>Add new Project Rest and fill the URL <span class=\"text-primary\">https:\/\/sts.cdiscount.com\/users\/httpIssue.svc\/?realm=https:\/\/wsvc.cdiscount.com\/MarketplaceAPIService.svc<\/span> <\/li>\n\n<li>In the Request 1 in the tag Auth choose Authorization Add new Authorization and type Basic<\/li>\n<li>Renseign your login-api, the password, choose Autenticate pre-emptively and send <\/li>\n<\/ol>\n<\/li>\n  <\/ul>\n  <p class=\"text-center\">Or you can  directly download project <a href=\"https:\/\/dev.cdiscount.com\/marketplace\/wp-content\/uploads\/SoapProject.zip\"><i class=\"fa fa-download\"><\/i><\/a> and token project <a href=\"https:\/\/dev.cdiscount.com\/marketplace\/wp-content\/uploads\/GenerateToken.zip\"><i class=\"fa fa-download\"><\/i><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<br>\n<!--\n<h2 class=\"font-weight-bold\">An example in video to summarize your first call<\/h2>\n<br>\n<p class=\"text-center\"><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/360258245\" width=\"640\" height=\"360\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen><\/iframe>\n<\/p> -->\n\n\n\n\n\n<script src=\"\/\/maxcdn.bootstrapcdn.com\/bootstrap\/4.1.1\/js\/bootstrap.min.js\"><\/script>\n<script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.2.1\/jquery.min.js\"><\/script>\n    <\/body>\n<\/html>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>TODO supply a title How to connect to the API Once you have setup your account you are ready to do your first authenticated connection. In this section, we propose you to proceed manually step by step to your first connection. Then, you will be able to adapt your system &hellip;<\/p>\n","protected":false},"author":23,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-3783","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/3783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3783"}],"version-history":[{"count":217,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/3783\/revisions"}],"predecessor-version":[{"id":6261,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=\/wp\/v2\/pages\/3783\/revisions\/6261"}],"wp:attachment":[{"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp74.directchezmoi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}