Eagle Business Software is now Koble (Learn More)
You are currently on our legacy site. Please visit KobleSystems.com

ARINV

Sales document

Inherits from EbmsEntity

Properties

Version 1.5.47, Updated on Tuesday, March 14, 2023

Creating a new sales order

POSThttps://ecc123456789012345.servicebus.windows.net/MyEbms/ABC/OData/ARINV
{
 "ID": "DOEJOH",
 "INV_DATE": "01/15/2020",
 "SHIP_DATE": "01/21/2020",
 "DESCR": "Misc groceries",
 "MEMO": "multi – line memo \r\nSo much can be written here and can be printed at the bottom of the invoice",
 "Details":
  [
   {
    "INVEN": "STRAWBER",
    "DESCR": "[Overwrite the EBMS description if you wish with this multi-line memo]",
    "M_QUAN_VIS": "2",
    "M_SHIP_VIS": "1",
    "UNIT":"14.99",
    "UNIT_MEAS":"Box"
   },
   {
    "INVEN": "SUGARWH",
    "M_QUAN_VIS": "1",
    "M_SHIP_VIS": "1"
   },
  ],
 "Payments":
  [
   {
    "AMOUNT":"7.32",
    "DATE":"01/15/2020",
    "CHECK_NO":"CASH",
    "TYPE":"Cash",
    "CASH_ACNT":"01000-000"
   }
  ],
 "PROCESS":"Process"
}


Creating a new sales order with credit card payment

POSThttps://ecc123456789012345.servicebus.windows.net/MyEbms/ABC/OData/ARINV
{
 "ID": "DOEJOH",
 "INV_DATE": "01/15/2020",
 "SHIP_DATE": "01/21/2020",
 "DESCR": "Misc groceries",
 "MEMO": "multi – line memo \r\nSo much can be written here and can be printed at the bottom of the invoice",
 "Details":
  [
   {
    "INVEN": "STRAWBER",
    "DESCR": "[Overwrite the EBMS description if you wish with this multi-line memo]",
    "M_QUAN_VIS": "2",
    "M_SHIP_VIS": "1",
    "UNIT":"14.99",
    "UNIT_MEAS":"Box"
   },
   {
    "INVEN": "SUGARWH",
    "M_QUAN_VIS": "1",
    "M_SHIP_VIS": "1"
   },
  ],
 "Payments":
  [
   {
    "TYPE": "Credit",
    "CC_TYPE": "MC",
    "CC_4DIGIT": "1234",
    "ACTION": "XX7",
    "AMOUNT":"7.32",
    "CASH_ACNT":"01000-000",
    "DATE":"01/15/2020"
   }
  ],
 "PROCESS":"Process"
}


Editing sales order details

In this example, we modify one item, remove one item, and add one new item.

PATCHhttps://ecc123456789012345.servicebus.windows.net/MyEbms/ABC/OData/ARINV('2SQIJ0T7679LEIG0')
{
 "Details@delta": [
  {
   "@id":"39D80NN66P729HA1",
   "M_QUAN_VIS":10
  },
  {
   "@id":"V9D80NN66P729HA1",
   "@removed":true
  },
  {
   "INVEN":"LHAM",
   "M_QUAN_VIS":10
  }
 ]
}


Voiding a payment

Payments can be voided by setting ACTION to XX4, note that you cannot remove payments, only void them.

PATCHhttps://ecc123456789012345.servicebus.windows.net/MyEbms/ABC/OData/ARINV('2SQIJ0T7679LEIG0')
{
 "Payments@delta": [
  {
   "@id":"K908NQRVPDNCQ000",
   "ACTION":"XX4"
  }
 ]
}


Creating a new sales order with manual taxes

POSThttps://ecc123456789012345.servicebus.windows.net/MyEbms/ABC/OData/ARINV
{
 "ID": "DOEJOH",
 "MAN_TAX": true,
 "Details":
  [
   {
    "INVEN": "SUGARWH",
    "M_QUAN_VIS": "1",
    "M_SHIP_VIS": "1"
   },
  ],
 "ARINVTAXes":
  [
   {
    "TAX_ID": "PA",
    "SO_TAX_AMT": -4.23,
    "SO_TAXABLE": -70.50,
    "SO_TXBLQTY": 0.00,
    "TAX_AMT": -4.23,
    "TAXABLEAMT": -70.50,
    "TAXBLEQTY": 0.00
   }
  ]
}