PUT customers

Update Customers. Roles: ApiRole

Request Information

URI Parameters

None.

Body Parameters

Collection of all CustomerUpdateData objects

Collection of CustomerUpdateData
NameDescriptionTypeAdditional information
CustomerID

CustomerID or AccountID of the customer/account.

integer

Required

Name

Customer name.

string

None.

BillingStart

Customer Billing start date.

date

None.

BillingEnd

Customer Billing end date

date

None.

LevelID

Customer Level or Dealer ID

integer

None.

NewDeviceBehavior

Customer NewDeviceBehavior. MANAGED by default.

NewDeviceBehavior

None.

ContractID

Customer ContractID. Could be used to map JA Customer ID with Client Contract ID.

string

None.

DataFieldValues

Customer DataField values, if any.

Collection of DataFieldValue

None.

Comment

Customer comment.

string

None.

StatusMessage

Customer status message.

string

None.

StatusCode

Customer status code.

CustomerStatusCode

None.

MonoPageCost

Account Mono page cost

decimal number

None.

ColorPageCost

Account Color page cost

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CustomerID": 1,
    "Name": "sample string 2",
    "BillingStart": "2018-08-18T15:53:12.2054526+00:00",
    "BillingEnd": "2018-08-18T15:53:12.2054526+00:00",
    "LevelID": 1,
    "NewDeviceBehavior": "Managed",
    "ContractID": "sample string 3",
    "DataFieldValues": [
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2054526+00:00"
      },
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2054526+00:00"
      }
    ],
    "Comment": "sample string 4",
    "StatusMessage": "sample string 5",
    "StatusCode": "Created",
    "MonoPageCost": 1.1,
    "ColorPageCost": 1.1
  },
  {
    "CustomerID": 1,
    "Name": "sample string 2",
    "BillingStart": "2018-08-18T15:53:12.2054526+00:00",
    "BillingEnd": "2018-08-18T15:53:12.2054526+00:00",
    "LevelID": 1,
    "NewDeviceBehavior": "Managed",
    "ContractID": "sample string 3",
    "DataFieldValues": [
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2054526+00:00"
      },
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2054526+00:00"
      }
    ],
    "Comment": "sample string 4",
    "StatusMessage": "sample string 5",
    "StatusCode": "Created",
    "MonoPageCost": 1.1,
    "ColorPageCost": 1.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerUpdateData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CustomerUpdateData>
    <CustomerID>1</CustomerID>
    <Name>sample string 2</Name>
    <BillingStart>2018-08-18T15:53:12.2054526+00:00</BillingStart>
    <BillingEnd>2018-08-18T15:53:12.2054526+00:00</BillingEnd>
    <LevelID>1</LevelID>
    <NewDeviceBehavior>Managed</NewDeviceBehavior>
    <ContractID>sample string 3</ContractID>
    <DataFieldValues>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2054526+00:00</VT>
      </DataFieldValue>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2054526+00:00</VT>
      </DataFieldValue>
    </DataFieldValues>
    <Comment>sample string 4</Comment>
    <StatusMessage>sample string 5</StatusMessage>
    <StatusCode>Created</StatusCode>
    <MonoPageCost>1.1</MonoPageCost>
    <ColorPageCost>1.1</ColorPageCost>
  </CustomerUpdateData>
  <CustomerUpdateData>
    <CustomerID>1</CustomerID>
    <Name>sample string 2</Name>
    <BillingStart>2018-08-18T15:53:12.2054526+00:00</BillingStart>
    <BillingEnd>2018-08-18T15:53:12.2054526+00:00</BillingEnd>
    <LevelID>1</LevelID>
    <NewDeviceBehavior>Managed</NewDeviceBehavior>
    <ContractID>sample string 3</ContractID>
    <DataFieldValues>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2054526+00:00</VT>
      </DataFieldValue>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2054526+00:00</VT>
      </DataFieldValue>
    </DataFieldValues>
    <Comment>sample string 4</Comment>
    <StatusMessage>sample string 5</StatusMessage>
    <StatusCode>Created</StatusCode>
    <MonoPageCost>1.1</MonoPageCost>
    <ColorPageCost>1.1</ColorPageCost>
  </CustomerUpdateData>
</ArrayOfCustomerUpdateData>

Response Information

Resource Description

Returns all updated customers as a queryable object.

Collection of Customer
NameDescriptionTypeAdditional information
CustomerID

CustomerID or AccountID of the customer/account.

integer

None.

Name

Customer name.

string

None.

JAName

Customer's JetAdvice account name.

string

None.

CreatedDate

Customer created date.

date

None.

BillingStart

Customer Billing start date.

date

None.

BillingEnd

Customer Billing end date

date

None.

LevelID

Customer Level or Dealer ID

integer

None.

ContractID

Customer ContractID. Could be used to map JA Customer ID with Client Contract ID.

string

None.

DataFieldValues

Customer DataField values, if any.

Collection of DataFieldValue

None.

Comment

Customer comment.

string

None.

NewDeviceBehavior

Customer NewDeviceBehavior. MANAGED by default.

NewDeviceBehavior

None.

StatusMessage

Customer status message.

string

None.

StatusCode

Customer status code.

CustomerStatusCode

None.

StatusFromUsername

Username who put the status message.

string

None.

StatusFromDate

Date on which status message was entered.

date

None.

MonoPageCost

Account Mono page cost

decimal number

None.

ColorPageCost

Account Color page cost

decimal number

None.

LastCollect

Last collected datetime on the account.

date

None.

LogoUrl

Logo url

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerID": 1,
    "Name": "sample string 2",
    "JAName": "sample string 3",
    "CreatedDate": "2018-08-18T15:53:12.2367084+00:00",
    "BillingStart": "2018-08-18T15:53:12.2367084+00:00",
    "BillingEnd": "2018-08-18T15:53:12.2367084+00:00",
    "LevelID": 5,
    "ContractID": "sample string 6",
    "DataFieldValues": [
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2367084+00:00"
      },
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2367084+00:00"
      }
    ],
    "Comment": "sample string 7",
    "NewDeviceBehavior": "Managed",
    "StatusMessage": "sample string 8",
    "StatusCode": "Created",
    "StatusFromUsername": "sample string 9",
    "StatusFromDate": "2018-08-18T15:53:12.2367084+00:00",
    "MonoPageCost": 1.1,
    "ColorPageCost": 1.1,
    "LastCollect": "2018-08-18T15:53:12.2367084+00:00",
    "LogoUrl": "sample string 11"
  },
  {
    "CustomerID": 1,
    "Name": "sample string 2",
    "JAName": "sample string 3",
    "CreatedDate": "2018-08-18T15:53:12.2367084+00:00",
    "BillingStart": "2018-08-18T15:53:12.2367084+00:00",
    "BillingEnd": "2018-08-18T15:53:12.2367084+00:00",
    "LevelID": 5,
    "ContractID": "sample string 6",
    "DataFieldValues": [
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2367084+00:00"
      },
      {
        "DataFieldName": "sample string 1",
        "VD": 1.1,
        "VS": "sample string 2",
        "VT": "2018-08-18T15:53:12.2367084+00:00"
      }
    ],
    "Comment": "sample string 7",
    "NewDeviceBehavior": "Managed",
    "StatusMessage": "sample string 8",
    "StatusCode": "Created",
    "StatusFromUsername": "sample string 9",
    "StatusFromDate": "2018-08-18T15:53:12.2367084+00:00",
    "MonoPageCost": 1.1,
    "ColorPageCost": 1.1,
    "LastCollect": "2018-08-18T15:53:12.2367084+00:00",
    "LogoUrl": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomer xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Customer>
    <CustomerID>1</CustomerID>
    <Name>sample string 2</Name>
    <JAName>sample string 3</JAName>
    <CreatedDate>2018-08-18T15:53:12.2367084+00:00</CreatedDate>
    <BillingStart>2018-08-18T15:53:12.2367084+00:00</BillingStart>
    <BillingEnd>2018-08-18T15:53:12.2367084+00:00</BillingEnd>
    <LevelID>5</LevelID>
    <ContractID>sample string 6</ContractID>
    <DataFieldValues>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2367084+00:00</VT>
      </DataFieldValue>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2367084+00:00</VT>
      </DataFieldValue>
    </DataFieldValues>
    <Comment>sample string 7</Comment>
    <NewDeviceBehavior>Managed</NewDeviceBehavior>
    <StatusMessage>sample string 8</StatusMessage>
    <StatusCode>Created</StatusCode>
    <StatusFromUsername>sample string 9</StatusFromUsername>
    <StatusFromDate>2018-08-18T15:53:12.2367084+00:00</StatusFromDate>
    <MonoPageCost>1.1</MonoPageCost>
    <ColorPageCost>1.1</ColorPageCost>
    <LastCollect>2018-08-18T15:53:12.2367084+00:00</LastCollect>
    <LogoUrl>sample string 11</LogoUrl>
  </Customer>
  <Customer>
    <CustomerID>1</CustomerID>
    <Name>sample string 2</Name>
    <JAName>sample string 3</JAName>
    <CreatedDate>2018-08-18T15:53:12.2367084+00:00</CreatedDate>
    <BillingStart>2018-08-18T15:53:12.2367084+00:00</BillingStart>
    <BillingEnd>2018-08-18T15:53:12.2367084+00:00</BillingEnd>
    <LevelID>5</LevelID>
    <ContractID>sample string 6</ContractID>
    <DataFieldValues>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2367084+00:00</VT>
      </DataFieldValue>
      <DataFieldValue>
        <DataFieldName>sample string 1</DataFieldName>
        <VD>1.1</VD>
        <VS>sample string 2</VS>
        <VT>2018-08-18T15:53:12.2367084+00:00</VT>
      </DataFieldValue>
    </DataFieldValues>
    <Comment>sample string 7</Comment>
    <NewDeviceBehavior>Managed</NewDeviceBehavior>
    <StatusMessage>sample string 8</StatusMessage>
    <StatusCode>Created</StatusCode>
    <StatusFromUsername>sample string 9</StatusFromUsername>
    <StatusFromDate>2018-08-18T15:53:12.2367084+00:00</StatusFromDate>
    <MonoPageCost>1.1</MonoPageCost>
    <ColorPageCost>1.1</ColorPageCost>
    <LastCollect>2018-08-18T15:53:12.2367084+00:00</LastCollect>
    <LogoUrl>sample string 11</LogoUrl>
  </Customer>
</ArrayOfCustomer>