Objective: Generates an order based on NFe XML data
JSON Composition for sending:
{
*"auth" : key obtained in get/auth method
*,"order" :
{
"priority" : HIGH, NORMAL, LOW (defaults to NORMAL if empty)
,"invoice" : base 64 of the XML covering the order
,"shipping" :
{
"company" : carrier name
,"method" : shipping method
}
}
}
Returns with:
{
"code" : integer
,"message" : text
}
Code:
217: invalid invoice
220: invoice key in use with another order
402: invalid data received
404: user/email not cleared for invoice sending
405: mandatory tag not informed
428: xml/nfe invalid or not informed
429: xml/nfe not authorized at sefaz
500: authentication data not correctly informed
501: invalid credentials
502: client blocked
Stock Status:
0: client does not operate with stock
1: stock available digitally
2: stock not available digitally