<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Set_Customer_Details</id>
		<title>Offerit REST API Set Customer Details - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Set_Customer_Details"/>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;action=history"/>
		<updated>2026-05-11T14:59:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3759&amp;oldid=prev</id>
		<title>Offeritnick: /* Parameters */</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3759&amp;oldid=prev"/>
				<updated>2017-10-02T22:35:40Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:35, 2 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''If you want to remove a field you can pass in the string REMOVE and the field will be removed.&amp;#160; All additional parameters have this option other then 'password'. At least one optional parameter must be passed in.'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''If you want to remove a field you can pass in the string REMOVE and the field will be removed.&amp;#160; All additional parameters have this option other then 'password'. At least one optional parameter must be passed in.'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''You need to pass either customer_id or &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;subscription &lt;/del&gt;for customer lookup otherwise the call will fail'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''You need to pass either customer_id or &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;subscription_id &lt;/ins&gt;for customer lookup otherwise the call will fail'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*customer_id is used to pass in the customer_id of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*customer_id is used to pass in the customer_id of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: string'''''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: string'''''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''optional'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''optional'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;subscription &lt;/del&gt;is used to pass in the subscription of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;subscription_id &lt;/ins&gt;is used to pass in the subscription of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: string'''''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''''type: string'''''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''optional'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**'''optional'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3754&amp;oldid=prev</id>
		<title>Offeritnick: /* Parameters */</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3754&amp;oldid=prev"/>
				<updated>2017-07-27T21:28:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:28, 27 July 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''If you want to remove a field you can pass in the string REMOVE and the field will be removed.&amp;#160; All additional parameters have this option other then 'password'. At least one optional parameter must be passed in.'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''If you want to remove a field you can pass in the string REMOVE and the field will be removed.&amp;#160; All additional parameters have this option other then 'password'. At least one optional parameter must be passed in.'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''You need to pass &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;at &lt;/del&gt;either customer_id or subscription for customer lookup'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''You need to pass either customer_id or subscription for customer lookup &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;otherwise the call will fail&lt;/ins&gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*customer_id is used to pass in the customer_id of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*customer_id is used to pass in the customer_id of the customer to modify&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3753&amp;oldid=prev</id>
		<title>Offeritnick: Created page with &quot;{{Offerit Manual | show_rest_api_section = true }} == '''PATCH /customer/set_customer_details''' == '''Description'''  *The  api/customer/set_customer_details action is a feat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Set_Customer_Details&amp;diff=3753&amp;oldid=prev"/>
				<updated>2017-07-27T21:27:17Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Offerit Manual | show_rest_api_section = true }} == &amp;#039;&amp;#039;&amp;#039;PATCH /customer/set_customer_details&amp;#039;&amp;#039;&amp;#039; == &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;  *The  api/customer/set_customer_details action is a feat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Offerit Manual&lt;br /&gt;
| show_rest_api_section = true&lt;br /&gt;
}}&lt;br /&gt;
== '''PATCH /customer/set_customer_details''' ==&lt;br /&gt;
'''Description''' &lt;br /&gt;
*The  api/customer/set_customer_details action is a feature in Offerit that allows you to set the customer details for an Offerit customer record. &lt;br /&gt;
&lt;br /&gt;
'''Resource URL'''&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;http://domain/api/customer/set_customer_details&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*Replace domain with the offerit domain&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]&lt;br /&gt;
*PATCH&lt;br /&gt;
&lt;br /&gt;
'''Response Format'''&lt;br /&gt;
*JSON&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Authentication|Authentication]]'''&lt;br /&gt;
*HTTP headers&lt;br /&gt;
&lt;br /&gt;
== '''Parameters''' ==&lt;br /&gt;
'''Paremeters must be sent with the request body. The examples below show the parameters sent as x-www-form-urlencoded'''&lt;br /&gt;
&lt;br /&gt;
'''If you want to remove a field you can pass in the string REMOVE and the field will be removed.  All additional parameters have this option other then 'password'. At least one optional parameter must be passed in.'''&lt;br /&gt;
&lt;br /&gt;
'''You need to pass at either customer_id or subscription for customer lookup'''&lt;br /&gt;
&lt;br /&gt;
*customer_id is used to pass in the customer_id of the customer to modify&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*subscription is used to pass in the subscription of the customer to modify&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*firstname is used to pass in the first name of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*lastname is used to pass in the last name of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*email is used to pass in the email address of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*address1 is used to pass in the address of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*address2 is used to pass in the address of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*city is used to pass in the city of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*state is used to pass in the state of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*country is used to pass in the country of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*zip is used to pass in the zip code of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*custom1 is used to pass in the custom1 field  of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*custom2 is used to pass in the custom2 field of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*custom3 is used to pass in the custom3 field  of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*custom4 is used to pass in the custom4 field  of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*custom5 is used to pass in the custom5 field  of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*password is used to pass in the new password of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
*username is used to pass in the new username of the customer&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''optional'''&lt;br /&gt;
&lt;br /&gt;
== '''Example Request''' ==&lt;br /&gt;
&lt;br /&gt;
'''PATCH'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://domain/api/customer/set_customer_details&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Response: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Example Code''' ==&lt;br /&gt;
&lt;br /&gt;
'''PHP'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$curl = curl_init();&lt;br /&gt;
&lt;br /&gt;
$data = array(&lt;br /&gt;
    'customer_id' =&amp;gt; 191,&lt;br /&gt;
    'firstname' =&amp;gt; 'Test',&lt;br /&gt;
    'zip' =&amp;gt; '66666',&lt;br /&gt;
    'email' =&amp;gt; 'test@testmail.com',&lt;br /&gt;
    'country' =&amp;gt; 'US',&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
$url = 'http://domain/api/customer/set_customer_details';&lt;br /&gt;
&lt;br /&gt;
$headers = array(&lt;br /&gt;
    'api-key: 44b5498dbcb481a0d00b404c0169af62',&lt;br /&gt;
    'api-username: offerit_admin'&lt;br /&gt;
);&lt;br /&gt;
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, &amp;quot;PATCH&amp;quot;);&lt;br /&gt;
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);&lt;br /&gt;
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));&lt;br /&gt;
curl_setopt($curl, CURLOPT_URL, $url);&lt;br /&gt;
&lt;br /&gt;
$resp = curl_exec($curl);&lt;br /&gt;
//dumps an associative array representation of the json&lt;br /&gt;
var_dump(json_decode($resp, true));&lt;br /&gt;
// Close request to clear up some resources&lt;br /&gt;
curl_close($curl);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Python'''&lt;br /&gt;
*This example requires pip and the request library which can be installed via pip by: 'pip install requests'&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import requests&lt;br /&gt;
import json&lt;br /&gt;
&lt;br /&gt;
url = 'http://domain/api/customer/set_customer_details'&lt;br /&gt;
&lt;br /&gt;
payload = {&lt;br /&gt;
    'customer_id': 191,&lt;br /&gt;
    'firstname': 'Test',&lt;br /&gt;
    'zip': '66666',&lt;br /&gt;
    'email': 'test@testmail.com',&lt;br /&gt;
    'country': 'US'&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
headers = {&lt;br /&gt;
        'api-key': '44b5498dbcb481a0d00b404c0169af62',&lt;br /&gt;
        'api-username': 'offerit_admin'&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
res = requests.patch(url, data=payload, headers=headers)&lt;br /&gt;
print res.json()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''node.js'''&lt;br /&gt;
*This example requires npm and the request module which can be installed via npm by: 'npm install request'&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
var request = require('request');&lt;br /&gt;
&lt;br /&gt;
data = {&lt;br /&gt;
    'customer_id': 191,&lt;br /&gt;
    'firstname': 'Test',&lt;br /&gt;
    'zip': '66666',&lt;br /&gt;
    'email': 'test@testmail.com',&lt;br /&gt;
    'country': 'US'&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
var options = {&lt;br /&gt;
    url: 'http://domain/api/customer/set_customer_details',&lt;br /&gt;
    method: 'PATCH',&lt;br /&gt;
    form: data,&lt;br /&gt;
    json: true,&lt;br /&gt;
    headers: {&lt;br /&gt;
        'api-key': '44b5498dbcb481a0d00b404c0169af62',&lt;br /&gt;
        'api-username': 'offerit_admin'&lt;br /&gt;
    }&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
function callback(error, response, body) {&lt;br /&gt;
    if (!error &amp;amp;&amp;amp; response.statusCode == 200) {&lt;br /&gt;
        console.log(body);&lt;br /&gt;
    }&lt;br /&gt;
    else{&lt;br /&gt;
        console.log(body);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
request(options, callback);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Curl'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
curl -X PATCH 'http://domain/api/customer/set_customer_details' -H &amp;quot;api-key: 44b5498dbcb481a0d00b404c0169af62&amp;quot; -H &amp;quot;api-username: offerit_admin&amp;quot; -H &amp;quot;Content-Type: application/x-www-form-urlencoded&amp;quot; -d 'customer_id=191&amp;amp;firstname=Test&amp;amp;zip=66666&amp;amp;email=test@testmail.com&amp;amp;country=US'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Offerit API Articles]]&lt;/div&gt;</summary>
		<author><name>Offeritnick</name></author>	</entry>

	</feed>