POST api/integration/AddOrUpdateProduct

Request Information

URI Parameters

None.

Body Parameters

AddOrUpdateProductRQ
NameDescriptionTypeAdditional information
UserProductId

integer

None.

SiteProductId

integer

None.

NewSiteProductName

string

None.

Description

string

None.

BarCode

string

None.

IntegrationCode

string

None.

PostMatureDate

date

None.

IsFeaturedProduct

boolean

None.

IsNoPostMatureDate

boolean

None.

Stock

integer

None.

QuantityLimit

integer

None.

Psf

string

None.

UnitPrice

string

None.

IpAddress

string

None.

Source

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserProductId": 1,
  "SiteProductId": 2,
  "NewSiteProductName": "sample string 3",
  "Description": "sample string 4",
  "BarCode": "sample string 5",
  "IntegrationCode": "sample string 6",
  "PostMatureDate": "2025-10-27T19:03:43.7468478+03:00",
  "IsFeaturedProduct": true,
  "IsNoPostMatureDate": true,
  "Stock": 9,
  "QuantityLimit": 1,
  "Psf": "sample string 10",
  "UnitPrice": "sample string 11",
  "IpAddress": "sample string 12",
  "Source": "sample string 13"
}

application/xml, text/xml

Sample:
<AddOrUpdateProductRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EczaneApp.Model.API">
  <IpAddress xmlns="http://schemas.datacontract.org/2004/07/EczaneApp.Model">sample string 12</IpAddress>
  <Source xmlns="http://schemas.datacontract.org/2004/07/EczaneApp.Model">sample string 13</Source>
  <BarCode>sample string 5</BarCode>
  <Description>sample string 4</Description>
  <IntegrationCode>sample string 6</IntegrationCode>
  <IsFeaturedProduct>true</IsFeaturedProduct>
  <IsNoPostMatureDate>true</IsNoPostMatureDate>
  <NewSiteProductName>sample string 3</NewSiteProductName>
  <PostMatureDate>2025-10-27T19:03:43.7468478+03:00</PostMatureDate>
  <Psf>sample string 10</Psf>
  <QuantityLimit>1</QuantityLimit>
  <SiteProductId>2</SiteProductId>
  <Stock>9</Stock>
  <UnitPrice>sample string 11</UnitPrice>
  <UserProductId>1</UserProductId>
</AddOrUpdateProductRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResponseOfAddOrUpdateProductRS
NameDescriptionTypeAdditional information
Result

AddOrUpdateProductRS

None.

Success

boolean

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "ThisIsANewSiteProduct": true,
    "IsExistingUserProduct": true,
    "IsWaitForApprovalUserProduct": true,
    "NewRecordId": 4,
    "SiteProductId": 5,
    "Success": true
  },
  "Success": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ServiceResponseOfAddOrUpdateProductRS0Iqqofk2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EczaneApp.Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Success>true</Success>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/EczaneApp.Model.API">
    <IsSuccess>true</IsSuccess>
    <Message>sample string 8</Message>
    <Success>true</Success>
    <NewRecordId>4</NewRecordId>
    <SiteProductId>5</SiteProductId>
    <d2p1:IsExistingUserProduct>true</d2p1:IsExistingUserProduct>
    <d2p1:IsWaitForApprovalUserProduct>true</d2p1:IsWaitForApprovalUserProduct>
    <d2p1:ThisIsANewSiteProduct>true</d2p1:ThisIsANewSiteProduct>
  </Result>
</ServiceResponseOfAddOrUpdateProductRS0Iqqofk2>