API documentation
Method list
Test your request
Changelog


setOrderProductFields
The method allows you to edit the data of selected items (e.g. prices, quantities etc.) of a specific order. Only the fields that you want to edit should be given, the remaining fields can be omitted in the request.


Input parameters
order_idintOrder identifier from the BaseLinker order manager. Field required.
order_product_idintOrder item ID from BaseLinker order manager. Field required.
storagevarchar(9)Type of product source storage (available values: "db" - BaseLinker internal catalog, "shop" - online shop storage, "warehouse" - the connected wholesaler)
storage_idvarchar(50)ID of the product source storage (one from BaseLinker catalogs or one of the stores connected to the account). Value "0" when the product comes from BaseLinker internal catalog.
product_idvarchar(50)Product identifier in BaseLinker or shop storage. Blank if the product number is not known
variant_idvarchar(30)Product variant ID. Blank if the variant number is unknown
auction_idvarchar(20)Listing ID number (if the order comes from ebay/allegro)
namevarchar(130)Product name
skuvarchar(40)Product SKU number
eanvarchar(40)Product EAN number
attributesvarchar(150)The detailed product attributes, e.g. "Colour: blue" (Variant name)
price_bruttofloatSingle item gross price
tax_ratefloatVAT rate
quantityintNumber of pieces
weightfloatSingle piece weight



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code



Sample
Input data:
Output data:
A sample request in php: