{"id":375128,"date":"2023-04-05T14:19:18","date_gmt":"2023-04-05T14:19:18","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=375128"},"modified":"2023-04-05T14:30:34","modified_gmt":"2023-04-05T14:30:34","slug":"set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/","title":{"rendered":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice"},"content":{"rendered":"\n<p>In this blog, we are going to learn how to get and set customer data in our module by using the default PrestaShop customer API in the PrestaShop Webservice.<\/p>\n\n\n\n<p>So let\u2019s understand how to achieve it:<\/p>\n\n\n\n<p>Sometimes, we store customer data in our module suppose the username of the customer because PrestaShop does not store usernames.<\/p>\n\n\n\n<p>So we are taking the example of a username in this blog.<\/p>\n\n\n\n<p><strong>Get username in customer API:<\/strong><\/p>\n\n\n\n<p>We will override the customer.php file in our module and write the code as given below :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">protected $webserviceParameters = &#091;\n        &#039;objectMethods&#039; =&gt; &#091;\n            &#039;add&#039; =&gt; &#039;addWs&#039;,\n            &#039;update&#039; =&gt; &#039;updateWs&#039;,\n        ],\n        &#039;fields&#039; =&gt; &#091;\n            &#039;id_default_group&#039; =&gt; &#091;&#039;xlink_resource&#039; =&gt; &#039;groups&#039;],\n            &#039;id_lang&#039; =&gt; &#091;&#039;xlink_resource&#039; =&gt; &#039;languages&#039;],\n            &#039;newsletter_date_add&#039; =&gt; &#091;],\n            &#039;ip_registration_newsletter&#039; =&gt; &#091;],\n            &#039;last_passwd_gen&#039; =&gt; &#091;&#039;setter&#039; =&gt; null],\n            &#039;secure_key&#039; =&gt; &#091;&#039;setter&#039; =&gt; null],\n            &#039;deleted&#039; =&gt; &#091;],\n            &#039;passwd&#039; =&gt; &#091;&#039;setter&#039; =&gt; &#039;setWsPasswd&#039;],\n        ],\n        &#039;associations&#039; =&gt; &#091;\n            &#039;groups&#039; =&gt; &#091;&#039;resource&#039; =&gt; &#039;group&#039;],\n            \/\/ our module association to get and set username\n            &#039;username&#039; =&gt; &#091;\n                &#039;resource&#039; =&gt; &#039;username&#039;,\n                &#039;fields&#039; =&gt; &#091;\n                    &#039;username&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                ],\n            ],\n        ],\n    ];<\/pre>\n\n\n\n<p>In the above code, we have to overridden <strong>$webserviceParameters<\/strong> variable and added a new association <strong>username<\/strong> with resource name and fields. we can define those fields that we want to set and get from the customer API from our module table.<\/p>\n\n\n\n<p>Now we will define the getter function in the override customer.php for username association:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function getWsUsername()\n    {\n        $data =  Db::getInstance()-&gt;executeS(\n            &#039;SELECT `username` as user_name FROM &#039; . _DB_PREFIX_ . &#039;wk_customer_username WHERE `id_customer` = &#039; . (int) $this-&gt;id\n        );\n        return $data;\n    }<\/pre>\n\n\n\n<p>In the above code, we are passing a username from our module table. Now we will call customer API to get customer data: http:\/\/{your_domain}\/api\/customers\/{customer_id}\/?ws_key={your_api_key}<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"905\" height=\"573\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\" alt=\"username_with_api_ps\" class=\"wp-image-375770\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png 905w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps-300x190.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps-250x158.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps-768x486.png 768w\" sizes=\"(max-width: 905px) 100vw, 905px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Username in API call<\/figcaption><\/figure>\n\n\n\n<p>You will see the extra node username in API response with the value in the association node.<\/p>\n\n\n\n<p><strong>Create\/Update username in customer API:<\/strong><\/p>\n\n\n\n<p>Now, we will define the setter function in override customer.php for updating and creating a username:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function setWsUsername($params)\n    {\n        $username = $params&#091;&#039;user_name&#039;];\n        $isExist = Db::getInstance()-&gt;getValue(\n            &#039;SELECT `username` as user_name FROM &#039; . _DB_PREFIX_ . &#039;wk_customer_username WHERE `id_customer` = &#039; . (int) $this-&gt;id\n        );\n        if ($isExist) {\n            $sql = &#039;UPDATE &#039;._DB_PREFIX_.&#039;wk_customer_username SET `username` = &#039; . pSQL($username) . &#039; WHERE `id_customer` = &#039; . (int) $this-&gt;id;\n            if (!Db::getInstance()-&gt;execute($sql)) {\n                WebserviceRequest::getInstance()-&gt;setError(\n                    400,\n                    $this-&gt;trans(\n                        &#039;Username is not updated&#039;,\n                        &#091;],\n                        &#039;Admin.Catalog.Notification&#039;\n                    ),\n                    41\n                );\n            }\n        } else {\n            $sql = &#039;INSERT INTO &#039;._DB_PREFIX_.&#039;wk_customer_username (`username`, `id_customer`) VALUES (&#039;.pSQL($username).&#039;,&#039;. (int) $this-&gt;id.&#039;&#039;;\n            if (!Db::getInstance()-&gt;execute($sql)) {\n                WebserviceRequest::getInstance()-&gt;setError(\n                    400,\n                    $this-&gt;trans(\n                        &#039;Username is not saved&#039;,\n                        &#091;],\n                        &#039;Admin.Catalog.Notification&#039;\n                    ),\n                    41\n                );\n            }\n        }\n        return true;\n    }<\/pre>\n\n\n\n<p>In the above code, we are setting a username in our module table and passing an error if we found. Now we will call customer API to create\/update using POST\/PUT request type: http:\/\/{your_domain}\/api\/customers\/?ws_key={your_api_key}<\/p>\n\n\n\n<p>That\u2019s all about this blog. Hope it will help you.<\/p>\n\n\n\n<p>If you are facing any issues or doubts in the above process, please feel free to contact us in the comment section.<\/p>\n\n\n\n<p>We would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a>&nbsp;&amp; a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at support@webkul.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to get and set customer data in our module by using the default PrestaShop customer API in the PrestaShop Webservice. So let\u2019s understand how to achieve it: Sometimes, we store customer data in our module suppose the username of the customer because PrestaShop does not store <a href=\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":416,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1173,209,1],"tags":[13949,13950,293],"class_list":["post-375128","post","type-post","status-publish","format-standard","hentry","category-api-2","category-prestashop","category-uncategorized","tag-prestashop-api","tag-send-customer-data-in-prestashop-api","tag-webservice"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set and get customer data in default customer API in PrestaShop<\/title>\n<meta name=\"description\" content=\"Set and get customer data in default customer API in PrestaShop 1.7 Webservice\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set and get customer data in default customer API in PrestaShop\" \/>\n<meta property=\"og:description\" content=\"Set and get customer data in default customer API in PrestaShop 1.7 Webservice\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-05T14:19:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-05T14:30:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\" \/>\n<meta name=\"author\" content=\"Gajendra Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gajendra Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\"},\"author\":{\"name\":\"Gajendra Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede\"},\"headline\":\"Set and get customer data in default customer API in PrestaShop 1.7 Webservice\",\"datePublished\":\"2023-04-05T14:19:18+00:00\",\"dateModified\":\"2023-04-05T14:30:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\"},\"wordCount\":349,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\",\"keywords\":[\"Prestashop API\",\"Send customer data in prestashop API\",\"webservice\"],\"articleSection\":[\"API\",\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\",\"url\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\",\"name\":\"Set and get customer data in default customer API in PrestaShop\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\",\"datePublished\":\"2023-04-05T14:19:18+00:00\",\"dateModified\":\"2023-04-05T14:30:34+00:00\",\"description\":\"Set and get customer data in default customer API in PrestaShop 1.7 Webservice\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png\",\"width\":905,\"height\":573,\"caption\":\"username_with_api_ps\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set and get customer data in default customer API in PrestaShop 1.7 Webservice\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede\",\"name\":\"Gajendra Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gajendra Singh\"},\"description\":\"Gajendra Singh, a PrestaShop Software Engineer, excels in Mobile App and Custom Extension Development. A tech-savvy expert in Docker and POS, he creates innovative solutions. Gajendra's skills ensure a seamless PrestaShop experience, catering to diverse needs.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/gajendra-singh681\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set and get customer data in default customer API in PrestaShop","description":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/","og_locale":"en_US","og_type":"article","og_title":"Set and get customer data in default customer API in PrestaShop","og_description":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice","og_url":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-05T14:19:18+00:00","article_modified_time":"2023-04-05T14:30:34+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png","type":"","width":"","height":""}],"author":"Gajendra Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gajendra Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/"},"author":{"name":"Gajendra Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede"},"headline":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice","datePublished":"2023-04-05T14:19:18+00:00","dateModified":"2023-04-05T14:30:34+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/"},"wordCount":349,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png","keywords":["Prestashop API","Send customer data in prestashop API","webservice"],"articleSection":["API","prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/","url":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/","name":"Set and get customer data in default customer API in PrestaShop","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png","datePublished":"2023-04-05T14:19:18+00:00","dateModified":"2023-04-05T14:30:34+00:00","description":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/username_with_api_ps.png","width":905,"height":573,"caption":"username_with_api_ps"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/set-and-get-customer-data-in-default-customer-api-in-prestashop-1-7-webservice\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Set and get customer data in default customer API in PrestaShop 1.7 Webservice"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/ba72ea261f883808a566a3ab8b63dede","name":"Gajendra Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9d864b4124944a25bce60168e4d9520c03a18cdca40483dfbf0d9e46d2f0d32c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gajendra Singh"},"description":"Gajendra Singh, a PrestaShop Software Engineer, excels in Mobile App and Custom Extension Development. A tech-savvy expert in Docker and POS, he creates innovative solutions. Gajendra's skills ensure a seamless PrestaShop experience, catering to diverse needs.","url":"https:\/\/webkul.com\/blog\/author\/gajendra-singh681\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/375128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/416"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=375128"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/375128\/revisions"}],"predecessor-version":[{"id":375785,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/375128\/revisions\/375785"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=375128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=375128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=375128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}