POST api/ProductPriceImports

Request Information

URI Parameters

None.

Body Parameters

PriceImport
NameDescriptionTypeAdditional information
Barcode

string

None.

CatalogueID

integer

None.

SKUCostPrice

decimal number

None.

SellingPrice

decimal number

None.

EndDate

date

None.

SuppliersProductCode

string

None.

CatalogueProviderParentProductCode

string

None.

CatalogueProviderProductCode

string

None.

StartDate

date

None.

Reason

PriceReason

None.

OverwriteMatchingPrices

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Barcode": "sample string 1",
  "CatalogueID": 2,
  "SKUCostPrice": 1.0,
  "SellingPrice": 1.0,
  "EndDate": "2024-05-17T12:14:59.5827037+00:00",
  "SuppliersProductCode": "sample string 3",
  "CatalogueProviderParentProductCode": "sample string 4",
  "CatalogueProviderProductCode": "sample string 5",
  "StartDate": "2024-05-17T12:14:59.5827037+00:00",
  "Reason": 0,
  "OverwriteMatchingPrices": true
}

application/xml, text/xml

Sample:
<PriceImport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fidelity.Fusion.Catalogue.Common.Models.CatalogueProvider">
  <Barcode>sample string 1</Barcode>
  <CatalogueID>2</CatalogueID>
  <CatalogueProviderParentProductCode>sample string 4</CatalogueProviderParentProductCode>
  <CatalogueProviderProductCode>sample string 5</CatalogueProviderProductCode>
  <EndDate>2024-05-17T12:14:59.5827037+00:00</EndDate>
  <OverwriteMatchingPrices>true</OverwriteMatchingPrices>
  <Reason>PriceChange</Reason>
  <SKUCostPrice>1</SKUCostPrice>
  <SellingPrice>1</SellingPrice>
  <StartDate>2024-05-17T12:14:59.5827037+00:00</StartDate>
  <SuppliersProductCode>sample string 3</SuppliersProductCode>
</PriceImport>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IProductImportResult
NameDescriptionTypeAdditional information
Action

eProductImportResult

None.

ParentNotFound

boolean

None.

ID

globally unique identifier

None.

CategoryId

integer

None.

Barcode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Action": 1,
  "ParentNotFound": true,
  "ID": "02d17336-ddaf-487d-87d5-1f10031d21dd",
  "CategoryId": 2,
  "Barcode": "sample string 3"
}

application/xml, text/xml

Sample:
<IProductImportResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fidelity.Fusion.Catalogue.Common.Models.CatalogueProvider">
  <Action>Updated</Action>
  <Barcode>sample string 3</Barcode>
  <CategoryId>2</CategoryId>
  <ID>02d17336-ddaf-487d-87d5-1f10031d21dd</ID>
  <ParentNotFound>true</ParentNotFound>
</IProductImportResult>