Objective: Links a label to the order
JSON Composition for sending:
{
*"auth" : key obtained in get/auth method
*,"label" : base64 of the label file
*,"style" : integer - label style code
*,"id" : integer - internal order code
,"idFrom" : Allows the label to be linked to the channel ID provided (omie, meli, vtex, bling, millenium, tiny)
,"idNumber" : ID linked to the source of the idFrom field
}
Notes:
* when idFrom is provided, the id tag is disregarded
* tag "style", valid values:
0 - STANDARD (15cm x 11cm) - PDF format
1 - MERCADO LIVRE - PDF format
2 - MAGALU - PDF format
3 - VIAVAREJO - PDF format
4 - B2W - PDF format
5 - STANDARD ZPL
6 - AMAZON - PDF format
7 - SHOPEE - PDF format
Returns with:
{
"code" : integer
,"message" : informative text
};
Code:
200: label processed successfully
404: orders not found with the parameters provided
405: a label already exists for this order
407: style accepts only 0..7
408: idFrom tag provided but only accepts bling, tiny, omie, vtex, meli, millennium
500: invalid auth
501: user without authorization to upload label