{"id":1608,"date":"2018-07-12T11:13:43","date_gmt":"2018-07-12T14:13:43","guid":{"rendered":"http:\/\/maxipago.com\/developers\/?page_id=1608"},"modified":"2023-03-08T20:59:42","modified_gmt":"2023-03-08T23:59:42","slug":"atualizar-um-cliente","status":"publish","type":"page","link":"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/","title":{"rendered":"Atualizar um Cadastro de Cliente"},"content":{"rendered":"<div class=\"row\">\n<div class=\"col-md-6\">\n<p>Atualiza\u00e7\u00e3o de um cliente \u00e9 feito atrav\u00e9s do comando update-consumer. Os par\u00e2metros aceitos e o formato da chamada s\u00e3o muito similares ao comando add-consumer. A principal diferen\u00e7a \u00e9 que este m\u00e9todo requer o envio do campo <strong style=\"color: #878787;\">customerId<\/strong>.<\/p>\n<\/div>\n<div class=\"col-md-6\">\n<h2><strong style=\"color: #e06b08;\">URLs para atualizar um cadastro de cliente<\/strong><\/h2>\n<p><strong style=\"color: #878787;\">Sandbox:<\/strong>\u00a0https:\/\/testapi.maxipago.net\/UniversalAPI\/postAPI<br \/>\n<strong style=\"color: #878787;\">Produ\u00e7\u00e3o:<\/strong>\u00a0https:\/\/api.maxipago.net\/UniversalAPI\/postAPI<\/p>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-md-6\">\n<h2><strong style=\"color: #e06b08;\">Exemplo de requisi\u00e7\u00e3o<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;api-request&gt;\n    &lt;verification&gt;\n        &lt;merchantId&gt;store-id&lt;\/merchantId&gt;\n        &lt;merchantKey&gt;store-key&lt;\/merchantKey&gt;\n    &lt;\/verification&gt;\n    &lt;command&gt;update-consumer&lt;\/command&gt;\n    &lt;request&gt;\n        &lt;customerId&gt;00000001&lt;\/customerId&gt;\n        &lt;customerIdExt&gt;00000001&lt;\/customerIdExt&gt;\n        &lt;firstName&gt;Fulano&lt;\/firstName&gt;\n        &lt;lastName&gt;de Tal&lt;\/lastName&gt;\n        &lt;address1&gt;Av. Marcos Penteado de Ulhoa Rodrigues, 939&lt;\/address1&gt;\n        &lt;address2&gt;11 Andar&lt;\/address2&gt;\n        &lt;city&gt;Barueri&lt;\/city&gt;\n        &lt;state&gt;SP&lt;\/state&gt;\n        &lt;zip&gt;06360040&lt;\/zip&gt;\n        &lt;country&gt;BR&lt;\/country&gt;\n        &lt;phone&gt;01121218536&lt;\/phone&gt;\n        &lt;email&gt;fulano@dominio.com&lt;\/email&gt;\n        &lt;dob&gt;12\/25\/1970&lt;\/dob&gt;\n        &lt;sex&gt;M&lt;\/sex&gt;\n        &lt;ssn&gt;12345678901&lt;\/ssn&gt;\n    &lt;\/request&gt;\n&lt;\/api-request&gt;<\/pre>\n<\/div>\n<div class=\"col-md-6 col-sm-3\">\n<h2><strong style=\"color: #e06b08;\">Os par\u00e2metros aceitos no update-consumer<\/strong><\/h2>\n<p>Os par\u00e2metros aceitos no comando update-consumer est\u00e3o abaixo. Se o campo for vazio, n\u00e3o enviar.<\/p>\n<div class=\"table-responsive\"><div id=\"footable_parent_3353\"\n         class=\" footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent semantic_ui \">\n                <table data-ninja_table_instance=\"ninja_table_instance_0\" data-footable_id=\"3353\" data-filter-delay=\"1000\" aria-label=\"Tabela de par\u00e2metros - update-consumer\"            id=\"footable_3353\"\n           data-unique_identifier=\"ninja_table_unique_id_1352507744_3353\"\n           class=\" foo-table ninja_footable foo_table_3353 ninja_table_unique_id_1352507744_3353 ui table  nt_type_ajax_table selectable celled striped compact  footable-paging-right ninja_table_search_disabled\">\n                <colgroup>\n                            <col class=\"ninja_column_0 \">\n                            <col class=\"ninja_column_1 \">\n                            <col class=\"ninja_column_2 \">\n                    <\/colgroup>\n            <\/table>\n                    <style type=\"text\/css\" id='ninja_table_custom_css_3353'>\n                        #footable_3353  {\n        font-family: inherit;\n        font-size: 14px;\n    }\n\n                <\/style>\n                \n    \n    \n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":1544,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":"","footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Atualizar um Cadastro de Cliente - Gateway Rede! Developers<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Atualizar um Cadastro de Cliente - Gateway Rede! Developers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/\" \/>\n<meta property=\"og:site_name\" content=\"Gateway Rede! Developers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/maxiPago-193308344142172\/?fref=ts\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-08T23:59:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. tempo de leitura\">\n\t<meta name=\"twitter:data1\" content=\"1 minuto\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/#website\",\"url\":\"https:\/\/www.maxipago.com\/developers\/\",\"name\":\"Gateway Rede! Developers\",\"description\":\"Portal de Desenvolvedores - Gateway Rede!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.maxipago.com\/developers\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/#webpage\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/\",\"name\":\"Atualizar um Cadastro de Cliente - Gateway Rede! Developers\",\"isPartOf\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/#website\"},\"datePublished\":\"2018-07-12T14:13:43+00:00\",\"dateModified\":\"2023-03-08T23:59:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/\",\"name\":\"In\\u00edcio\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/\",\"name\":\"API Docs\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/\",\"url\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/\",\"name\":\"Requisi\\u00e7\\u00f5es de Cadastro\"}},{\"@type\":\"ListItem\",\"position\":4,\"item\":{\"@id\":\"https:\/\/www.maxipago.com\/developers\/apidocs\/requisicoes-de-cadastro\/atualizar-um-cliente\/#webpage\"}}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1608"}],"collection":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/comments?post=1608"}],"version-history":[{"count":6,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1608\/revisions"}],"predecessor-version":[{"id":3354,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1608\/revisions\/3354"}],"up":[{"embeddable":true,"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/pages\/1544"}],"wp:attachment":[{"href":"https:\/\/www.maxipago.com\/developers\/wp-json\/wp\/v2\/media?parent=1608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}