POST api/v1/products/product-registrations

Create a number of new ProductRegistrations. If a productId is supplied, the registration is made for an existing product. Otherwise, a new custom product is created for the WP_Customer, and the registration is made for this product. Also, a ProductRegistration can be either a credit or debit registration.

Request Information

URI Parameters

None.

Body Parameters

Collection of the registrations to create

Collection of ProductRegistrationDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

CaseId

integer

None.

ProductId

integer

None.

ProductName

string

None.

Timestamp

date

None.

Quantity

decimal number

None.

IsCreditRegistration

boolean

None.

ProductSalePrice

decimal number

None.

Ean

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "userId": 2,
    "caseId": 3,
    "productId": 4,
    "productName": "sample string 5",
    "timestamp": "2025-12-08T10:18:47.1646879+01:00",
    "quantity": 6.0,
    "isCreditRegistration": true,
    "productSalePrice": 1.0,
    "ean": "sample string 8"
  },
  {
    "id": 1,
    "userId": 2,
    "caseId": 3,
    "productId": 4,
    "productName": "sample string 5",
    "timestamp": "2025-12-08T10:18:47.1646879+01:00",
    "quantity": 6.0,
    "isCreditRegistration": true,
    "productSalePrice": 1.0,
    "ean": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductRegistrationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
  <ProductRegistrationDto>
    <CaseId>3</CaseId>
    <Ean>sample string 8</Ean>
    <Id>1</Id>
    <IsCreditRegistration>true</IsCreditRegistration>
    <ProductId>4</ProductId>
    <ProductName>sample string 5</ProductName>
    <ProductSalePrice>1</ProductSalePrice>
    <Quantity>6</Quantity>
    <Timestamp>2025-12-08T10:18:47.1646879+01:00</Timestamp>
    <UserId>2</UserId>
  </ProductRegistrationDto>
  <ProductRegistrationDto>
    <CaseId>3</CaseId>
    <Ean>sample string 8</Ean>
    <Id>1</Id>
    <IsCreditRegistration>true</IsCreditRegistration>
    <ProductId>4</ProductId>
    <ProductName>sample string 5</ProductName>
    <ProductSalePrice>1</ProductSalePrice>
    <Quantity>6</Quantity>
    <Timestamp>2025-12-08T10:18:47.1646879+01:00</Timestamp>
    <UserId>2</UserId>
  </ProductRegistrationDto>
</ArrayOfProductRegistrationDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

Collection of ProductRegistrationDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

CaseId

integer

None.

ProductId

integer

None.

ProductName

string

None.

Timestamp

date

None.

Quantity

decimal number

None.

IsCreditRegistration

boolean

None.

ProductSalePrice

decimal number

None.

Ean

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "userId": 2,
    "caseId": 3,
    "productId": 4,
    "productName": "sample string 5",
    "timestamp": "2025-12-08T10:18:47.1656875+01:00",
    "quantity": 6.0,
    "isCreditRegistration": true,
    "productSalePrice": 1.0,
    "ean": "sample string 8"
  },
  {
    "id": 1,
    "userId": 2,
    "caseId": 3,
    "productId": 4,
    "productName": "sample string 5",
    "timestamp": "2025-12-08T10:18:47.1656875+01:00",
    "quantity": 6.0,
    "isCreditRegistration": true,
    "productSalePrice": 1.0,
    "ean": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductRegistrationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
  <ProductRegistrationDto>
    <CaseId>3</CaseId>
    <Ean>sample string 8</Ean>
    <Id>1</Id>
    <IsCreditRegistration>true</IsCreditRegistration>
    <ProductId>4</ProductId>
    <ProductName>sample string 5</ProductName>
    <ProductSalePrice>1</ProductSalePrice>
    <Quantity>6</Quantity>
    <Timestamp>2025-12-08T10:18:47.1656875+01:00</Timestamp>
    <UserId>2</UserId>
  </ProductRegistrationDto>
  <ProductRegistrationDto>
    <CaseId>3</CaseId>
    <Ean>sample string 8</Ean>
    <Id>1</Id>
    <IsCreditRegistration>true</IsCreditRegistration>
    <ProductId>4</ProductId>
    <ProductName>sample string 5</ProductName>
    <ProductSalePrice>1</ProductSalePrice>
    <Quantity>6</Quantity>
    <Timestamp>2025-12-08T10:18:47.1656875+01:00</Timestamp>
    <UserId>2</UserId>
  </ProductRegistrationDto>
</ArrayOfProductRegistrationDto>