Requests & Calls

The API works over HTTPS and follows REST semantics. Authentication is handled with HTTP Basic - method. The credentials used are those which are set-up for the account to access the Fruugo Retailer Portal.

Download Orders

URLhttps://www.fruugo.com/orders/download
HTTP MethodGET
ReturnsOrder XML for the orders released between given time boundaries, MIME type "application/XML"

Parameters

NameFormatMandatoryDescription
fromISO 8601 date or datetimeYesStart date for the order listing
toISO 8601 date or datetimeNoEnd date for the order listing

Download Orders - v2 - includes customer currency information and Fruugo tax IDs for customers declarations

URLhttps://www.fruugo.com/orders/download/v2
HTTP MethodGET
ReturnsOrder XML for the orders released between given time boundaries, MIME type "application/XML"

Parameters

NameFormatMandatoryDescription
fromISO 8601 date or datetimeYesStart date for the order listing
toISO 8601 date or datetimeNoEnd date for the order listing


Confirm Order

URLhttps://www.fruugo.com/orders/confirm
HTTP MethodPOST
ReturnsOrder XML for the confirmed order, MIME type "application/xml"

Parameters

NameFormatMandatoryDescription
orderIdIntegerYes

The id of the order to confirm, taken from orderId - element in the XML.

itemItem IdentifiersNofruugoProductId, fruugoSkuId and quantity of the item to confirm, separated with commas. The parameter can be repeated multiple times in one request to confirm multiple items at a time. If parameter is not given, all items on the order will be confirmed.
estimatedShippingDateISO 8601 dateNoEstimate of the date when the order is likely to ship.
messageToCustomerTextNoA message relayed to the customer.
messageToFruugoTextNoA message relayed to Fruugo.


Cancel Order

URLhttps://www.fruugo.com/orders/cancel
HTTP MethodPOST
ReturnsOrder XML for the cancelled order, MIME type "application/xml"

Parameters

NameFormatMandatoryDescription
orderIdIntegerYesThe id of the order to confirm, taken from orderId - element in the XML.
itemItem IdentifiersNofruugoProductId, fruugoSkuId and quantity of the item to cancel, separated with commas. The parameter can be repeated multiple times in one request to confirm multiple items at a time. If parameter is not given, all items on the order will be cancelled.
cancellationReasonTextYesReason for the cancellation. Valid values are:
  1. out_of_stock - the product is out of stock and thus cannot be delivered
  2. product_discontinued - product is no longer available and thus cannot be delivered
  3. invalid_delivery_address - customer has given a delivery address that appears invalid
  4. customer_cancellation - customer has has asked for the order to be cancelled
  5. legislation_restriction - law or contract restriction prevents delivery to customer's address
  6. other - other reason
messageToCustomerTextNoA message relayed to the customer.
messageToFruugoTextNoA message relayed to Fruugo.


Ship Order

URLhttps://www.fruugo.com/orders/ship
HTTP MethodPOST
ReturnsOrder XML for the shipped order, MIME type "application/xml"

Parameters

NameFormatMandatoryDescription
orderIdIntegerYes

The id of the order to confirm, taken from orderId - element in the XML.

itemItem IdentifiersNofruugoProductId, fruugoSkuId and quantity of the item to ship, separated with commas. The parameter can be repeated multiple times in one request to confirm multiple items at a time. If parameter is not given, all items on the order will be shipped.
trackingUrlTextNo

A URL of the courier company where the package can be tracked or at a minimum the courier name.

trackingCodeTextNoTracking code of the package, relayed to the customer.
messageToCustomerTextNoA message relayed to the customer.
messageToFruugoTextNoA message relayed to Fruugo.


Return Order

URLhttps://www.fruugo.com/orders/return
HTTP MethodPOST
ReturnsOrder XML for the returned order, MIME type "application/xml"

Parameters

NameFormatMandatoryDescription
orderIdIntegerYesThe id of the order to confirm, taken from orderId - element in the XML
itemItem IdentifiersNofruugoProductId, fruugoSkuId and quantity of the item to mark returned, separated with commas. The parameter can be repeated multiple times in one request to confirm multiple items at a time. If parameter is not given, all items on the order will be returned.
returnReasonTextNoReason for the cancellation. Valid values are:
  1. unsatisfied_with_item -ย  customer was not satisfied with the item
  2. item_did_not_match_description - item didn't match the product description
  3. damaged_item - item was damaged
  4. wrong_item - wrong item was shipped to the customer
  5. other - other reason
messageToCustomerTextNo

A message relayed to the customer.

messageToFruugoTextNo

A message relayed to Fruugo.


Download Packing List

URLhttps://www.fruugo.com/orders/packinglist
HTTP MethodGET
ReturnsPacking list PDF, MIME type "application/pdf"

Parameters

NameFormatMandatoryDescription
orderIdIntegerYesThe id of the order to mark returned, taken from orderID - element in the XML.
shipmentIdIntegerYesThe id of the shipment whose packing list to download, taken from shipmentId - element in the XML. Use 0 as the shipmentId if the consignment has yet to be shipped.