POST api/StockOrder/Import

Request Information

URI Parameters

None.

Body Parameters

StockOrderHeaderViewModel
NameDescriptionTypeAdditional information
CatalogueId

integer

None.

SiteCode

integer

None.

TCPReferenceCode

integer

None.

TCPTransactionReference

string

None.

TCPDateGenerated

date

None.

TCPNote

string

None.

TCPDateCreated

date

None.

TCPDateModified

date

None.

TCPDateDelivery

date

None.

TCPSupplier

integer

None.

TCPDiscount

decimal number

None.

TCPCharge

decimal number

None.

Temperature

Temperature

None.

ExpectedDeliveryDate

date

None.

Details

Collection of StockOrderDetailViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "CatalogueId": 1,
  "SiteCode": 2,
  "TCPReferenceCode": 3,
  "TCPTransactionReference": "sample string 4",
  "TCPDateGenerated": "2024-11-23T16:06:21.7199576+00:00",
  "TCPNote": "sample string 6",
  "TCPDateCreated": "2024-11-23T16:06:21.7199576+00:00",
  "TCPDateModified": "2024-11-23T16:06:21.7199576+00:00",
  "TCPDateDelivery": "2024-11-23T16:06:21.7199576+00:00",
  "TCPSupplier": 9,
  "TCPDiscount": 10.1,
  "TCPCharge": 11.1,
  "Temperature": 0,
  "ExpectedDeliveryDate": "2024-11-23T16:06:21.7199576+00:00",
  "Details": [
    {
      "ProductID": "141d458e-0a69-4176-a627-057434a397ac",
      "SKUCostPrice": 1.0,
      "SKUSellingPrice": 1.0,
      "SKUSize": 1.0,
      "SKUName": "sample string 2",
      "TaxRate": 1.0,
      "TaxName": "sample string 3",
      "QuantityRequested": 4.1,
      "QuantityAccepted": 5.1,
      "QuantityRejected": 6.1,
      "LineNumber": 7,
      "ProviderStatus": 0,
      "ProviderNotes": "sample string 8",
      "QuantitySubstituted": 9.1,
      "ExpectedDeliveryDate": "2024-11-23T16:06:21.7199576+00:00",
      "TemperatureAtTime": 0
    },
    {
      "ProductID": "141d458e-0a69-4176-a627-057434a397ac",
      "SKUCostPrice": 1.0,
      "SKUSellingPrice": 1.0,
      "SKUSize": 1.0,
      "SKUName": "sample string 2",
      "TaxRate": 1.0,
      "TaxName": "sample string 3",
      "QuantityRequested": 4.1,
      "QuantityAccepted": 5.1,
      "QuantityRejected": 6.1,
      "LineNumber": 7,
      "ProviderStatus": 0,
      "ProviderNotes": "sample string 8",
      "QuantitySubstituted": 9.1,
      "ExpectedDeliveryDate": "2024-11-23T16:06:21.7199576+00:00",
      "TemperatureAtTime": 0
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IStockOrderImportResult
NameDescriptionTypeAdditional information
Action

CatalogueOrderImportResult

None.

ID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Action": 0,
  "ID": "c04863f4-bf3b-4540-a6d6-02182f020d61"
}

application/xml, text/xml

Sample:
<IStockOrderImportResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fidelity.Fusion.Catalogue.Common.Models.CatalogueProvider">
  <Action>OrderFailed</Action>
  <ID>c04863f4-bf3b-4540-a6d6-02182f020d61</ID>
</IStockOrderImportResult>