AGISbiz API

Docs Methods

auth:

  • method: “auth”
  • params:
    • “username” - string
    • “apiKey” - string

Sample request:

{
    "method": "auth",
    "params": {
        "username": "[email protected]",
        "apiKey" : "Th8bcehNzvgVzfGl2gKdK8nxUf0tpqcGIAXEl9FS”
    }
}

Answer example:

{
    “code”: 1,
    “session”: “GMVIdECqpd9fa4lHrFMm4peN8lksnKrfkVky2rsP”
}

companiesList:

  • method: “companiesList”
  • “session” - string

listCategories:

  • method: “listCategories”
  • params: - string
    • “company” - int
  • session: - string

addCategory:

  • method: “addCategory”
  • params:
    • “description” – string
    • “reference” – string (optional)
    • “parent_id” – int (optional)
  • “session” - string

updateCategory:

  • method: “updateCategory”
  • params:
    • “company” – int
    • “id” - int
    • “description” – string
    • “reference” – string (optional)
    • “parent_id” – int (optional)
  • “session” - string

listProducts:

  • method: “listProducts”
  • params:
    • “company” – int
  • “session” - string

addProduct:

  • method: “addProduct”
  • params:
    • “company” - int
    • “producttype_id” – int (see listproducttypes)
    • “reference” – string
    • “description” – string
    • “category_id” – int (optional)
    • “summary” – string (optional)
    • “ean” – string (optional)
    • “hasStock” – 0 ou 1
    • “quantityStock” – decimal (optional)
    • “tax_id” – int
    • “price” – decimal
    • “unit_id” – int
    • “forSale” – 0 ou 1
    • “production” – 0 ou 1
    • “pricefromcomposition” – 0 ou 1 (optional)
  • “session” - string

updateProduct:

  • method: “updateProduct”
  • params:
    • “company” – int
    • “id” - int
    • “producttype_id” – int (see listproducttypes)
    • “reference” – string
    • “description” – string
    • “category_id” – int (optional)
    • “summary” – string (optional)
    • “ean” – string (optional)
    • “hasStock” – 0 ou 1
    • “quantityStock” – decimal (optional)
    • “tax_id” – int
    • “price” – decimal
    • “unit_id” – int
    • “forSale” – 0 ou 1
    • “production” – 0 ou 1
  • “session” - string

listCustomers:

  • method: “listCustomers”
  • params:
    • “company” - int
  • “session” – string

getCustomer:

  • method: getCustomer
  • params:
    • “company” - int
    • “customer_id” - int
  • “session” – string

getCustomerByRef:

  • method: getCustomerByRef
  • params:
    • “company” - int
    • “customer_reference” - string
  • “session” – string

listCustomersInvoice

  • method: “listCustomersInvoice”
  • params:
    • “company” - int
    • “customer” - int
    • “paid” - string ("1" - Invoice paid, "0" - Invoice not paid, "" - All)
  • “session” – string

listCustomersCreditNote

  • method: “listCustomersCreditNote”
  • params:
    • “company” - int
    • “customer” - int
  • “session” – string

addCustomer:

  • method: “addCustomer”
  • params:
    • “company” – int
    • “customer_code” - string
    • “nif” – string
    • “name” – string
    • “contact” – string (optional)
    • “address” – string
    • “city” – string
    • “postalcode” – string
    • “region” – string (optional)
    • “country_id” – int
    • “telephone” – string (optional)
    • “fax” – string (optional)
    • “email” – string (optional)
    • “website” – string (optional)
    • “financial_discount” – decimal (optional)
    • “paymentterm_id” – int
    • “seller_id” – int (optional)
    • “tax_id” – int (optional)
    • “emailexpireddocuments” – 0 ou 1 (optional) (default 0)
  • “session” - string

updateCustomer:

  • method: “updateCustomer”
  • params:
    • “company” – int
    • “id” - int
    • “customer_code” - string
    • “nif” – string
    • “name” – string
    • “contact” – string (optional)
    • “address” – string
    • “city” – string
    • “postalcode” – string
    • “region” – string (optional)
    • “country_id” – int
    • “telephone” – string (optional)
    • “fax” – string (optional)
    • “email” – string (optional)
    • “website” – string (optional)
    • “financial_discount” – decimal (optional)
    • “paymentterm_id” – int
    • “seller_id” – int (optional)
    • “tax_id” – int (optional)
  • “session” - string

listSuppliers:

  • method: “listSuppliers”
  • params:
    • “company” - int
  • “session” – string

addSupplier:

  • method: “addSupplier”
  • params:
    • “company” – int
    • “supplier_code” - string
    • “nif” – string
    • “name” – string
    • “contact” – string (optional)
    • “address” – string
    • “city” – string
    • “postalcode” – string
    • “region” – string (optional)
    • “country_id” – int
    • “telephone” – string (optional)
    • “fax” – string (optional)
    • “email” – string (optional)
    • “website” – string (optional)
  • “session” - string

updateSupplier:

  • method: “updateSupplier”
  • params:
    • “company” – int
    • “id” - int
    • “supplier_code” - string
    • “nif” – string
    • “name” – string
    • “contact” – string (optional)
    • “address” – string
    • “city” – string
    • “postalcode” – string
    • “region” – string (optional)
    • “country_id” – int
    • “telephone” – string (optional)
    • “fax” – string (optional)
    • “email” – string (optional)
    • “website” – string (optional)
  • “session” - string

listPaymentTerms:

  • method: “listPaymentTerms”
  • params:
    • “company” - int
  • “session” – string

listCountries:

  • method: “listCountries”
  • “session” – string

listTaxes:

  • method: “listTaxes”
  • params:
    • “company” - int
  • “session” – string

listUnits:

  • method: “listUnits”
  • params:
    • “company” - int
  • “session” – string

listSellers:

  • method: “listSellers”
  • params:
    • “company” - int
  • “session” – string

addInvoice:

  • method: “addInvoice”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “expiration_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int (optional)
    • “delivery_date” – string (dd/mm/yyyy) (optional)
    • “loading_address” – string (optional)
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string (optional)
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “paymentmethod_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
    • “retention” – decimal (optional)
  • “session” - string

Sample request:

{
    "method": "addInvoice",
        "params": {
            "company": "1",
            "docseries_id": "1",
            "finished": "1",
            "customer_id": "5",
            "date": "15/07/2014",
            "expiration_date": "14/08/2014",
            "products": {
                    "product": {
                        "id": 6,
                        "reference": "Prod1",
                        "description": "Produto Teste 1",
                        "unit_id": 5,
                        "quantity": 4,
                        "price": 5.50,
                        "discount": 0,
                        "tax_id": 4
                    },
                    "product2": {
                        "id": 6,
                        "reference": "Prod1",
                        "description": "Produto Teste 2",
                        "unit_id": 5,
                        "quantity": 1,
                        "price": 5,
                        "discount": 0,
                        "tax_id": 4
                    }
                }
            },
            "session": "GMVIdECm4peN8ksnqpd9fa4lHrFMKrfklVky2rsP"
        }

addInvoiceWithAddress:

  • method: “addInvoiceWithAddress”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “expiration_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int (optional)
    • “delivery_date” – string (dd/mm/yyyy) (optional)
    • “loading_address” – string (optional)
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string (optional)
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “paymentmethod_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
    • “retention” – decimal (optional)
  • “session” - string

Sample request:

{
    "method": "addInvoiceWithAdress",
        "params": {
            "company": "1",
            "docseries_id": "1",
            "finished": "1",
            "customer_id": "5",
            "date": "15/07/2014",
            "expiration_date": "14/08/2014",
            "products": {
                    "product": {
                        "id": 6,
                        "reference": "Prod1",
                        "description": "Produto Teste 1",
                        "unit_id": 5,
                        "quantity": 4,
                        "price": 5.50,
                        "discount": 0,
                        "tax_id": 4
                    },
                    "product2": {
                        "id": 6,
                        "reference": "Prod1",
                        "description": "Produto Teste 2",
                        "unit_id": 5,
                        "quantity": 1,
                        "price": 5,
                        "discount": 0,
                        "tax_id": 4
                    }
                },
                            "customer_address" : "new address", 
			                "customer_postalcode" : "1234-567", 
			                "customer_city" : "my city", 
			                "customer_country_id" : "2"

            },
            "session": "GMVIdECm4peN8ksnqpd9fa4lHrFMKrfklVky2rsP"
        }

addPurchase:

  • method: “addPurchase”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “supplier_id” – int
    • “date” – string (dd/mm/yyyy)
    • “dateDelivery” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “supplier_reference” – string (optional)
    • “classification_id” – int (optional)
  • “session” – string

addReceipt:

  • method: “addReceipt”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “value” – decimal
    • “date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
  • invoices: (one or more)
    • invoice_id – int
    • value - decimal
    • tax_id – int
    • doc_id - int
    • invoice_ref - string (Required when doc_id = 0)
    • invoice_date - string (dd/mm/yyyy) (Required when doc_id = 0)
  • payments: (one or more)
    • paymentmethod_id – int
    • date – string (dd/mm/yyyy)
    • value – decimal
    • obs – string (optional)
  • “session” - string

listPaymentMethods:

  • method: “listPaymentMethods”
  • params:
    • “company” - int
  • “session” – string

listDocumentSeries:

  • method: “listDocumentSeries”
  • params:
    • “company” - int
  • “session” – string

listProductTypes:

  • method: “listProductTypes”
  • “session” – string

listDeliveryMethods:

  • method: “listDeliveryMethods”
  • params:
    • “company” - int
  • “session” – string

listClassifications:

  • method: “listClassifications”
  • params:
    • “company” - int
  • “session” – string

printInvoice:

  • method: “printInvoice”
  • params:
    • “company” – int
    • “id” - int
  • “session” – string

addSimplifiedInvoice:

  • method: “addSimplifiedInvoice”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “expiration_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int (optional)
    • “delivery_date” – string (dd/mm/yyyy) (optional)
    • “loading_address” – string (optional)
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string (optional)
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “paymentmethod_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
  • “session” - string

addBillLading:

  • method: “addBillLading”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int
    • “delivery_date” – string (dd/mm/yyyy HH:mm)
    • “loading_address” – string
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “customer_reference” – string (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
  • “session” - string
  • Return:
    • "code" - int (1- Sucesso; 0-Insucesso)
    • "id" - int
    • "idDoc" - int
    • "error" - string (Descrição erro)
    • "transport_code" - string (Código de comunicação à AT)

printBillLading:

  • method: “printBillLading”
  • params:
    • “company” - int
    • “id” - int
  • “session” - string

addDeliveryNote:

  • method: “addDeliveryNote”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int
    • “delivery_date” – string (dd/mm/yyyy)
    • “loading_address” – string
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “customer_reference” – string (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
  • “session” – string

printDeliveryNote:

  • method: “printDeliveryNote”
  • params:
    • “company” - int
    • “id” - int
  • “session” - string

listProductComposition:

  • method: listProductComposition
  • params:
    • “company” – int
    • “parent_id” - int
  • “session” - string

addProductComposition:

  • method: “addProductComposition”
  • params:
    • “company” – int
    • “parent_id” - int
    • “child_id” – int
    • “quantity” – decimal
    • “discount” – decimal (optional) (%)
  • “session” - string

updateProductComposition:

  • method: “updateProductComposition”
  • params:
    • “company” – int
    • “parent_id” - int
    • “child_id” – int
    • “quantity” – decimal
    • “discount” – decimal (optional) (%)
  • “session” - string

deleteProductComposition:

  • method: “deleteProductComposition”
  • params:
    • “company” – int
    • “parent_id” - int
    • “child_id” – int
  • “session” - string

addOrder:

  • method: “addOrder”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “delivery_date” – string (dd/mm/yyyy)
    • “delivery_address” – string
    • “delivery_postalcode” – string
    • “delivery_city” – string
    • “delivery_region” - string
    • “delivery_country_id” – int
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “contact_name” – string (optional)
    • “contact_phone” – string (optional)
    • “seller_id” – int (optional)
  • “session” - string

cancelOrder:

  • method: “cancelOrder”
  • params:
    • “company” – int
    • “id” - int
  • “session” - string

getPlafond:

  • method: “getPlafond”
  • params:
    • “company” – int
    • “customer_id” - int
  • “session” - string

getStock:

  • method: “getStock”
  • params:
    • “company” – int
    • “product_id” - int
  • “session” - string

getProductID:

  • method: “getProductID”
  • params:
    • “company” – int
    • “product_reference” - string
  • “session” - string

addInvoiceReceipt:

  • method: “addInvoice”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “expiration_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int (optional)
    • “delivery_date” – string (dd/mm/yyyy) (optional)
    • “loading_address” – string (optional)
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string (optional)
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “paymentmethod_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
    • “bankaccount_id” – int (optional)
    • “retention” – decimal (optional)
  • “session” - string

printCreditNote:

  • method: “printCreditNote”
  • params:
    • “company” – int
    • “id” - int
  • “session” - string

printReceipt:

  • method: “printReceipt”
  • params:
    • “company” – int
    • “id” - int
  • “session” - string

printInvoiceReceipt:

  • method: “printInvoiceReceipt”
  • params:
    • “company” – int
    • “id” - int
  • “session” - string

orderStartProduction:

  • method: “orderStartProduction”
  • params:
    • “company” – int
    • “order” - int
  • “session” - string

orderEndProduction:

  • method: “orderEndProduction”
  • params:
    • “company” – int
    • “order” - int
  • “session” - string

customerExists:

  • method: “customerExists”
  • params:
    • “company” – int
    • “vatnumber” - int
  • “session” - string

getCustomerVAT:

  • method: “getCustomerVAT”
  • params:
    • “company” – int
    • “customer_id” - int
  • “session” - string

listBankAccount:

  • method: “listBankAccount”
  • params:
    • “company” - int
  • “session” - string

printSimplifiedInvoice:

  • method: “printSimplifiedInvoice”
  • params:
    • “company” – int
    • “id” - int
  • “session” - string

addCreditNote:

  • method: “addCreditNote”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “movestock” – 0 or 1 (optional)
    • “obs” – string (optional)
    • “customer_reference” – string (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • financial_discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
      • invoice_id – int (only valid for invoices, not simplifiedinvoice or invoicereceipt)
      • reason - string (limited to 50 chars for PT)
  • “session” - string

Sample request:

{
    "method": "addCreditNote",
       "params": {
              "company": "4122",
              "docseries_id": "23654",
              "finished": "1",
              "customer_id": "22442",
              "date": "19/09/2016",
			  "products": {
                    "product1": {
                           "id": 25248,
                           "reference": "ART1",
                           "description": "Artigo 1",
                           "invoice_id": 17914,
                           "quantity": 6,
                           "price": 4,
                           "financial_discount": 20,
                           "unit_id": 10374,
                           "tax_id": 13776,
                           "reason": "Cancelamento de fatura"
                    },
                    "product2": {
                           "id": 25249,
                           "reference": "ART2",
                           "description": "Artigo 2",
                           "invoice_id": 17912,
                           "quantity": 1,
                           "price": 4,
                           "unit_id": 10374,
                           "tax_id": 13776,
                           "reason": "Cancelamento parcial de fatura"
                    }
              }
       },
       "session" : "QlxhTjkiIBlodMBPIiRO4xKXn40xgc47HpAphC2R"
}

addCreditNoteInvoiceReceipt:

  • method: “addCreditNoteInvoiceReceipt”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “movestock” – 0 or 1 (optional)
    • “obs” – string (optional)
    • “customer_reference” – string (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • financial_discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
      • invoicereceipt_id – int (only valid for invoicereceipt, not simplifiedinvoice or invoices)
      • reason - string (limited to 50 chars for PT)
  • “session” - string

Sample request:

{
    "method": "addCreditNoteInvoiceReceipt",
       "params": {
              "company": "4122",
              "docseries_id": "23654",
              "finished": "1",
              "customer_id": "22442",
              "date": "19/09/2016",
			  "products": {
                    "product1": {
                           "id": 25248,
                           "reference": "ART1",
                           "description": "Artigo 1",
                           "invoicereceipt_id": 17914,
                           "quantity": 6,
                           "price": 4,
                           "financial_discount": 20,
                           "unit_id": 10374,
                           "tax_id": 13776,
                           "reason": "Cancelamento de fatura-recibo"
                    },
                    "product2": {
                           "id": 25249,
                           "reference": "ART2",
                           "description": "Artigo 2",
                           "invoicereceipt_id": 17912,
                           "quantity": 1,
                           "price": 4,
                           "unit_id": 10374,
                           "tax_id": 13776,
                           "reason": "Cancelamento parcial de fatura-recibo"
                    }
              }
       },
       "session" : "QlxhTjkiIBlodMBPIiRO4xKXn40xgc47HpAphC2R"
}

listZones:

  • method: “listZones”
  • params:
    • “company” - int
  • “session” - string

listSituations:

  • method: “listSituations”
  • “session” - string

printInvoiceProForma:

  • method: “printInvoiceProForma”
  • params:
    • “company” - int
    • “id” - int
  • “session” - string

printCustomerBudget:

  • method: “printCustomerBudget”
  • params:
    • “company” - int
    • “id” - int
  • “session” - string

addInvoiceProForma:

  • method: “addInvoiceProForma”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “finished” – 0 ou 1
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “expiration_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • “deliverymethod_id” – int (optional)
    • “delivery_date” – string (dd/mm/yyyy) (optional)
    • “loading_address” – string (optional)
    • “loading_postalcode” – string (optional)
    • “loading_city” – string (optional)
    • “loading_country_id” – int (optional)
    • “unloading_address” – string (optional)
    • “unloading_postalcode” – string (optional)
    • “unloading_city” – string (optional)
    • “unloading_country_id” – int (optional)
    • “gross_weight” – decimal(optional)
    • “net_weight” – decimal(optional)
    • “volume” – decimal(optional)
    • “palete_num” – int (optional)
    • “card_num” – int (optional)
    • products: (one or more)
      • id – int
      • reference – string
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “paymentterm_id” – int (optional)
    • “paymentmethod_id” – int (optional)
    • “customer_reference” – string (optional)
    • “financial_discount” – decimal (optional)
    • “vehicle” – string (optional)
    • “seller_id” – int (optional)
  • “session” - string

addCustomerBudget:

  • method: “addCustomerBudget”
  • params:
    • “company” – int
    • “docseries_id” – int
    • “customer_id” – int
    • “date” – string (dd/mm/yyyy)
    • “validity_date” – string (dd/mm/yyyy)
    • “obs” – string (optional)
    • products: (one or more)
      • id – int
      • description – string
      • unit_id – int
      • quantity – decimal
      • price – decimal
      • discount – decimal (optional)
      • discount_value - decimal (optional)
      • tax_id – int
      • summary – string (optional)
    • “zone_id” – int
    • “situation_id” – int
    • “situation_date” – string (dd/mm/yyyy)
    • “seller_id” – int (optional)
    • “name” - string
  • “session” - string

getSaftPT:

  • method: “geSaftPT”
  • params:
    • “company” – int
    • “year” – int
    • “month” – int
  • “session” - string

cancelReceipt:

  • method: “cancelReceipt”
  • params:
    • “company” – int
    • “receipt_id” - int
    • “reason” - string
  • “session” - string