POST api/partners/v1/folderproducts/createnew

Request Information

URI Parameters

None.

Body Parameters

PartnerFolderProductCreateRequest
NameDescriptionTypeAdditional information
CustomerFolderId

integer

None.

ProductId

integer

None.

Quantity

decimal number

None.

UnitPrice

decimal number

None.

DiscountValue

decimal number

None.

PayoutValue

decimal number

None.

StartDate

date

None.

EndDate

date

None.

Notes

string

None.

Treatments

Collection of PartnerFolderProductTreatmentCreateRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerFolderId": 1,
  "ProductId": 2,
  "Quantity": 3.1,
  "UnitPrice": 4.1,
  "DiscountValue": 5.1,
  "PayoutValue": 6.1,
  "StartDate": "2026-08-17T17:33:28.2168048+03:00",
  "EndDate": "2026-08-17T17:33:28.2168048+03:00",
  "Notes": "sample string 9",
  "Treatments": [
    {
      "TreatmentId": 1,
      "Quantity": 2
    },
    {
      "TreatmentId": 1,
      "Quantity": 2
    }
  ]
}

application/xml, text/xml

Sample:
<PartnerFolderProductCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Atlantis.Library.Web.Models">
  <CustomerFolderId>1</CustomerFolderId>
  <DiscountValue>5.1</DiscountValue>
  <EndDate>2026-08-17T17:33:28.2168048+03:00</EndDate>
  <Notes>sample string 9</Notes>
  <PayoutValue>6.1</PayoutValue>
  <ProductId>2</ProductId>
  <Quantity>3.1</Quantity>
  <StartDate>2026-08-17T17:33:28.2168048+03:00</StartDate>
  <Treatments>
    <PartnerFolderProductTreatmentCreateRequest>
      <Quantity>2</Quantity>
      <TreatmentId>1</TreatmentId>
    </PartnerFolderProductTreatmentCreateRequest>
    <PartnerFolderProductTreatmentCreateRequest>
      <Quantity>2</Quantity>
      <TreatmentId>1</TreatmentId>
    </PartnerFolderProductTreatmentCreateRequest>
  </Treatments>
  <UnitPrice>4.1</UnitPrice>
</PartnerFolderProductCreateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PartnerFolderProduct
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerFolderId

integer

None.

ProductId

integer

None.

ProductType

ProductTypes

None.

StartDate

date

None.

EndDate

date

None.

Quantity

decimal number

None.

UnitPrice

decimal number

None.

DiscountValue

decimal number

None.

PayoutValue

decimal number

None.

ProductDescription

string

None.

Notes

string

None.

State

FolderProductStates

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerFolderId": 2,
  "ProductId": 3,
  "ProductType": 0,
  "StartDate": "2026-08-17T17:33:28.2324304+03:00",
  "EndDate": "2026-08-17T17:33:28.2324304+03:00",
  "Quantity": 6.1,
  "UnitPrice": 7.1,
  "DiscountValue": 8.1,
  "PayoutValue": 9.1,
  "ProductDescription": "sample string 10",
  "Notes": "sample string 11",
  "State": 0
}

application/xml, text/xml

Sample:
<PartnerFolderProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Atlantis.Library.Web.Models">
  <CustomerFolderId>2</CustomerFolderId>
  <DiscountValue>8.1</DiscountValue>
  <EndDate>2026-08-17T17:33:28.2324304+03:00</EndDate>
  <Id>1</Id>
  <Notes>sample string 11</Notes>
  <PayoutValue>9.1</PayoutValue>
  <ProductDescription>sample string 10</ProductDescription>
  <ProductId>3</ProductId>
  <ProductType>PT_THERAPY</ProductType>
  <Quantity>6.1</Quantity>
  <StartDate>2026-08-17T17:33:28.2324304+03:00</StartDate>
  <State>CFP_CANCELLED</State>
  <UnitPrice>7.1</UnitPrice>
</PartnerFolderProduct>