PUT LoyaltyClients/{id}

Updates the loyalty account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the contract.

globally unique identifier

Required

Body Parameters

The new data of the Loyalty account.

LoyaltyAccountDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

IdCommunity

globally unique identifier

None.

IdCompany

globally unique identifier

None.

IdIdentity

globally unique identifier

None.

IdentityNumber

string

None.

IdentitiyNumberType

byte

None.

IdentityName

string

None.

IdNetwork

globally unique identifier

None.

CommunityTarget

integer

None.

IdDriver

globally unique identifier

None.

DriverLicenseNumber

string

None.

DriverCode

string

None.

DriverEmail

string

None.

DriverFirstName

string

None.

DriverLastName

string

None.

IdVehicle

globally unique identifier

None.

IdFleet

globally unique identifier

None.

VehiclePlate

string

None.

VehicleCode

string

None.

Identities

Collection of IdentityDto

None.

LoyaltyClientCards

Collection of LoyaltyAccountIdentificationDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "4c25e4cf-84b2-4200-8a5d-5e71164d8c9d",
  "IdCommunity": "e59eea6b-08a0-4133-afd5-dcb4c18b32da",
  "IdCompany": "21fb34e3-fc5d-4ac0-9181-f39dca2d6c5c",
  "IdIdentity": "4bd2e36c-43ba-4d13-85c0-667f68de9c94",
  "IdentityNumber": "sample string 5",
  "IdentitiyNumberType": 64,
  "IdentityName": "sample string 7",
  "IdNetwork": "b4fb4a88-0e7e-47bc-8b46-62e2544dda2e",
  "CommunityTarget": 9,
  "IdDriver": "620666a0-0ef7-4ea6-8242-b8e7c776e2b8",
  "DriverLicenseNumber": "sample string 10",
  "DriverCode": "sample string 11",
  "DriverEmail": "sample string 12",
  "DriverFirstName": "sample string 13",
  "DriverLastName": "sample string 14",
  "IdVehicle": "327fbcf4-4421-46b4-92e2-05cc11b7a5b3",
  "IdFleet": "b6512f13-5e55-4dfe-a7a9-8fa62b3558d4",
  "VehiclePlate": "sample string 15",
  "VehicleCode": "sample string 16",
  "Identities": [
    {
      "Id": "79f4d3aa-0823-4f2a-ae0d-5395a891b574",
      "IdNetwork": "c08b4021-4edd-42d7-bd77-950c1189fedc",
      "IdentityNumber": "sample string 3",
      "IdentityNumberType": 64,
      "Name": "sample string 4",
      "Alias": "sample string 5",
      "BirthDate": "2025-04-25T16:54:41.8175255Z",
      "StreetAddress": "sample string 6",
      "ZipCode": "sample string 7",
      "PhoneNumber": "sample string 8",
      "ProfilePicture": "sample string 9",
      "ReportedIdentityNumber": "sample string 10",
      "ReportedCountry": "sample string 11",
      "ReportedFirstName": "sample string 12",
      "ReportedLastName": "sample string 13",
      "ReportedSex": "sample string 14",
      "ReportedBirthDate": "sample string 15",
      "ReportedIssueDate": "sample string 16",
      "ReportedProcedureNumber": "sample string 17",
      "ReportedCopy": "sample string 18",
      "UserConsent": true,
      "CreatedRealDate": "2025-04-25T16:54:41.8175255Z",
      "CreatedNetworkDate": "2025-04-25T16:54:41.8175255Z",
      "NetworkTimezoneCode": "sample string 22",
      "UpdateRealDate": "2025-04-25T16:54:41.8175255Z",
      "UpdateNetworkDate": "2025-04-25T16:54:41.8175255Z",
      "LoyaltyIdentifications": [
        {
          "Id": "d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7",
          "IdCommunity": "49a48e27-d655-4fd7-b970-be63dc858395",
          "IdCompany": "3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5",
          "IdFleet": "c27bd6cc-a148-4641-84a2-7aacb4d968ee",
          "CommunityName": "sample string 4",
          "CommunityTarget": 1,
          "Label": "sample string 5",
          "TrackNumber": "sample string 6",
          "Type": 7,
          "IdIdentificationModel": "e7cce609-71a9-4e59-8df6-2766e5b4c756",
          "Active": true,
          "PAN": "sample string 10"
        },
        {
          "Id": "d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7",
          "IdCommunity": "49a48e27-d655-4fd7-b970-be63dc858395",
          "IdCompany": "3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5",
          "IdFleet": "c27bd6cc-a148-4641-84a2-7aacb4d968ee",
          "CommunityName": "sample string 4",
          "CommunityTarget": 1,
          "Label": "sample string 5",
          "TrackNumber": "sample string 6",
          "Type": 7,
          "IdIdentificationModel": "e7cce609-71a9-4e59-8df6-2766e5b4c756",
          "Active": true,
          "PAN": "sample string 10"
        }
      ]
    },
    {
      "Id": "79f4d3aa-0823-4f2a-ae0d-5395a891b574",
      "IdNetwork": "c08b4021-4edd-42d7-bd77-950c1189fedc",
      "IdentityNumber": "sample string 3",
      "IdentityNumberType": 64,
      "Name": "sample string 4",
      "Alias": "sample string 5",
      "BirthDate": "2025-04-25T16:54:41.8175255Z",
      "StreetAddress": "sample string 6",
      "ZipCode": "sample string 7",
      "PhoneNumber": "sample string 8",
      "ProfilePicture": "sample string 9",
      "ReportedIdentityNumber": "sample string 10",
      "ReportedCountry": "sample string 11",
      "ReportedFirstName": "sample string 12",
      "ReportedLastName": "sample string 13",
      "ReportedSex": "sample string 14",
      "ReportedBirthDate": "sample string 15",
      "ReportedIssueDate": "sample string 16",
      "ReportedProcedureNumber": "sample string 17",
      "ReportedCopy": "sample string 18",
      "UserConsent": true,
      "CreatedRealDate": "2025-04-25T16:54:41.8175255Z",
      "CreatedNetworkDate": "2025-04-25T16:54:41.8175255Z",
      "NetworkTimezoneCode": "sample string 22",
      "UpdateRealDate": "2025-04-25T16:54:41.8175255Z",
      "UpdateNetworkDate": "2025-04-25T16:54:41.8175255Z",
      "LoyaltyIdentifications": [
        {
          "Id": "d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7",
          "IdCommunity": "49a48e27-d655-4fd7-b970-be63dc858395",
          "IdCompany": "3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5",
          "IdFleet": "c27bd6cc-a148-4641-84a2-7aacb4d968ee",
          "CommunityName": "sample string 4",
          "CommunityTarget": 1,
          "Label": "sample string 5",
          "TrackNumber": "sample string 6",
          "Type": 7,
          "IdIdentificationModel": "e7cce609-71a9-4e59-8df6-2766e5b4c756",
          "Active": true,
          "PAN": "sample string 10"
        },
        {
          "Id": "d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7",
          "IdCommunity": "49a48e27-d655-4fd7-b970-be63dc858395",
          "IdCompany": "3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5",
          "IdFleet": "c27bd6cc-a148-4641-84a2-7aacb4d968ee",
          "CommunityName": "sample string 4",
          "CommunityTarget": 1,
          "Label": "sample string 5",
          "TrackNumber": "sample string 6",
          "Type": 7,
          "IdIdentificationModel": "e7cce609-71a9-4e59-8df6-2766e5b4c756",
          "Active": true,
          "PAN": "sample string 10"
        }
      ]
    }
  ],
  "LoyaltyClientCards": [
    {
      "Id": "9b9c41d5-c3e9-4c74-88d6-6975b22fd3bb",
      "IdentificationLabel": "sample string 2",
      "IdentificationTrackNumber": "sample string 3",
      "IdentificationType": 4,
      "IdIdentificationModel": "10c04e00-9a10-4e85-8f56-a2de8ab75d3f",
      "Active": true,
      "IdentificationPAN": "sample string 7"
    },
    {
      "Id": "9b9c41d5-c3e9-4c74-88d6-6975b22fd3bb",
      "IdentificationLabel": "sample string 2",
      "IdentificationTrackNumber": "sample string 3",
      "IdentificationType": 4,
      "IdIdentificationModel": "10c04e00-9a10-4e85-8f56-a2de8ab75d3f",
      "Active": true,
      "IdentificationPAN": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<LoyaltyAccountDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
  <CommunityTarget>9</CommunityTarget>
  <DriverCode>sample string 11</DriverCode>
  <DriverEmail>sample string 12</DriverEmail>
  <DriverFirstName>sample string 13</DriverFirstName>
  <DriverLastName>sample string 14</DriverLastName>
  <DriverLicenseNumber>sample string 10</DriverLicenseNumber>
  <Id>4c25e4cf-84b2-4200-8a5d-5e71164d8c9d</Id>
  <IdCommunity>e59eea6b-08a0-4133-afd5-dcb4c18b32da</IdCommunity>
  <IdCompany>21fb34e3-fc5d-4ac0-9181-f39dca2d6c5c</IdCompany>
  <IdDriver>620666a0-0ef7-4ea6-8242-b8e7c776e2b8</IdDriver>
  <IdFleet>b6512f13-5e55-4dfe-a7a9-8fa62b3558d4</IdFleet>
  <IdIdentity>4bd2e36c-43ba-4d13-85c0-667f68de9c94</IdIdentity>
  <IdNetwork>b4fb4a88-0e7e-47bc-8b46-62e2544dda2e</IdNetwork>
  <IdVehicle>327fbcf4-4421-46b4-92e2-05cc11b7a5b3</IdVehicle>
  <Identities>
    <IdentityDto>
      <Alias>sample string 5</Alias>
      <BirthDate>2025-04-25T16:54:41.8175255Z</BirthDate>
      <CreatedNetworkDate>2025-04-25T16:54:41.8175255Z</CreatedNetworkDate>
      <CreatedRealDate>2025-04-25T16:54:41.8175255Z</CreatedRealDate>
      <Id>79f4d3aa-0823-4f2a-ae0d-5395a891b574</Id>
      <IdNetwork>c08b4021-4edd-42d7-bd77-950c1189fedc</IdNetwork>
      <IdentityNumber>sample string 3</IdentityNumber>
      <IdentityNumberType>64</IdentityNumberType>
      <LoyaltyIdentifications xmlns:d4p1="http://schemas.datacontract.org/2004/07/Ationet.Model.Community">
        <d4p1:IdentityLoyaltyIdentificationDto>
          <d4p1:Active>true</d4p1:Active>
          <d4p1:CommunityName>sample string 4</d4p1:CommunityName>
          <d4p1:CommunityTarget>1</d4p1:CommunityTarget>
          <d4p1:Id>d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7</d4p1:Id>
          <d4p1:IdCommunity>49a48e27-d655-4fd7-b970-be63dc858395</d4p1:IdCommunity>
          <d4p1:IdCompany>3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5</d4p1:IdCompany>
          <d4p1:IdFleet>c27bd6cc-a148-4641-84a2-7aacb4d968ee</d4p1:IdFleet>
          <d4p1:IdIdentificationModel>e7cce609-71a9-4e59-8df6-2766e5b4c756</d4p1:IdIdentificationModel>
          <d4p1:Label>sample string 5</d4p1:Label>
          <d4p1:PAN>sample string 10</d4p1:PAN>
          <d4p1:TrackNumber>sample string 6</d4p1:TrackNumber>
          <d4p1:Type>7</d4p1:Type>
        </d4p1:IdentityLoyaltyIdentificationDto>
        <d4p1:IdentityLoyaltyIdentificationDto>
          <d4p1:Active>true</d4p1:Active>
          <d4p1:CommunityName>sample string 4</d4p1:CommunityName>
          <d4p1:CommunityTarget>1</d4p1:CommunityTarget>
          <d4p1:Id>d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7</d4p1:Id>
          <d4p1:IdCommunity>49a48e27-d655-4fd7-b970-be63dc858395</d4p1:IdCommunity>
          <d4p1:IdCompany>3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5</d4p1:IdCompany>
          <d4p1:IdFleet>c27bd6cc-a148-4641-84a2-7aacb4d968ee</d4p1:IdFleet>
          <d4p1:IdIdentificationModel>e7cce609-71a9-4e59-8df6-2766e5b4c756</d4p1:IdIdentificationModel>
          <d4p1:Label>sample string 5</d4p1:Label>
          <d4p1:PAN>sample string 10</d4p1:PAN>
          <d4p1:TrackNumber>sample string 6</d4p1:TrackNumber>
          <d4p1:Type>7</d4p1:Type>
        </d4p1:IdentityLoyaltyIdentificationDto>
      </LoyaltyIdentifications>
      <Name>sample string 4</Name>
      <NetworkTimezoneCode>sample string 22</NetworkTimezoneCode>
      <PhoneNumber>sample string 8</PhoneNumber>
      <ProfilePicture>sample string 9</ProfilePicture>
      <ReportedBirthDate>sample string 15</ReportedBirthDate>
      <ReportedCopy>sample string 18</ReportedCopy>
      <ReportedCountry>sample string 11</ReportedCountry>
      <ReportedFirstName>sample string 12</ReportedFirstName>
      <ReportedIdentityNumber>sample string 10</ReportedIdentityNumber>
      <ReportedIssueDate>sample string 16</ReportedIssueDate>
      <ReportedLastName>sample string 13</ReportedLastName>
      <ReportedProcedureNumber>sample string 17</ReportedProcedureNumber>
      <ReportedSex>sample string 14</ReportedSex>
      <StreetAddress>sample string 6</StreetAddress>
      <UpdateNetworkDate>2025-04-25T16:54:41.8175255Z</UpdateNetworkDate>
      <UpdateRealDate>2025-04-25T16:54:41.8175255Z</UpdateRealDate>
      <UserConsent>true</UserConsent>
      <ZipCode>sample string 7</ZipCode>
    </IdentityDto>
    <IdentityDto>
      <Alias>sample string 5</Alias>
      <BirthDate>2025-04-25T16:54:41.8175255Z</BirthDate>
      <CreatedNetworkDate>2025-04-25T16:54:41.8175255Z</CreatedNetworkDate>
      <CreatedRealDate>2025-04-25T16:54:41.8175255Z</CreatedRealDate>
      <Id>79f4d3aa-0823-4f2a-ae0d-5395a891b574</Id>
      <IdNetwork>c08b4021-4edd-42d7-bd77-950c1189fedc</IdNetwork>
      <IdentityNumber>sample string 3</IdentityNumber>
      <IdentityNumberType>64</IdentityNumberType>
      <LoyaltyIdentifications xmlns:d4p1="http://schemas.datacontract.org/2004/07/Ationet.Model.Community">
        <d4p1:IdentityLoyaltyIdentificationDto>
          <d4p1:Active>true</d4p1:Active>
          <d4p1:CommunityName>sample string 4</d4p1:CommunityName>
          <d4p1:CommunityTarget>1</d4p1:CommunityTarget>
          <d4p1:Id>d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7</d4p1:Id>
          <d4p1:IdCommunity>49a48e27-d655-4fd7-b970-be63dc858395</d4p1:IdCommunity>
          <d4p1:IdCompany>3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5</d4p1:IdCompany>
          <d4p1:IdFleet>c27bd6cc-a148-4641-84a2-7aacb4d968ee</d4p1:IdFleet>
          <d4p1:IdIdentificationModel>e7cce609-71a9-4e59-8df6-2766e5b4c756</d4p1:IdIdentificationModel>
          <d4p1:Label>sample string 5</d4p1:Label>
          <d4p1:PAN>sample string 10</d4p1:PAN>
          <d4p1:TrackNumber>sample string 6</d4p1:TrackNumber>
          <d4p1:Type>7</d4p1:Type>
        </d4p1:IdentityLoyaltyIdentificationDto>
        <d4p1:IdentityLoyaltyIdentificationDto>
          <d4p1:Active>true</d4p1:Active>
          <d4p1:CommunityName>sample string 4</d4p1:CommunityName>
          <d4p1:CommunityTarget>1</d4p1:CommunityTarget>
          <d4p1:Id>d1e2c9c0-8c30-42d6-8a1b-d77614cd62d7</d4p1:Id>
          <d4p1:IdCommunity>49a48e27-d655-4fd7-b970-be63dc858395</d4p1:IdCommunity>
          <d4p1:IdCompany>3e3e6622-ea6e-4cfc-b4fa-c30e585f4ba5</d4p1:IdCompany>
          <d4p1:IdFleet>c27bd6cc-a148-4641-84a2-7aacb4d968ee</d4p1:IdFleet>
          <d4p1:IdIdentificationModel>e7cce609-71a9-4e59-8df6-2766e5b4c756</d4p1:IdIdentificationModel>
          <d4p1:Label>sample string 5</d4p1:Label>
          <d4p1:PAN>sample string 10</d4p1:PAN>
          <d4p1:TrackNumber>sample string 6</d4p1:TrackNumber>
          <d4p1:Type>7</d4p1:Type>
        </d4p1:IdentityLoyaltyIdentificationDto>
      </LoyaltyIdentifications>
      <Name>sample string 4</Name>
      <NetworkTimezoneCode>sample string 22</NetworkTimezoneCode>
      <PhoneNumber>sample string 8</PhoneNumber>
      <ProfilePicture>sample string 9</ProfilePicture>
      <ReportedBirthDate>sample string 15</ReportedBirthDate>
      <ReportedCopy>sample string 18</ReportedCopy>
      <ReportedCountry>sample string 11</ReportedCountry>
      <ReportedFirstName>sample string 12</ReportedFirstName>
      <ReportedIdentityNumber>sample string 10</ReportedIdentityNumber>
      <ReportedIssueDate>sample string 16</ReportedIssueDate>
      <ReportedLastName>sample string 13</ReportedLastName>
      <ReportedProcedureNumber>sample string 17</ReportedProcedureNumber>
      <ReportedSex>sample string 14</ReportedSex>
      <StreetAddress>sample string 6</StreetAddress>
      <UpdateNetworkDate>2025-04-25T16:54:41.8175255Z</UpdateNetworkDate>
      <UpdateRealDate>2025-04-25T16:54:41.8175255Z</UpdateRealDate>
      <UserConsent>true</UserConsent>
      <ZipCode>sample string 7</ZipCode>
    </IdentityDto>
  </Identities>
  <IdentitiyNumberType>64</IdentitiyNumberType>
  <IdentityName>sample string 7</IdentityName>
  <IdentityNumber>sample string 5</IdentityNumber>
  <LoyaltyClientCards>
    <LoyaltyAccountIdentificationDto>
      <Active>true</Active>
      <Id>9b9c41d5-c3e9-4c74-88d6-6975b22fd3bb</Id>
      <IdIdentificationModel>10c04e00-9a10-4e85-8f56-a2de8ab75d3f</IdIdentificationModel>
      <IdentificationLabel>sample string 2</IdentificationLabel>
      <IdentificationPAN>sample string 7</IdentificationPAN>
      <IdentificationTrackNumber>sample string 3</IdentificationTrackNumber>
      <IdentificationType>4</IdentificationType>
    </LoyaltyAccountIdentificationDto>
    <LoyaltyAccountIdentificationDto>
      <Active>true</Active>
      <Id>9b9c41d5-c3e9-4c74-88d6-6975b22fd3bb</Id>
      <IdIdentificationModel>10c04e00-9a10-4e85-8f56-a2de8ab75d3f</IdIdentificationModel>
      <IdentificationLabel>sample string 2</IdentificationLabel>
      <IdentificationPAN>sample string 7</IdentificationPAN>
      <IdentificationTrackNumber>sample string 3</IdentificationTrackNumber>
      <IdentificationType>4</IdentificationType>
    </LoyaltyAccountIdentificationDto>
  </LoyaltyClientCards>
  <VehicleCode>sample string 16</VehicleCode>
  <VehiclePlate>sample string 15</VehiclePlate>
</LoyaltyAccountDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

State of the action.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.