@datafire/brandlovers v6.0.0
@datafire/brandlovers
Client library for BrandLovers Marketplace API V1
Installation and Usage
npm install --save @datafire/brandlovers
let brandlovers = require('@datafire/brandlovers').create({
authorization: ""
});
.then(data => {
console.log(data);
});
Description
Allows sellers to: 1) Load products definitions to the BrandLovers marktplace. 2) Receive and update orders status. 3) Receive and update shipping information. 4) Receive and update customer tickets. All requests consume and return application/json content. All request must be authenticated and use HTTPS.
Actions
order.orderId.get
Returns all details of a single order, including last status, items shipped or not.
brandlovers.order.orderId.get({
"authorization": "",
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - orderId required
string
: Unique Id of this order.
- authorization required
Output
- output Order
order.orderId.shipment.cancel.post
Confirm shipment canceletion (when requested by the customer) or failure to deliver one shipment
brandlovers.order.orderId.shipment.cancel.post({
"authorization": "",
"body": null,
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required NewTrackingRefund
- orderId required
string
: Unique Order Id
- authorization required
Output
Output schema unknown
order.orderId.shipment.delivered.post
Confirms that a shipment was delivered. Must inform quantity of successfully deliverd items even if items deliverd was less than the original order
brandlovers.order.orderId.shipment.delivered.post({
"authorization": "",
"body": null,
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required Newshipmentstatus
- orderId required
string
: Unique Order Id
- authorization required
Output
Output schema unknown
order.orderId.shipment.exchange.post
This enpoint to confirm item exchange when failure to deliver or requested by the customer. All customer requests are tracket via trouble tickets
brandlovers.order.orderId.shipment.exchange.post({
"authorization": "",
"body": null,
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required NewTrackingRefund
- orderId required
string
: Unique Order Id
- authorization required
Output
Output schema unknown
order.orderId.shipment.return.post
Use this endpoint to return and refund items froma a order. In order to fully return an order list all items and applicate quantity.
brandlovers.order.orderId.shipment.return.post({
"authorization": "",
"body": null,
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required NewTrackingRefund
- orderId required
string
: Order unique Id
- authorization required
Output
Output schema unknown
order.orderId.shipment.sent.post
Updates order to include shipment shiped information. This endpoint can be used to include a single or multiple shipments for any give order. In order to inform that all items of a order where shipped list all of them, including applicable quantities in the payload.
brandlovers.order.orderId.shipment.sent.post({
"authorization": "",
"body": null,
"orderId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required Newshipmentstatus
- orderId required
string
: Unique Order Id
- authorization required
Output
Output schema unknown
orders.get
Retuns a list of orders associated with this seller. The list is ordered by dateCreated.
brandlovers.orders.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.shipments.delivered.get
Returns list of shipments. By default this will return list of the last shipments ordered by dateCreated, folowed by last update date.
brandlovers.orders.shipments.delivered.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - status
string
: Query by shippment status. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrdersShipments
orders.shipments.delivered.post
Bulk update of order shipments status. This alows to inform multiple shipments status
brandlovers.orders.shipments.delivered.post({
"authorization": "",
"ordersshipments": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - ordersshipments required OrdersShipments
- authorization required
Output
Output schema unknown
orders.shipments.shipped.get
Returns a list of shipments shipped. By Default returns items ordered by dateCreated folowed by last update
brandlovers.orders.shipments.shipped.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - status
string
(values: NEW, APPROVED, DECLINED, PENDING): Product status. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrdersShipments
orders.shipments.shipped.post
Allows bulk updates of orders shippments.
brandlovers.orders.shipments.shipped.post({
"ordersshipments": null
}, context)
Input
- input
object
- ordersshipments required OrdersShipments
Output
Output schema unknown
orders.status.approved.get
Returns a list of approved orders. Orders in the approved
state must be fullfiled imediadetelly.
brandlovers.orders.status.approved.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 100, max 200. Use this in conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.canceled.get
Returns a list with canceled orders. Canceled orders should not be fullfiled.
brandlovers.orders.status.canceled.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Default 100, max 250. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.delivered.get
Returns a list of orders successfully delivered associated with this seller.
brandlovers.orders.status.delivered.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.new.get
Returns a list of orders flagged as new. New orders should not be fullfiled until marketplace flags them as approved.
brandlovers.orders.status.new.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 100. Max 250. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.partiallyDelivered.get
Returns a list of partially deliverd orders. This is a list of orders with items shipped but with not all items ackwlodged as deliverd
brandlovers.orders.status.partiallyDelivered.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 100. Max 250. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.partiallySent.get
Returns a list of orders that contain one (or more) items that where not shipped. This will list the entire order as well the items with peding shipment. Use this service to track orders that need to be fullfiled.
brandlovers.orders.status.partiallySent.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 100. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
orders.status.sent.get
Returns a list with orders completely fullfiled, this means orders with all items sent. Orders will ordered by dateCreated fowllowed by last update
brandlovers.orders.status.sent.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetOrders
product.post
Use this enpoint to create a single new product to the Marketplace. This enpoint expects a json document with one product. If you whant to upload multiple products in a single API call use POST /products method. The server will load each product as an individual item that can be manipulated using your own skuSellerId
. This system is idenpontent, this means that once a skuSellerId
is created it cannot be re-created using this tool. In order to update, edit a product use the PUT method with the correct reference to your skuSellerId
brandlovers.product.post({
"authorization": "",
"product": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - product required Product
- authorization required
Output
Output schema unknown
product.skuSellerId.get
Returns detailed information of a single product with the seller skuSellerId
. This service will return a json document with product detail, status, price, invetory among other infomarion availble in the Brand Lovers marketplace
brandlovers.product.skuSellerId.get({
"authorization": "",
"skuSellerId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - skuSellerId required
string
: SKU ID do Lojista.
- authorization required
Output
- output GetProduct
product.skuSellerId.put
Update a single product information such as name, brand, attribute, dimension, etc. Please note that data from your request will be merged with existing data. This allows you to easliy update only certain fields without the need to re-inform the other unchanged fields. For example in order to update just the field title
simply send just this field with new information, remaining fields will not be changed. In order to erase an item the field must be informed as its default value, for example in order to erase the videos
field must be sent as videos:[]. The skuSellerId
field is always mandatory in the path and in the product json Object.
brandlovers.product.skuSellerId.put({
"authorization": "",
"skuSellerId": "",
"body": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - skuSellerId required
string
: Unique Product Id (SKU) in the seller system that will be updated. - body required ProductUpdate
- authorization required
Output
Output schema unknown
product.skuSellerId.prices.put
Allows seller to set the SKU prices (MSRP and/or offer price). All prices must be informed in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. Same as $1,2345.67 must be informed solely as 1234567
brandlovers.product.skuSellerId.prices.put({
"authorization": "",
"skuSellerId": "",
"body": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - skuSellerId required
string
: Product SKU - body required ProductPrice
- authorization required
Output
Output schema unknown
product.skuSellerId.status.put
Update product status in the Marketplace. Set to true
to enable, false
to disable sale.
brandlovers.product.skuSellerId.status.put({
"authorization": "",
"skuSellerId": "",
"body": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - skuSellerId required
string
: Unique Product Id (SKU) in the seller system - body required SellerItemStatus
- authorization required
Output
Output schema unknown
product.skuSellerId.stock.put
Update a single product inventory information. Products with zero stock will not be eligible for sale.
brandlovers.product.skuSellerId.stock.put({
"authorization": "",
"skuSellerId": "",
"body": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - skuSellerId required
string
: Unique Product Id (SKU) in the seller system that will be updated - body required Stock
- authorization required
Output
Output schema unknown
products.get
Get a list of my products loaded into the Marketplace. This dosen't means that products are eligible for sale, just that they are loaded in the database.
brandlovers.products.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number of items to retun. Defaults to 100. Max alowed is 200. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetProductsResponse
products.post
This enpoint to creates new products in the Marketplace using skuSellerId
as a primary key. This enpoint expects a json document with array of products. The server will load each product as an individual item that can be manipulated using your own skuSellerId
. All requests to This endpoint are idenpontent with respect of the skuSellerId
, this means that once a skuSellerId
is created it cannot be re-created using this tool. In order to update use the PUT method with the correct skuSellerId
. You can also use the POST /product to create a single product per request
brandlovers.products.post({
"authorization": "",
"products": []
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - products required
array
- items Product
- authorization required
Output
Output schema unknown
products.prices.put
Allows bulk update of product prices. This endpoint expects a json document with an array of products with the skuSellerId
and the new price. Server will process each new product update individually and will ackwlodge as much updates as possible, even if a single product update fails. After this request you can query product final status with GET /product/status
brandlovers.products.prices.put({
"authorization": "",
"body": []
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required
array
- items SellerItemPrices
- authorization required
Output
Output schema unknown
products.status.get
Returns a list with seller products status. Please note that this endpoint will not return all details of each product, just the skuSellerId and status. Also please note that this endpoint will return 250 products per call. For full details of a given procuct use GET /product/{skuSellerId}
brandlovers.products.status.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number of items to return in this query. Defaults to 250. Maximum 1000. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetSellerProductsStatus
products.status.put
Bulk enable/disable products in the marketplace. This endpoint requires an array of objects with the seller SKU skuSellerId
and boolean value that defines if the product is enabled or not for sale. This endpoint can be used to set a single product or many products.
brandlovers.products.status.put({
"authorization": "",
"body": []
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required
array
- items ProductStatusUpdate
- authorization required
Output
Output schema unknown
products.status.selling.get
Returns products that are successfully listed for sale.
brandlovers.products.status.selling.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetProductsStatusSelling
products.stocks.put
Bulk product stock update. This endpoint expect a array of products skuSellerId
with new inventory data
brandlovers.products.stocks.put({
"authorization": "",
"body": []
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - body required
array
- items ProductStock
- authorization required
Output
Output schema unknown
ticket.post
Use this service to create a new trouble ticket. Use this to include relevant information about the order, comunicate with the customer or marketplace team. Whenever possible message will be pushed to Mobile first. This is the primary mean of comunicaiton with the customer regarding orders, shippments, shippments status. New tickets will be automatically be set to 'OPEN'. Trouble tickets need to be associated with a orderId or customer. New tickets can optionally include a new message.
brandlovers.ticket.post({
"authorization": "",
"newTicket": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - newTicket required NewTicket
- authorization required
Output
Output schema unknown
ticket.ticketId.message.post
Add a new message to this trouble ticket. Messages can be CUSTOMER
(customer will be able to see it) or INTERNAL
.
brandlovers.ticket.ticketId.message.post({
"authorization": "",
"ticketId": "",
"message": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - ticketId required
string
: Trouble ticket ID. - message required NewTicketMessage
- authorization required
Output
Output schema unknown
ticket.ticketId.messages.get
Returns trouble ticket history with all messages exchanged. Only tickets related to your seller will be returned. Attempt to read other tickets will return 403 (acess denied).
brandlovers.ticket.ticketId.messages.get({
"authorization": "",
"ticketId": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - ticketId required
string
: Trouble ticket ID. - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetTicketMessages
ticket.ticketId.status.put
Alows the seller to update the status of a trouble ticket
brandlovers.ticket.ticketId.status.put({
"authorization": "",
"ticketId": "",
"body": null
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - ticketId required
string
: Trouble ticket unique identification - body required TicketStatus
- authorization required
Output
Output schema unknown
tickets.get
Allows seller to receive and status, queries, requests and complaints from customers. As well related messages
brandlovers.tickets.get({
"authorization": ""
}, context)
Input
- input
object
- authorization required
string
: Authorization token. The Authorization token can be found in your Admin console. - status
string
(values: OPEN, REOPENED, CLOSED): Query by trouble ticket status - offset
integer
: Number or items to skip when executing query. List starts at zero. If omitted will default to zero. Use this conjuction withlimit
to paginate across the results. - limit
integer
: Number or items to return when executing query. Defaults to 10. Use this conjuction withoffset
to paginate across the results.
- authorization required
Output
- output GetTickets
Definitions
Address
- Address
object
- address required
string
: Address first line (ave, street name, etc..) - city required
string
: City - complement required
string
: Complementary info (aptartament number, building name, suite) - countryId required
string
: Contry code using aplpha ISO-3166, Example: BR, US, AR, GB, CN - neighbourhood required
string
: Address neighbourhood - number required
string
: Address number - recipientName
string
: Recipient Name - reference
string
: Pontos de referência - state required
string
: State - zipCode required
string
: Zip Code
- address required
ControlledStock
- ControlledStock
object
- crossDockingTime
integer
: Time it will take to manufacture, prepare or setup this product. Time must be provided in seconds. For example 1 day should be informed as 86400. This time will be included in the ETA informed to the customer - quantity required
integer
: Quantity of product available for sale - reserved
integer
: Locked product invetory for orders that are not approved and are not ready to fullfil.
- crossDockingTime
Courier
- Courier
object
- name required
string
: Courier name - taxID
string
: Courier taxId information. For example CNPJ
- name required
Customer
- Customer
object
- documentNumber required
string
: Customer tax information - email
string
: Customer Email (when available). Please note: Email is not a mandatory field - id required
string
: Customer unqiue Id - name required
string
: Customer Name - phones required
array
: Customer phone number- items Phone
- type required
string
: Customer type: Enterprise or Consumer
- documentNumber required
CustomerReference
- CustomerReference
object
- name
string
: Customer name - phoneNumber
string
: Customer phone mumber
- name
Dimensions
- Dimensions
object
- height required
integer
: Product height in millimeters. No commas or periods are accepeted. For example one meter produc must be informed as 1000. Another example 1 meter and 23 centimeters should be informed solely as 1230 - length required
integer
: Product length in millimeters. No commas or periods are accepeted. For example one meter produc must be informed as 1000. Another example 1 meter and 23 centimeters should be informed solely as 1230 - weight required
integer
: Product weight in Grams. No commas or periods are accepeted. For example one killo must be informed as 1000. Another example 1 Kilo and 234 grams should be informed solely as 1234 - width required
integer
: Product width in millimeters. No commas or periods are accepeted. For example one meter produc must be informed as 1000. Another example 1 meter and 23 centimeters should be informed solely as 1230
- height required
Error
- Error
object
- message required
string
: Friendly message describing the error - skuSellerId
string
: When applicabe will includeskuSellerId
related to this error - type required
string
: Error type
- message required
Freight
- Freight
object
- ETA
string
: Estimated time of arrival - additionalInfo required
string
: Aditional information for the courier - chargedAmount required
integer
: Shipment cost. Must be informed in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. Same as $1,2345.67 must be informed solely as 1234567 - crossDockingTime required
integer
: Time it will take to manufacture, prepare or setup this product. Time must be provided in seconds. For example 1 day should be informed as 86400. This time will be included in the product ETA informed to the customer - defaultAmount required
integer
: Default value of this shippment. - scheduledPeriod
string
: Scheduled period - transitTime required
integer
: Deliver time in seconds. Time must be provided in seconds. For example 1 day should be informed as 86400. This time will be included in the product ETA informed to the customer - type
string
: Freight type
- ETA
GetOrders
GetOrdersShipments
- GetOrdersShipments
object
- metadata
array
: Response payload- items Metadata
- shipments
array
: Order Shippment Status- items OrderShippmentStatus
- metadata
GetProduct
- GetProduct
object
- attributes required
array
- items ProductAttribute
- brand required
string
: Brand name - categories required
array
: Array of categories associated with this product- items
string
- items
- description required
string
: Product text description. - dimensions Dimensions
- errors
array
- items Error
- giftWrap GiftWrap
- gtin
array
: Array of product EAN and/or ISBN and/or ASIN codes- items
string
- items
- images required
array
: List of valid Product image URLs. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- price required ProductPrice
- productGroupId
string
: Unique Product Group ID. Products with the sameproductGroupId
will be grouped and displayed as a unique entry. UseproductGroupId
to group diferent SKUs that represent diferent colors, sizes, capacities, etc.. - skuSellerId required
string
: Unique Product Id (SKU) in the seller system - status required
string
: Product status - stock required
integer
: Number of products availble for sale from the seller. Each new successfull order will automatically reduce the number of products available. - title required
string
: Product name as advertised by manufacturer. This how the product will be displayed in the Marketplace - videos
array
: List of videos de URLs associated with this product. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- attributes required
GetProductsResponse
- GetProductsResponse
object
- metadata
array
: Payload with response- items Metadata
- skus
array
- items GetProduct
- metadata
GetProductsStatusSelling
- GetProductsStatusSelling
object
- metadata required
array
- items Metadata
- sellerItems required
array
- items SellerItem
- metadata required
GetSellerProductStatus
- GetSellerProductStatus
object
- errors
array
- items Error
- price required ProductPrice
- skuSellerId required
string
: Unique Product Id (SKU) in the seller system. - status required
string
: Product status in the marketplace - stock required
integer
: Number of products availble for sale from the seller. Each new successfull order will automatically reduce the number of products available.
- errors
GetSellerProductsStatus
- GetSellerProductsStatus
object
- metadata
array
: Response payload- items Metadata
- skus
array
: Status of the products from the seller- items GetSellerProductStatus
- metadata
GetTicketMessages
- GetTicketMessages
object
- messages
array
- items TicketMessage
- metadata required
array
- items Metadata
- messages
GetTickets
GiftCard
- GiftCard
object
- from required
string
: Giftcardfrom
field - message required
string
: Giftcardbody
message - to required
string
: Giftcardto
field
- from required
GiftWrap
- GiftWrap
object
- available required
boolean
: Flag that defines if this product is eligible for giftwrapping - messageSupport
boolean
: Flag that defines if seller supports giftwrapp with a message - value required
integer
: Amount charged for gift wrap. All prices must be provided in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567
- available required
Image
- Image
object
- main required
boolean
: Sets as main image - type required
string
: Image format - url required
string
: Image URL
- main required
Invoice
- Invoice
object
- accessKey required
string
: Número da chave de acesso à nota fiscal. A chave possui 44 dígitos e contém todas as informações da DANFE - cnpj
string
: CNPJ responsável pelo envio dos produtos. Pode ser diferente caso a empresa possua diversos Centros de Distribuição (CDs) - issuedAt
string
: Data de emissão da Nota Fiscal - linkDanfe
string
: Url para consulta da DANFE - linkXml
string
: Url para consulta da NFE - number required
string
: Número da Nota Fiscal - serie required
string
: Número de serie da Nota Fiscal
- accessKey required
Metadata
- Metadata
object
- key required
string
: JSON attribute key - value required
string
: JSON object value
- key required
NewTicket
- NewTicket
object
- body required
string
: Message to the customer - customer CustomerReference
- description
string
: Trouble ticked brief description - from required
string
: Friendly name of the person sending this message, if not provided the sellername
will be used - message NewTicketMessage
- orderId required
string
: Unique order Id that this trouble ticket belongs to - type required
string
: Trouble ticket type.
- body required
NewTicketMessage
- NewTicketMessage
object
- body required
string
: Message text - visibility required
string
: Defines if this message isCUSTOMER
(customer will receive a copy) orINTERNAL
- body required
NewTrackingRefund
- NewTrackingRefund
object
- courier Courier
- cte
string
: Conhecimento do Transporte Eletrônico - info required
string
: Aditional information about this shippment - items required
array
- items OrderItemReference
- number
string
: Tracking Id in the courier - occurredAt
string
: Date time that this was created - sellerShipmentId
string
: Unique Seller shipment Id. This must be unique across all orders and shipments - tranckingUrl
string
: Courier tracking URL
Newshipmentstatus
- Newshipmentstatus
object
- courier required Courier
- cte
string
: Conhecimento do Transporte Eletrônico - invoice required Invoice
- items required
array
: List of Order IDs of this items from this order that will be updated in this shipment- items
string
- items
- number
string
: Unique id shipment Id in the courier system - occurredAt required
string
: Data da ocorrência - sellerShipmentId required
string
: Unique Seller shipment Id. This must be unique across all orders and shipmnents - trackingUrl
string
: Courier tracking URL
Order
- Order
object
- approvedAt
string
: Date that this order was approved for fullfilment - billingAddress required Address
- createdAt required
string
: Date that this order was created - customer required Customer
- freight required Freight
- items required
array
- items OrderItem
- orderId required
string
: Unique order Id (related to this seller) - orderMarketplaceId required
string
: Unique Order Id that will be displayed to the customer. This Id is not the same asorderId
- seller Seller
- shipments required
array
- items Shippment
- shippingAddress required Address
- status required
string
: Order status - totalAmount required
integer
: Order total in cents, this is what the customer will be charged for. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - totalDiscountAmount required
integer
: Total order discounts in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - totalItemsAmount required
integer
: Order items total amount in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - totalShippingAmount required
integer
: Total shipments amount items. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - updatedAt required
string
: Last update data of this order
- approvedAt
OrderGiftWrap
- OrderGiftWrap
object
- available required
boolean
: Defines if giftwrpping is available for this product. - giftCard GiftCard
- messageSupport
boolean
: Defines if giftwrpping is available for this product. - value required
integer
: Amount charged for gift wrap. All prices must be provided in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567
- available required
OrderItem
- OrderItem
object
- freight required Freight
- giftWrap OrderGiftWrap
- id required
string
: Unique Id representing this item - name required
string
: Product name - promotions
array
: Promotions array- items Promotion
- salePrice required
integer
: Product unit price - sent required
boolean
: Flag if product was already shipped - skuSellerId required
string
: Unique Product Id (SKU) in the seller system
OrderItemReference
- OrderItemReference
object
- quantity required
integer
: Quantity of items - skuSellerId required
string
: Unique Product Id (SKU) in the seller system. This is the key that defines witch product will be updated
- quantity required
OrderShippment
- OrderShippment
object
- courier Courier
- cte
string
: Conhecimento de Transporte Eletôniconico - invoice Invoice
- items
array
- items OrderItemReference
- number
string
: Courier unique trackign Id associated with this shipment - occurredAt
string
: Date that this shippment was shiped - order
string
: Order unique Id - sellerShipmentId
string
: Unique Seller shipment Id. This must be unique across all orders and shipments - status
string
: Shipment status. - trackingUrl
string
: Courier tracking URL
OrderShippmentStatus
- OrderShippmentStatus
object
- errors
array
- items Error
- items
array
- items OrderItemReference
- shipmentId
string
: Shippment unique Id - status
string
: Shipment status - trackingUrl
string
: Courier tracking URL
- errors
OrdersShipments
- OrdersShipments
object
- shipments
array
- items OrderShippment
- shipments
Phone
- Phone
object
- number required
string
: Phone number - type required
string
: Phone number type, home, office, mobile, etc
- number required
Product
- Product
object
- attributes required
array
: List ofkey
value
attributes of this product. This is very important for search and SEO optmization. Include all relevant information- items ProductAttribute
- brand required
string
: Brand name - categories required
array
: Array of categories associated with this product- items
string
- items
- description required
string
: Product description. - dimensions Dimensions
- giftWrap GiftWrap
- gtin
array
: Array of product EAN and/or ISBN and/or ASIN codes- items
string
- items
- images required
array
: List of valid Product image URLs. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- price required ProductPrice
- productGroupId
string
: Unique Product Group ID. Products with the sameproductGroupId
will be grouped and displayed as a unique entry. UseproductGroupId
to group diferent SKUs that represent diferent colors, sizes, capacities, etc.. - productId
string
: Brand Lovers Product ID. Use this to suggest a product association. This field is optional. - skuSellerId required
string
: Unique Product Id (SKU) in the seller system - stock required
integer
: Number of products availble for sale from the seller. Each new successfull order will automatically reduce the number of products available. - title required
string
: Product name as advertised by manufacturer. This how the product will be displayed in the Marketplace - videos
array
: List of videos de URLs associated with this product. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- attributes required
ProductAttribute
- ProductAttribute
object
- name required
string
: Attribute name - value required
string
: Attribute value
- name required
ProductPrice
- ProductPrice
object
- default required
integer
: List price, also known as MSRP (Manufacturer Suggest Retail Price) or the recommended retail price (RRP). All prices must be provided in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - offer required
integer
: Product price. This is what will be offered to the customer. All prices must be provided in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567
- default required
ProductReference
- ProductReference
object
- href required
string
: Link para acesso ao recurso - id required
string
: ID do recurso
- href required
ProductSiteReference
- ProductSiteReference
object
- skuSellerId required
string
: Seller unique product Id - url required
string
: Link do produto no site
- skuSellerId required
ProductStatusUpdate
- ProductStatusUpdate
object
- active required
boolean
: Defines if this product is ready for sale. Activetrue
, disabledfalse
- skuSellerId required
string
: Seller product unique Id that will be updated
- active required
ProductStock
- ProductStock
object
- skuSellerId required
string
: Unique Product Id (SKU) in the seller system - stocks required
array
: Invetory information- items Stock
- skuSellerId required
ProductUpdate
- ProductUpdate
object
- attributes
array
: List ofkey
value
attributes of this product. This is very important for search and SEO optmization. Include all relevant information- items ProductAttribute
- brand
string
: Brand name - categories
array
: Array of categories associated with this product- items
string
- items
- description
string
: Product text description. - dimensions Dimensions
- giftWrap GiftWrap
- gtin
array
: Array of product EAN and/or ISBN and/or ASIN codes- items
string
- items
- images
array
: List of valid Product image URLs. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- price ProductPrice
- productGroupId
string
: Unique Product Group ID. Products with the sameproductGroupId
will be grouped and displayed as a unique entry. UseproductGroupId
to group diferent SKUs that represent diferent colors, sizes, capacities, etc.. - productId
string
: Brand Lovers Product Id. Use this to recommend a product association - skuSellerId required
string
: Unique Product Id (SKU) in the seller system - stock
integer
: Number of products availble for sale from the seller. Each new successfull order will automatically reduce the number of products available. - title
string
: Product name as advertised by manufacturer. This how the product will be displayed in the Marketplace - videos
array
: List of videos de URLs associated with this product. HTTP or HTTPS are valid. HTTPS is prefered.- items
string
- items
- attributes
Promotion
- Promotion
object
- amount
integer
: Total discount in cents. No commas or periods are accepeted. For example one dollar should be informed as 100. $1,2345.67 should be informed solely as 1234567 - id required
string
: Promotion unique idenfitcation number - name
string
: Promotion name - type
string
: Promotion type
- amount
Seller
- Seller
object
- id
string
: Seller unique Id in the Brand Lovers Marketplace - name
string
: Seller name in the Brand Lovers Marketplace
- id
SellerItem
- SellerItem
object
- attributes required
array
- items ProductAttribute
- brand required
string
: Brand name - dimensions required Dimensions
- giftWrap GiftWrap
- gtin
array
: Array of product EAN and/or ISBN and/or ASIN codes- items
string
- items
- images required
array
: List of valid Product image URLs.- items Image
- prices required
array
: Price information for each marketplace that this product is listed- items ProductPrice
- product required ProductReference
- skuSellerId required
string
: Unique Product Id (SKU) in the seller system - status required
array
: Product status for each marketplace that this product is listed- items SellerItemStatus
- stocks required
array
: Invetory information for each marketplace that this product is listed- items ControlledStock
- title required
string
: Product name as advertised by manufacturer. This how the product will be displayed in the Marketplace - urls
array
: List of URLs where the product is listed for sale- items ProductSiteReference
- attributes required
SellerItemPrices
- SellerItemPrices
object
- price required ProductPrice
- skuSellerId required
string
: Unique product Id from seller that will be updated
SellerItemStatus
- SellerItemStatus
object
- active required
boolean
: Defines if this product is ready for sale. Activetrue
, disabledfalse
- active required
Shippment
- Shippment
object
- courier required Courier
- cte
string
: Conhecimento de Transporte Eletrônico - description
string
: Additinal shipment tracking information - id
string
: Shipment Id associated with this shippment used to group diferent item or items from a single order - invoice required Invoice
- items required
array
: List of items of this shippment- items OrderItemReference
- number
string
: Courier unique trackign Id associated with this shipment - occurredAt required
string
: Date time when this shippment happened - sellerShipmentId required
string
: Unique Seller shipment Id. This must be unique across all orders and shipments - status required
string
: Shipment status - trackingUrl
string
: Courier tracking URL
Stock
- Stock
object
- crossDockingTime
integer
: Time it will take to manufacture, prepare or setup this product. Time must be provided in seconds. For example 1 day should be informed as 86400. This time will be included in the product ETA informed to the customer - quantity required
integer
: Stock available
- crossDockingTime
Ticket
- Ticket
object
- closedAt
string
: Date-time when ticket was closed - createdAt
string
: Date time that ticket was created - customer CustomerReference
- description
string
: Trouble ticked brief description - metadata
array
- items Metadata
- priority
string
: Trouble ticket priority - sla
string
: Date-time with a promisse for the customer when this ticket will be resolved - status
string
: Trouble Ticket status. 'OPEN','CLOSED','REOPENED' - subject
string
: Short one line title describing ticket. - ticketId
string
: Trouble Ticket unique identification Id - type
string
: Trouble ticket type. - updatedAt
string
: Date-time with last update of this ticket
- closedAt
TicketMessage
- TicketMessage
object
- body required
string
: Message text - createdAt required
string
: Date created - id required
string
: Trouble Ticket Id. - visibility required
string
: Defines if this message isCUSTOMER
(customer will receive a copy) orINTERNAL
- body required
TicketStatus
- TicketStatus
object
- ticketStatus required
string
: New trouble ticket status. Valid options areREOPENED
,CLOSED
- ticketStatus required