This endpoint allows the developer to access the API in order to update customer information. This becomes very useful when you need to sync information between your internal system and SimplePin. To do so, you first have to call the endpoint getCustomer, then compare the obtained results with your internal data. In the case of any discrepancies, you will be using this call to update data.
This field is used to retrieve the provinces, countries and names of users. It returns a customer profile based on his/her specific language settings. So if we create a customer and set his/her settings to French, then SimplePin’s parameters will also be in French.
This is a unique customer ID which was previously created by you when using the addCustomer endpoint.
{
"billing_addresses": [
{
"id": 0,
"zip": "string",
"city": "string",
"country": 0,
"province": 0,
"address": "string",
"selected": true
}
],
"contract_email": "string",
"contracts": [
{
"id": 0,
"name": "string"
}
],
"customer_id": "string",
"customer_name": "string",
"customer_since": "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
"delete_billing_address_ids": [],
"main_address": {
"id": 0,
"zip": "string",
"city": "string",
"country": 0,
"province": 0,
"address": "string",
"selected": true
},
"mobile_number": "string",
"phone_number": "string"
}
{
"billing_address_id": 0,
"billing_address_models": [
{
"id": 0,
"zip": "string",
"city": "string",
"country": 0,
"province": 0,
"address": "string",
"selected": true
}
],
"contract_email": "string",
"contracts": [
{
"id": 0,
"name": "string"
}
],
"customer_id": "string",
"customer_name": "string",
"customer_since": "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
"id": 0,
"main_address": {
"id": 0,
"zip": "string",
"city": "string",
"country": 0,
"province": 0,
"address": "string",
"selected": true
},
"mobile_number": "string",
"phone_number": "string",
"status": "REQUIRES_ACTIVATION",
"version": 0
}
<add_update_cc_profile_model>
<billing_addresses>
<billing_address>
<id>0</id>
<zip>string</zip>
<city>string</city>
<country>0</country>
<province>0</province>
<address>string</address>
<selected>1</selected>
</billing_address>
<billing_address>
<id>0</id>
<zip>string</zip>
<city>string</city>
<country>0</country>
<province>0</province>
<address>string</address>
<selected>1</selected>
</billing_address>
</billing_addresses>
<contract_email>string</contract_email>
<contracts>
<contract>
<id>0</id>
<name>string</name>
</contract>
<contract>
<id>0</id>
<name>string</name>
</contract>
</contracts>
<customer_id>string</customer_id>
<customer_name>string</customer_name>
<customer_since>yyyy-MM-dd'T'HH:mm:ss.SSSXXX</customer_since>
<delete_billing_address_ids/>
<main_address/>
<mobile_number>string</mobile_number>
<phone_number>string</phone_number>
</add_update_cc_profile_model>
<cc_profile_model>
<billing_address_id>0</billing_address_id>
<billing_address_models>
<billing_address_model>
<id>0</id>
<zip>string</zip>
<city>string</city>
<country>0</country>
<province>0</province>
<address>string</address>
<selected>1</selected>
</billing_address_model>
<billing_address_model>
<id>0</id>
<zip>string</zip>
<city>string</city>
<country>0</country>
<province>0</province>
<address>string</address>
<selected>1</selected>
</billing_address_model>
</billing_address_models>
<contract_email>string</contract_email>
<contracts>
<contract>
<id>0</id>
<name>string</name>
</contract>
<contract>
<id>0</id>
<name>string</name>
</contract>
</contracts>
<customer_id>string</customer_id>
<customer_name>string</customer_name>
<customer_since>yyyy-MM-dd'T'HH:mm:ss.SSSXXX</customer_since>
<id>0</id>
<main_address/>
<mobile_number>string</mobile_number>
<phone_number>string</phone_number>
<status>REQUIRES_ACTIVATION</status>
<version>0</version>
</cc_profile_model>