GET pxapi/Customer?changedSince={changedSince}&selection={selection}&inclNotActive={inclNotActive}&companyId={companyId}

Retrives customers according to selection

Request Information

Parameters

NameDescriptionAdditional information
changedSince
Break datetime for only listing data changed afterwards

Define this parameter in the request URI.

selection
1 - standard sync-data, customers

Define this parameter in the request URI.

inclNotActive
false for only active customers or true for all, no matter status

Define this parameter in the request URI.

companyId
ID for the current company/PX database received by the PX Administrator

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Servertime": "2026-05-09T17:16:58.0463529+02:00",
  "Customers": [
    {
      "Customerid": "sample string 1",
      "Name": "sample string 2",
      "Organizationcode": "sample string 3",
      "Globaltype": 4,
      "Countrycode": "sample string 5",
      "Languagecode": "sample string 6",
      "Companycode": "sample string 7",
      "Currency": "sample string 8",
      "Address": "sample string 9",
      "Phone1": "sample string 10",
      "Phone2": "sample string 11",
      "Phone3": "sample string 12",
      "Email": "sample string 13",
      "Www": "sample string 14",
      "Contactname": "sample string 15",
      "Contacttitle": "sample string 16",
      "Contactphone1": "sample string 17",
      "Contactphone2": "sample string 18",
      "Contactemail": "sample string 19",
      "Lastaction": "2026-05-09T17:16:58.0463529+02:00",
      "Blocked": true,
      "Closed": true
    },
    {
      "Customerid": "sample string 1",
      "Name": "sample string 2",
      "Organizationcode": "sample string 3",
      "Globaltype": 4,
      "Countrycode": "sample string 5",
      "Languagecode": "sample string 6",
      "Companycode": "sample string 7",
      "Currency": "sample string 8",
      "Address": "sample string 9",
      "Phone1": "sample string 10",
      "Phone2": "sample string 11",
      "Phone3": "sample string 12",
      "Email": "sample string 13",
      "Www": "sample string 14",
      "Contactname": "sample string 15",
      "Contacttitle": "sample string 16",
      "Contactphone1": "sample string 17",
      "Contactphone2": "sample string 18",
      "Contactemail": "sample string 19",
      "Lastaction": "2026-05-09T17:16:58.0463529+02:00",
      "Blocked": true,
      "Closed": true
    },
    {
      "Customerid": "sample string 1",
      "Name": "sample string 2",
      "Organizationcode": "sample string 3",
      "Globaltype": 4,
      "Countrycode": "sample string 5",
      "Languagecode": "sample string 6",
      "Companycode": "sample string 7",
      "Currency": "sample string 8",
      "Address": "sample string 9",
      "Phone1": "sample string 10",
      "Phone2": "sample string 11",
      "Phone3": "sample string 12",
      "Email": "sample string 13",
      "Www": "sample string 14",
      "Contactname": "sample string 15",
      "Contacttitle": "sample string 16",
      "Contactphone1": "sample string 17",
      "Contactphone2": "sample string 18",
      "Contactemail": "sample string 19",
      "Lastaction": "2026-05-09T17:16:58.0463529+02:00",
      "Blocked": true,
      "Closed": true
    }
  ],
  "Message": {
    "Messagetype": 1,
    "Datareference": "sample string 2",
    "Messagetext": "sample string 3",
    "Created": "sample string 4",
    "Noofrowssub1": 1,
    "Noofrowssub2": 1,
    "Noofrowssub3": 1,
    "Noofrowssub4": 1,
    "Noofrowssub5": 1,
    "Noofrowssub6": 1,
    "AutoInvoiceData": {
      "Status": 1,
      "Documentid": 2,
      "Errortext": "sample string 3",
      "Xmlfilesuffix": "sample string 4",
      "Filereference": "sample string 5",
      "Document": "QEBA",
      "Attachments": [
        {
          "Attachmenttype": 1,
          "Documentid": 2,
          "Attachmentid": 1,
          "Filereference": "sample string 3",
          "Filename": "sample string 4",
          "DceInvoice": "QEBA"
        },
        {
          "Attachmenttype": 1,
          "Documentid": 2,
          "Attachmentid": 1,
          "Filereference": "sample string 3",
          "Filename": "sample string 4",
          "DceInvoice": "QEBA"
        },
        {
          "Attachmenttype": 1,
          "Documentid": 2,
          "Attachmentid": 1,
          "Filereference": "sample string 3",
          "Filename": "sample string 4",
          "DceInvoice": "QEBA"
        }
      ]
    }
  }
}

application/xml, text/xml

Sample:
<CustomerHead xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Visma.PXWebApi.Domain.Entities.Registration">
  <Customers>
    <Customer>
      <Address>sample string 9</Address>
      <Blocked>true</Blocked>
      <Closed>true</Closed>
      <Companycode>sample string 7</Companycode>
      <Contactemail>sample string 19</Contactemail>
      <Contactname>sample string 15</Contactname>
      <Contactphone1>sample string 17</Contactphone1>
      <Contactphone2>sample string 18</Contactphone2>
      <Contacttitle>sample string 16</Contacttitle>
      <Countrycode>sample string 5</Countrycode>
      <Currency>sample string 8</Currency>
      <Customerid>sample string 1</Customerid>
      <Email>sample string 13</Email>
      <Globaltype>4</Globaltype>
      <Languagecode>sample string 6</Languagecode>
      <Lastaction>2026-05-09T17:16:58.0463529+02:00</Lastaction>
      <Name>sample string 2</Name>
      <Organizationcode>sample string 3</Organizationcode>
      <Phone1>sample string 10</Phone1>
      <Phone2>sample string 11</Phone2>
      <Phone3>sample string 12</Phone3>
      <Www>sample string 14</Www>
    </Customer>
    <Customer>
      <Address>sample string 9</Address>
      <Blocked>true</Blocked>
      <Closed>true</Closed>
      <Companycode>sample string 7</Companycode>
      <Contactemail>sample string 19</Contactemail>
      <Contactname>sample string 15</Contactname>
      <Contactphone1>sample string 17</Contactphone1>
      <Contactphone2>sample string 18</Contactphone2>
      <Contacttitle>sample string 16</Contacttitle>
      <Countrycode>sample string 5</Countrycode>
      <Currency>sample string 8</Currency>
      <Customerid>sample string 1</Customerid>
      <Email>sample string 13</Email>
      <Globaltype>4</Globaltype>
      <Languagecode>sample string 6</Languagecode>
      <Lastaction>2026-05-09T17:16:58.0463529+02:00</Lastaction>
      <Name>sample string 2</Name>
      <Organizationcode>sample string 3</Organizationcode>
      <Phone1>sample string 10</Phone1>
      <Phone2>sample string 11</Phone2>
      <Phone3>sample string 12</Phone3>
      <Www>sample string 14</Www>
    </Customer>
    <Customer>
      <Address>sample string 9</Address>
      <Blocked>true</Blocked>
      <Closed>true</Closed>
      <Companycode>sample string 7</Companycode>
      <Contactemail>sample string 19</Contactemail>
      <Contactname>sample string 15</Contactname>
      <Contactphone1>sample string 17</Contactphone1>
      <Contactphone2>sample string 18</Contactphone2>
      <Contacttitle>sample string 16</Contacttitle>
      <Countrycode>sample string 5</Countrycode>
      <Currency>sample string 8</Currency>
      <Customerid>sample string 1</Customerid>
      <Email>sample string 13</Email>
      <Globaltype>4</Globaltype>
      <Languagecode>sample string 6</Languagecode>
      <Lastaction>2026-05-09T17:16:58.0463529+02:00</Lastaction>
      <Name>sample string 2</Name>
      <Organizationcode>sample string 3</Organizationcode>
      <Phone1>sample string 10</Phone1>
      <Phone2>sample string 11</Phone2>
      <Phone3>sample string 12</Phone3>
      <Www>sample string 14</Www>
    </Customer>
  </Customers>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/Visma.PXWebApi.Domain.Entities.Misc">
    <d2p1:AutoInvoiceData>
      <d2p1:Attachments>
        <d2p1:AutoInvoiceAttachment>
          <d2p1:Attachmentid>1</d2p1:Attachmentid>
          <d2p1:Attachmenttype>1</d2p1:Attachmenttype>
          <d2p1:DceInvoice>QEBA</d2p1:DceInvoice>
          <d2p1:Documentid>2</d2p1:Documentid>
          <d2p1:Filename>sample string 4</d2p1:Filename>
          <d2p1:Filereference>sample string 3</d2p1:Filereference>
        </d2p1:AutoInvoiceAttachment>
        <d2p1:AutoInvoiceAttachment>
          <d2p1:Attachmentid>1</d2p1:Attachmentid>
          <d2p1:Attachmenttype>1</d2p1:Attachmenttype>
          <d2p1:DceInvoice>QEBA</d2p1:DceInvoice>
          <d2p1:Documentid>2</d2p1:Documentid>
          <d2p1:Filename>sample string 4</d2p1:Filename>
          <d2p1:Filereference>sample string 3</d2p1:Filereference>
        </d2p1:AutoInvoiceAttachment>
        <d2p1:AutoInvoiceAttachment>
          <d2p1:Attachmentid>1</d2p1:Attachmentid>
          <d2p1:Attachmenttype>1</d2p1:Attachmenttype>
          <d2p1:DceInvoice>QEBA</d2p1:DceInvoice>
          <d2p1:Documentid>2</d2p1:Documentid>
          <d2p1:Filename>sample string 4</d2p1:Filename>
          <d2p1:Filereference>sample string 3</d2p1:Filereference>
        </d2p1:AutoInvoiceAttachment>
      </d2p1:Attachments>
      <d2p1:Document>QEBA</d2p1:Document>
      <d2p1:Documentid>2</d2p1:Documentid>
      <d2p1:Errortext>sample string 3</d2p1:Errortext>
      <d2p1:Filereference>sample string 5</d2p1:Filereference>
      <d2p1:Status>1</d2p1:Status>
      <d2p1:Xmlfilesuffix>sample string 4</d2p1:Xmlfilesuffix>
    </d2p1:AutoInvoiceData>
    <d2p1:Created>sample string 4</d2p1:Created>
    <d2p1:Datareference>sample string 2</d2p1:Datareference>
    <d2p1:Messagetext>sample string 3</d2p1:Messagetext>
    <d2p1:Messagetype>1</d2p1:Messagetype>
    <d2p1:Noofrowssub1>1</d2p1:Noofrowssub1>
    <d2p1:Noofrowssub2>1</d2p1:Noofrowssub2>
    <d2p1:Noofrowssub3>1</d2p1:Noofrowssub3>
    <d2p1:Noofrowssub4>1</d2p1:Noofrowssub4>
    <d2p1:Noofrowssub5>1</d2p1:Noofrowssub5>
    <d2p1:Noofrowssub6>1</d2p1:Noofrowssub6>
  </Message>
  <Servertime>2026-05-09T17:16:58.0463529+02:00</Servertime>
</CustomerHead>