Facture Farfetch PDF
Facture Farfetch PDF
Facture Farfetch PDF
January 2015
Scope
This document is intended for use by technical representatives of our partners when
synchronizing with Farfetch API.
Definitions
Key - Parameter used in our API to authenticate and define the store the request is being
made for. Please request Farfecth for a valid key for your company, we also provide a test
key to be used on our sandbox environment for testing purposes.
Technical considerations
This document is written considering that the reader is well known in .net techonogies wich
is the main API technology used by Farftech web services.
Live
Endpoint url: http://sales-ws.farfetch.com/pub/apistock.asmx
Sandbox
Endpoint url: http://rcs01-sales.fftech.info/pub/apistock.asmx
Test store:
Store name: BOB
StoreId: 9441;
Key: nExd8CzMRDo=
FARFETCH ......................................................................................................................................1
API Technical Manual ...............................................................................................................1
Intent ..............................................................................................................................................2
Scope .............................................................................................................................................2
Definitions.....................................................................................................................................2
Technical considerations .........................................................................................................2
Endpoints and sandbox ............................................................................................................2
Functions ............................................................................................................................................6
BarcodeProcess ....................................................................................................................6
BarcodeProcessAbsoluteQuantity......................................................................................7
GetAllItems.............................................................................................................................8
GetAllItemsWithStock ...........................................................................................................9
GetAllOrders ........................................................................................................................10
GetCustomer........................................................................................................................11
GetFFItem ............................................................................................................................13
GetInvoice ............................................................................................................................14
GetItemTotalStock ..............................................................................................................16
GetOrdersByDate................................................................................................................17
GetOrdersHeaders..............................................................................................................18
GetOrdersRows ...................................................................................................................19
GetPackages .......................................................................................................................20
GetReturns ...........................................................................................................................20
GetStockByBarcode ...........................................................................................................21
GetStockBySize ..................................................................................................................22
ItemIDProcess .....................................................................................................................23
ItemIDProcessAbsoluteQuantity .......................................................................................25
OrderStatusUpdate .............................................................................................................26
SendOrderStep1toStep2....................................................................................................27
SendOrderStep3toStep4....................................................................................................28
SendOrderStep3toStep4WithPackages ..........................................................................29
StockCompare .....................................................................................................................29
ValidateReturn .....................................................................................................................30
FARFETCH ......................................................................................................................................1
API Technical Manual ...............................................................................................................1
Intent ..............................................................................................................................................2
Scope .............................................................................................................................................2
Definitions.....................................................................................................................................2
Technical considerations .........................................................................................................2
Endpoints and sandbox ............................................................................................................2
Functions ............................................................................................................................................6
BarcodeProcess ....................................................................................................................6
BarcodeProcessAbsoluteQuantity......................................................................................7
GetAllItems.............................................................................................................................8
GetAllItemsWithStock ...........................................................................................................9
GetAllOrders ........................................................................................................................10
GetCustomer........................................................................................................................11
GetFFItem ............................................................................................................................13
GetInvoice ............................................................................................................................14
GetItemTotalStock ..............................................................................................................16
GetOrdersByDate................................................................................................................17
GetOrdersHeaders..............................................................................................................18
GetOrdersRows ...................................................................................................................19
GetPackages .......................................................................................................................20
GetReturns ...........................................................................................................................20
GetStockByBarcode ...........................................................................................................21
GetStockBySize ..................................................................................................................22
ItemIDProcess .....................................................................................................................23
ItemIDProcessAbsoluteQuantity .......................................................................................25
OrderStatusUpdate .............................................................................................................26
SendOrderStep1toStep2....................................................................................................27
SendOrderStep3toStep4....................................................................................................28
SendOrderStep3toStep4WithPackages ..........................................................................29
StockCompare .....................................................................................................................29
ValidateReturn .....................................................................................................................30
BarcodeProcess
This will add or remove (stock in, stock out) an amount of stock from a given barcode.
If the amount is negative, it will remove that amount from the stock; if positive it will add.
Accepts Farfetch barcodes and store barcodes if defined previously. You can define Store
Barcodes when creating the product, or if the product was already created with a Store
Barcode please inform your AM/PS contact to help further.
Will set the current stock of a given barcode. Accepts Farfetch barcodes and store
barcodes if defined previously.
Accepts Farfetch barcodes and store barcodes if defined previously. You can define Store
Barcodes when creating the product, or if the product was already created with a Store
Barcode please inform your AM/PS contact to help further.
Will return all orders that are waiting for stock validation.
Date Interval Validation: The interval between the start date and end date cannot exceed
31 days
Other Information: The client application from the partner site will call the API/URL on a
regular basis (example: every “n” minutes) typically it will request the invoices from the
current day. The application on Farfetch side will deliver the information in XML format and
the reply to the GET request. (The XML definition will be proposed latter)
IMPORTANT Farfetch will always deliver all invoices that have been created on the date
interval requested. This means that the client application on the partner will have the
responsibility to identify the invoices that it has already received (repeated) and ignore
them.
Example:
First Request: FF returns invoices A132 and A145 latter on 3 more invoices are created
(A576, A689, and A888)
<OrderWorkflowStepCommonStoreRowDTO>
<ArticleId>int</ArticleId>
<ArticleReference>string</ArticleReference>
<OrderLineId>int</OrderLineId>
<Quantity>int</Quantity>
<Size>string</Size>
<SizePosition>int</SizePosition>
<Price>double</Price>
<LineStatus>int</LineStatus>
<ShippingDescription>string</ShippingDescription>
<OrderFromPortal>int</OrderFromPortal>
<ShowWarning>boolean</ShowWarning>
<StoreSku>string</StoreSku>
<LogisticsDocPath>string</LogisticsDocPath>
<Ups>int</Ups>
<TrackingNumber>string</TrackingNumber>
<BoxName>string</BoxName>
<BoxVolWeight>decimal</BoxVolWeight>
<IsDuplicate>int</IsDuplicate>
<Total>double</Total>
<Reason>string</Reason>
<ReasonNotes>string</ReasonNotes>
<ReturnOrderId>int</ReturnOrderId>
<Scale>string</Scale>
<ImageUrl>string</ImageUrl>
<StoreBarcode>string</StoreBarcode>
<StoreTotalDDP>double</StoreTotalDDP>
<DiscountPromocode>double</DiscountPromocode>
<ItemBasePrice>double</ItemBasePrice>
<ItemBaseVat>double</ItemBaseVat>
<TotalVatDiscount>double</TotalVatDiscount>
<CustomizationDetails>string</CustomizationDetails>
</OrderWorkflowStepCommonStoreRowDTO>
Object properties:
<Box>
<Id>int</Id>
<Description>string</Description>
</Box>
GetReturns
Will return the order return information
<OrderId>int</OrderId>
<OrderCode>string</OrderCode>
<PointId>int</PointId>
<PointCode>string</PointCode>
<DateCreated>dateTime</DateCreated>
<OrderLines>
<ReturnOrderLineDto xsi:nil="true" />
<ReturnOrderLineDto xsi:nil="true" />
</OrderLines>
<CountryId>string</CountryId>
<ZoneEuro>boolean</ZoneEuro>
<PropInvoice>int</PropInvoice>
<ShipFromAddress>int</ShipFromAddress>
<IsPersonalShopper>int</IsPersonalShopper>
<CollectInStore>boolean</CollectInStore>
<CollectPoint>int</CollectPoint>
<Barcode>string</Barcode>
<Status>int</Status>
N/A
Will return the amount of stock for a given size of a given article id.
SetShippingAddress
Will update the order shipping address.
Output Type Description Notes
ErrMsg String A message containing the error, if
it occurs.
ItemIDProcessResult Boolean True if it was a successful call.
False if it wasn’t.
Output Type Description Notes
ErrMsg String A message containing the error, if
it occurs.
ItemIDProcessResult Boolean True if it was a successful call.
False if it wasn’t.
N/A
<OrderLine>
<Id>int</Id>
<Box>
<Id>int</Id>
<Description>string</Description>
<Quantity>int</Quantity>
</Box>
</OrderLine>
StockCompare
N/A