POST pxapi/MultiCompanyEmployee?employmentStart={employmentStart}&employmentEnd={employmentEnd}&companyCode={companyCode}&userid={userid}&dummy={dummy}&data={data}

Internal methods for Visma PX

Request Information

Parameters

NameDescriptionAdditional information
employee
No documentation available.

FromBody Define this parameter in the request body.

employmentStart
No documentation available.

Define this parameter in the request URI.

employmentEnd
No documentation available.

Define this parameter in the request URI.

companyCode
No documentation available.

Define this parameter in the request URI.

userid
No documentation available.

Define this parameter in the request URI.

dummy
No documentation available.

Define this parameter in the request URI.

data
No documentation available.

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "Employeeid": "sample string 1",
  "Name": "sample string 2",
  "Employmentstart": "2026-05-09T17:18:39.8705296+02:00",
  "Employmentend": "2026-05-09T17:18:39.8705296+02:00",
  "Employmenttypecurrent": 4,
  "Worktimecurrent": 5,
  "Gender": "sample string 6",
  "Projectresponsible": 7,
  "Emailid": "sample string 8",
  "Phonework": "sample string 9",
  "Role": "sample string 10",
  "Attestgroup": "sample string 11",
  "Costcenter": "sample string 12",
  "Companycode": "sample string 13",
  "Object6": "sample string 14",
  "Object7": "sample string 15",
  "Object8": "sample string 16",
  "Periodclass": "sample string 17",
  "Debgradelimit": 1.0,
  "Blocked": true,
  "Groups": [
    {
      "Id": "sample string 1",
      "Grouptype": "sample string 2",
      "Groupid": "sample string 3"
    },
    {
      "Id": "sample string 1",
      "Grouptype": "sample string 2",
      "Groupid": "sample string 3"
    },
    {
      "Id": "sample string 1",
      "Grouptype": "sample string 2",
      "Groupid": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Visma.PXWebApi.Domain.Entities.Registration">
  <Attestgroup>sample string 11</Attestgroup>
  <Blocked>true</Blocked>
  <Companycode>sample string 13</Companycode>
  <Costcenter>sample string 12</Costcenter>
  <Debgradelimit>1</Debgradelimit>
  <Emailid>sample string 8</Emailid>
  <Employeeid>sample string 1</Employeeid>
  <Employmentend>2026-05-09T17:18:39.8705296+02:00</Employmentend>
  <Employmentstart>2026-05-09T17:18:39.8705296+02:00</Employmentstart>
  <Employmenttypecurrent>4</Employmenttypecurrent>
  <Gender>sample string 6</Gender>
  <Groups>
    <GroupReference>
      <Groupid>sample string 3</Groupid>
      <Grouptype>sample string 2</Grouptype>
      <Id>sample string 1</Id>
    </GroupReference>
    <GroupReference>
      <Groupid>sample string 3</Groupid>
      <Grouptype>sample string 2</Grouptype>
      <Id>sample string 1</Id>
    </GroupReference>
    <GroupReference>
      <Groupid>sample string 3</Groupid>
      <Grouptype>sample string 2</Grouptype>
      <Id>sample string 1</Id>
    </GroupReference>
  </Groups>
  <Name>sample string 2</Name>
  <Object6>sample string 14</Object6>
  <Object7>sample string 15</Object7>
  <Object8>sample string 16</Object8>
  <Periodclass>sample string 17</Periodclass>
  <Phonework>sample string 9</Phonework>
  <Projectresponsible>7</Projectresponsible>
  <Role>sample string 10</Role>
  <Worktimecurrent>5</Worktimecurrent>
</Employee>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "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:
<Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Visma.PXWebApi.Domain.Entities.Misc">
  <AutoInvoiceData>
    <Attachments>
      <AutoInvoiceAttachment>
        <Attachmentid>1</Attachmentid>
        <Attachmenttype>1</Attachmenttype>
        <DceInvoice>QEBA</DceInvoice>
        <Documentid>2</Documentid>
        <Filename>sample string 4</Filename>
        <Filereference>sample string 3</Filereference>
      </AutoInvoiceAttachment>
      <AutoInvoiceAttachment>
        <Attachmentid>1</Attachmentid>
        <Attachmenttype>1</Attachmenttype>
        <DceInvoice>QEBA</DceInvoice>
        <Documentid>2</Documentid>
        <Filename>sample string 4</Filename>
        <Filereference>sample string 3</Filereference>
      </AutoInvoiceAttachment>
      <AutoInvoiceAttachment>
        <Attachmentid>1</Attachmentid>
        <Attachmenttype>1</Attachmenttype>
        <DceInvoice>QEBA</DceInvoice>
        <Documentid>2</Documentid>
        <Filename>sample string 4</Filename>
        <Filereference>sample string 3</Filereference>
      </AutoInvoiceAttachment>
    </Attachments>
    <Document>QEBA</Document>
    <Documentid>2</Documentid>
    <Errortext>sample string 3</Errortext>
    <Filereference>sample string 5</Filereference>
    <Status>1</Status>
    <Xmlfilesuffix>sample string 4</Xmlfilesuffix>
  </AutoInvoiceData>
  <Created>sample string 4</Created>
  <Datareference>sample string 2</Datareference>
  <Messagetext>sample string 3</Messagetext>
  <Messagetype>1</Messagetype>
  <Noofrowssub1>1</Noofrowssub1>
  <Noofrowssub2>1</Noofrowssub2>
  <Noofrowssub3>1</Noofrowssub3>
  <Noofrowssub4>1</Noofrowssub4>
  <Noofrowssub5>1</Noofrowssub5>
  <Noofrowssub6>1</Noofrowssub6>
</Message>