Cuentas (Accounts)

Cuentas (Accounts)

Obtener lista de cuentas

Este endpoint requiere autenticación
  1. GET /webapi/accounts?skip=0&maxRecords=10
Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":
  4.     [
  5.         {
  6.             "ID":"bde77223-a6a6-4ce9-a52a-7958a2c8365e",
  7.             "Name":"new account",
  8.             "Phone":null,
  9.             "Fax":null,
  10.             "EMail":"test@test.com",
  11.             "CurrencyID":"USD",
  12.             "Notes":null,
  13.             "TaxFree":false,
  14.             "IsCustomer":true,
  15.             "IsVendor":true,
  16.             "TaxPayerID":null,
  17.             "BillingAddress":null,
  18.             "BillingAddress2":null,
  19.             "BillingCity":null,
  20.             "BillingState":null,
  21.             "BillingZipCode":null,
  22.             "BillingCountryID":null,
  23.             "BillingCountryName":null,
  24.             "ShippingAddress":null,
  25.             "ShippingAddress2":null,
  26.             "ShippingCity":null,
  27.             "ShippingState":null,
  28.             "ShippingZipCode":null,
  29.             "ShippingCountryID":null,
  30.             "ShippingCountryName":null,
  31.             "InvoiceSequence":0,
  32.             "TaxVoucherSequence":0,
  33.             "Inactive":false,
  34.             "contacts":
  35.             []
  36.         }
  37.     ]
  38. }

Obtener lista de Clientes

Este endpoint requiere autenticación
  1. GET /webapi/customers?skip=0&maxRecords=10
Respuesta Esperada:

  1. {
  2.     "status":"ok",
  3.     "data":
  4.     [
  5.         {
  6.             "ID":"bde77223-a6a6-4ce9-a52a-7958a2c8365e",
  7.             "Name":"new account",
  8.             "Phone":null,
  9.             "Fax":null,
  10.             "EMail":"test@test.com",
  11.             "CurrencyID":"USD",
  12.             "Notes":null,
  13.             "TaxFree":false,
  14.             "IsCustomer":true,
  15.             "IsVendor":true,
  16.             "TaxPayerID":null,
  17.             "BillingAddress":null,
  18.             "BillingAddress2":null,
  19.             "BillingCity":null,
  20.             "BillingState":null,
  21.             "BillingZipCode":null,
  22.             "BillingCountryID":null,
  23.             "BillingCountryName":null,
  24.             "ShippingAddress":null,
  25.             "ShippingAddress2":null,
  26.             "ShippingCity":null,
  27.             "ShippingState":null,
  28.             "ShippingZipCode":null,
  29.             "ShippingCountryID":null,
  30.             "ShippingCountryName":null,
  31.             "InvoiceSequence":0,
  32.             "TaxVoucherSequence":0,
  33.             "Inactive":false,
  34.             "contacts":
  35.             []
  36.         }
  37.     ]
  38. }

Obtener lista de Vendedores

Este endpoint requiere autenticación
  1. GET /webapi/vendors?skip=0&maxRecords=10
Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":
  4.     [
  5.         {
  6.             "ID":"bde77223-a6a6-4ce9-a52a-7958a2c8365e",
  7.             "Name":"new account",
  8.             "Phone":null,
  9.             "Fax":null,
  10.             "EMail":"test@test.com",
  11.             "CurrencyID":"USD",
  12.             "Notes":null,
  13.             "TaxFree":false,
  14.             "IsCustomer":true,
  15.             "IsVendor":true,
  16.             "TaxPayerID":null,
  17.             "BillingAddress":null,
  18.             "BillingAddress2":null,
  19.             "BillingCity":null,
  20.             "BillingState":null,
  21.             "BillingZipCode":null,
  22.             "BillingCountryID":null,
  23.             "BillingCountryName":null,
  24.             "ShippingAddress":null,
  25.             "ShippingAddress2":null,
  26.             "ShippingCity":null,
  27.             "ShippingState":null,
  28.             "ShippingZipCode":null,
  29.             "ShippingCountryID":null,
  30.             "ShippingCountryName":null,
  31.             "InvoiceSequence":0,
  32.             "TaxVoucherSequence":0,
  33.             "Inactive":false,
  34.             "contacts":
  35.             []
  36.         }
  37.     ]
  38. }

Agregar Cuenta

Este endpoint requiere autenticación
  1. POST /webapi/accounts

Solicitud esperada (body):
  1. {
  2.     'name' : 'new account',
  3.     'eMail': 'test@test.com', 
  4.     'currencyID' : 'USD'
  5. }

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":"bde77223-a6a6-4ce9-a52a-7958a2c8365e"
  4. }

Editar Cuenta

Este endpoint requiere autenticación
  1. PUT /webapi/accounts

Solicitud esperada (body):
  1.     'id': 'a2e0b740-f036-4d47-8eb3-d64849d13a8e', 
  2.     'name': 'new account', 
  3.     'eMail': 'test@test.com', 
  4.     'currencyID': 'USD' 
  5. }

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":null
  4. }

Eliminar Cuenta

Este endpoint requiere autenticación
  1. DELETE /webapi/accounts?ID=a2e0b740-f036-4d47-8eb3-d64849d13a8e

Respuesta Esperada:
  1. {
  2.     "status":"ok",
  3.     "data":null
  4. }


    • Related Articles

    • Catalogo de cuentas (Chart Accounts)

      Obtener catalogo de cuentas Este endpoint requiere autenticación GET /webapi/chartAccounts?skip=0&maxRecords=10 Respuesta Esperada: {     "status":"ok",     "data":     [         {             "ID":"fee9cce1-6216-4a8f-8f73-94ba125610cf",             ...
    • Cuentas de gastos (Expenses classes)

      Obtener lista de cuentas de gastos Este endpoint requiere autenticación GET /webapi/expenseClasses?skip=0&maxRecords=10 Respuesta Esperada: {     "status":"ok",     "data":     [         {             "ID":"9486c625-8d3a-4dcf-b8cd-0a6a5826c70d",     ...
    • API de AccountingLive

      Introducción La API de AccountingLive le permite conectar su aplicación a AccountingLive para acceder a los datos del sistema. La API se implementa con diferentes endpoints HTTPS que reciben y devuelven objetos JSON a través de peticiones HTTP ...
    • Entradas de diario (Journals)

      Obtener lista de entradas de diario Este endpoint requiere autenticación GET /webapi/journals?skip=0&maxRecords=10 Respuesta Esperada: {     "status":"ok",     "data":     [         {             "ID":"00000000-0000-0000-0000-000000000000",           ...
    • Contabilidad General

      Contabilidad General:   En este módulo podrás optimizar los recursos de tu empresa de manera intuitiva.  Todo aquel que busque funcionar correctamente su negocio debe apoyarse en la contabilidad. AccountingLive esta especialmente diseñado para ...