POST api/Product/GetProductExtras

Request Information

URI Parameters

None.

Body Parameters

GetBaseProductExtraRequest
NameDescriptionTypeAdditional information
ProductIds

Collection of integer

None.

Name

string

None.

ProductId

integer

None.

listofsync

Collection of Storedata

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductIds": [
    1,
    1
  ],
  "Name": "sample string 1",
  "ProductId": 1,
  "listofsync": [
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:27:56.6540839+00:00"
    },
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:27:56.6540839+00:00"
    }
  ],
  "Id": 1
}

application/xml, text/xml

Sample:
<GetBaseProductExtraRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <Id>1</Id>
  <Name>sample string 1</Name>
  <ProductId>1</ProductId>
  <ProductIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </ProductIds>
  <listofsync>
    <Storedata>
      <LastSync>2026-03-20T14:27:56.6540839+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
    <Storedata>
      <LastSync>2026-03-20T14:27:56.6540839+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
  </listofsync>
</GetBaseProductExtraRequest>

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 'GetBaseProductExtraRequest'.

Response Information

Resource Description

GetBaseProductExtraResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Token

globally unique identifier

None.

BaseObjects

Collection of BaseProductExtraModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "Token": "1b256229-f790-475b-a2ab-3502a93bd13e",
  "BaseObjects": [
    {
      "ProductId": 1,
      "Name": "sample string 1",
      "CostPrice": 1.0,
      "EatInSalesPrice": 1.0,
      "EatInSalesVAT": 1.1,
      "EatOutSalesPrice": 1.0,
      "EatOutSalesVAT": 1.1,
      "IsDeleted": true,
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "CreatedDate": "2026-03-20T14:27:56.6696381+00:00",
      "LastUpdated": "2026-03-20T14:27:56.6696381+00:00",
      "Id": 1
    },
    {
      "ProductId": 1,
      "Name": "sample string 1",
      "CostPrice": 1.0,
      "EatInSalesPrice": 1.0,
      "EatInSalesVAT": 1.1,
      "EatOutSalesPrice": 1.0,
      "EatOutSalesVAT": 1.1,
      "IsDeleted": true,
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "CreatedDate": "2026-03-20T14:27:56.6696381+00:00",
      "LastUpdated": "2026-03-20T14:27:56.6696381+00:00",
      "Id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<GetBaseProductExtraResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <BaseObjects xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels">
    <d2p1:BaseProductExtraModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:CreatedDate>2026-03-20T14:27:56.6696381+00:00</d2p1:CreatedDate>
      <d2p1:LastUpdated>2026-03-20T14:27:56.6696381+00:00</d2p1:LastUpdated>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:CostPrice>1</d2p1:CostPrice>
      <d2p1:EatInSalesPrice>1</d2p1:EatInSalesPrice>
      <d2p1:EatInSalesVAT>1.1</d2p1:EatInSalesVAT>
      <d2p1:EatOutSalesPrice>1</d2p1:EatOutSalesPrice>
      <d2p1:EatOutSalesVAT>1.1</d2p1:EatOutSalesVAT>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:ProductId>1</d2p1:ProductId>
    </d2p1:BaseProductExtraModel>
    <d2p1:BaseProductExtraModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:CreatedDate>2026-03-20T14:27:56.6696381+00:00</d2p1:CreatedDate>
      <d2p1:LastUpdated>2026-03-20T14:27:56.6696381+00:00</d2p1:LastUpdated>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:CostPrice>1</d2p1:CostPrice>
      <d2p1:EatInSalesPrice>1</d2p1:EatInSalesPrice>
      <d2p1:EatInSalesVAT>1.1</d2p1:EatInSalesVAT>
      <d2p1:EatOutSalesPrice>1</d2p1:EatOutSalesPrice>
      <d2p1:EatOutSalesVAT>1.1</d2p1:EatOutSalesVAT>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:ProductId>1</d2p1:ProductId>
    </d2p1:BaseProductExtraModel>
  </BaseObjects>
  <Message>sample string 2</Message>
  <Status>true</Status>
  <Token>1b256229-f790-475b-a2ab-3502a93bd13e</Token>
</GetBaseProductExtraResponse>