curl -i -X POST \
https://customer-slug.api-se.playground.norce.tech/commerce/shopping/1.1/UpdatePayer2 \
-H 'ApplicationId: YOUR_API_KEY_HERE' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"Id": 0,
"Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
"Code": "string",
"Email": "string",
"Ssn": "string",
"FirstName": "string",
"LastName": "string",
"Phone": "string",
"CellPhone": "string",
"ReferId": 0,
"ReferUrl": "string",
"Account": {
"Id": 0,
"Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
"LoginName": "string",
"Name": "string",
"Roles": [
0
],
"Authorizations": [
{
"Id": 0,
"Value": "string",
"Code": "string"
}
],
"IsActive": true,
"NewPassword": "string"
},
"Companies": [
{
"Id": 0,
"Key": "5eb041b0-19c9-4022-bd51-0e723885f5dd",
"Code": "string",
"Name": "string",
"OrgNo": "string",
"Phone": "string",
"ReferId": 0,
"ReferUrl": "string",
"DeliveryAddresses": [
{
"Id": 0,
"CareOf": "string",
"Line1": "string",
"Line2": "string",
"Zip": "string",
"City": "string",
"CountryId": 0,
"Country": "string",
"Region": "string",
"IsValidated": true,
"GlobalLocationNo": "string",
"ShippingPhoneNumber": "string",
"Code": "string"
}
],
"InvoiceAddress": {
"Id": 0,
"CareOf": "string",
"Line1": "string",
"Line2": "string",
"Zip": "string",
"City": "string",
"CountryId": 0,
"Country": "string",
"Region": "string",
"IsValidated": true,
"GlobalLocationNo": "string",
"ShippingPhoneNumber": "string",
"Code": "string"
},
"UseInvoiceAddressAsDeliveryAddress": true,
"Info": [
{
"Id": 0,
"Value": "string",
"Code": "string"
}
],
"PricelistIds": [
0
],
"ParentId": 0,
"DeliveryMethodIds": [
0
],
"PaymentMethodIds": [
0
],
"Email": "string",
"Flags": [
{
"Id": 0,
"Name": "string",
"Group": 0,
"IsSelected": true
}
],
"VatNo": "string"
}
],
"DeliveryAddresses": [
{
"Id": 0,
"CareOf": "string",
"Line1": "string",
"Line2": "string",
"Zip": "string",
"City": "string",
"CountryId": 0,
"Country": "string",
"Region": "string",
"IsValidated": true,
"GlobalLocationNo": "string",
"ShippingPhoneNumber": "string",
"Code": "string"
}
],
"InvoiceAddress": {
"Id": 0,
"CareOf": "string",
"Line1": "string",
"Line2": "string",
"Zip": "string",
"City": "string",
"CountryId": 0,
"Country": "string",
"Region": "string",
"IsValidated": true,
"GlobalLocationNo": "string",
"ShippingPhoneNumber": "string",
"Code": "string"
},
"Flags": [
{
"Id": 0,
"Name": "string",
"Group": 0,
"IsSelected": true
}
],
"UseInvoiceAddressAsDeliveryAddress": true,
"Info": [
{
"Id": 0,
"Value": "string",
"Code": "string"
}
],
"PricelistIds": [
0
],
"CrmId": "string",
"IsActive": true,
"Created": "2019-08-24T14:15:22Z",
"Updated": "2019-08-24T14:15:22Z"
}'