Add assets to customer
Add new customer assets
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/BusinessCustomer/{businessCustomerId}/Assets/AddAssets
- Auth: API key in header Authorization
Path parameters
Request body
Optional - ID of parent media or directory
Optional - ID of asset. If not provided, an id will be generated
Optional - Type of asset. Free text, except the built-in value "External": an external asset is link-only. It is never copied to Omnium storage, Url mirrors ExternalUrl, and the file is always served live from the external host so a change at the source shows on every product without re-import. Use it for files you do not want Omnium to download, such as certification marks shared by many products. External assets cannot be the main image, so do not point MainImageUrl at one. Changing an already uploaded asset to "External" switches Url to the external url and leaves the old copy in storage.
Optional - Item sort index. Default is position in list
Calculated: Omnium url. For "External" assets this is the ExternalUrl itself, since they are not copied to Omnium storage.
External URL (original URL, will be uploaded and Omnium url will be added to Url). If FileName is not provided, externalUrl has to contain the file extension (e.g. .jpg). For "External" assets the url is kept as-is and never uploaded; use https, since an http image is blocked as mixed content in browsers.
Preferred file name, used when uploaded to Omnium. Required to contain the correct file extension. File name and path from external URL will be used as fallback if null.
If true, asset will be used as main image on parent item
Optional - Asset name
Optional - Asset description
Optional - Image alternative text
Optional - Asset purpose or use
Force upload external url to Omnium (if both external and internal url exists)
Calculated - the service that serves the file, for assets that are not reachable through a plain url. Pass it as the serviceType to /api/Files/{serviceType}/Download, together with Url as the path, to download the file. Empty for assets stored in Omnium, which are downloaded from Url directly.
Date created
Date modified
Calculated - File type, e.g. image/jpg
Calculated - File size in bytes
Response
Asset added successfully
Name of company
Tax ID, or other governmental identification number
(Obsolete) Customer's credit balance. Use BusinessCustomerCredit instead.
(Obsolete) Customer's credit limit. Use BusinessCustomerCredit instead.
(Obsolete) Customer's remaining credits. Use BusinessCustomerCredit instead.
(Obsolete) Customer's credit is denied if true. Use BusinessCustomerCredit instead.
List of customers discount groups
List of customers price groups
Set to 'true' if the business customer has a restricted assortment. This is controlled by prices. If the customer has a customer specific price for a product, the product is automatically included in the customer's assortment. If this is set to 'false', a non-customer specific price will be sufficient for the product to be part of the customer's assortment.
When using puch-out orders, unit conversion lists can be defined in settings. This reflects the corresponding Unit Conversion List for the customer.
When using punch-out domain
Emails for notifications (comma separated)
Phone numbers for notifications (comma separated)
Tags for business customer
Unique ID
Customer identifier - does not have to be unique for each store, etc
Customer phone number
Customer e-mail
Customer url
Customer favorite stores
Customer primary market
Additional customer markets (beyond the primary MarketId)
Customer market group
Preferred customer language code
Customer preferred currency code (E.g. USD, NOK, EUR)
If true, customer is available in all markets / stores
Name of the user or system the last modified the item
Date and time the customer was created
Date and time the customer was modified
True if customer is inactive, and should not be able to make purchases
Customer's preferred shipping method name (default selected in new carts)
Payment terms (free text)
Net payment terms (days)
Customer details (brief summary for customer service representatives)
Product category IDs to include in customer's assortment. Only products in these categories will be available to the customer. When posted, if null, the property is not updated. If categories should be removed, send empty list.
Product category IDs to exclude from customer's assortment. Products in these categories will not be available to the customer. When posted, if null, the property is not updated. If categories should be removed, send empty list.
Changes
No recorded changes to this operation across all 1 revision of this API.