POST api/AllocateSingle

Request Information

URI Parameters

None.

Body Parameters

SingleAllocationRequest
NameDescriptionTypeAdditional information
DB

string

None.

CustomerName

string

None.

UserEmail

string

None.

Allocation_Amount

string

None.

AllocationInvArray

Collection of AllocationInvArrayParam

None.

AllocationRecArray

Collection of AllocationRecArrayParam

None.

Request Formats

application/json, text/json

Sample:
{
  "DB": "sample string 1",
  "CustomerName": "sample string 2",
  "UserEmail": "sample string 3",
  "Allocation_Amount": "sample string 4",
  "AllocationInvArray": [
    {
      "AR_PostingID": 1,
      "Trans_Date": "2026-04-21T14:49:21.1103789+01:00",
      "Doc_Ref_No": "sample string 3",
      "Debit": 4.0,
      "Credit": 5.0,
      "CustomerID": 6,
      "RepID": 7,
      "Allocation": "sample string 8",
      "Outstanding_Balance": 9.0,
      "ProjectID": 10,
      "Foreign_Outstanding": 11.0,
      "Date_Time_Stamp": "2026-04-21T14:49:21.1103789+01:00",
      "Added_by": "sample string 13",
      "BranchID": 14,
      "CurrencyID": 15,
      "Exchange_Rate": 16.1,
      "Foreign_Debit": 17.0,
      "Foreign_Credit": 18.0,
      "Period": 19,
      "Reconciled": true,
      "Debit_or_Credit_Account": 21
    },
    {
      "AR_PostingID": 1,
      "Trans_Date": "2026-04-21T14:49:21.1103789+01:00",
      "Doc_Ref_No": "sample string 3",
      "Debit": 4.0,
      "Credit": 5.0,
      "CustomerID": 6,
      "RepID": 7,
      "Allocation": "sample string 8",
      "Outstanding_Balance": 9.0,
      "ProjectID": 10,
      "Foreign_Outstanding": 11.0,
      "Date_Time_Stamp": "2026-04-21T14:49:21.1103789+01:00",
      "Added_by": "sample string 13",
      "BranchID": 14,
      "CurrencyID": 15,
      "Exchange_Rate": 16.1,
      "Foreign_Debit": 17.0,
      "Foreign_Credit": 18.0,
      "Period": 19,
      "Reconciled": true,
      "Debit_or_Credit_Account": 21
    }
  ],
  "AllocationRecArray": [
    {
      "AR_PostingID": 1,
      "Trans_Date": "2026-04-21T14:49:21.1103789+01:00",
      "Outstanding_Balance": 3.0,
      "Foreign_Outstanding": 4.0
    },
    {
      "AR_PostingID": 1,
      "Trans_Date": "2026-04-21T14:49:21.1103789+01:00",
      "Outstanding_Balance": 3.0,
      "Foreign_Outstanding": 4.0
    }
  ]
}

application/xml, text/xml

Sample:
<SingleAllocationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdroitERPWebApis">
  <AllocationInvArray>
    <AllocationInvArrayParam>
      <AR_PostingID>1</AR_PostingID>
      <Added_by>sample string 13</Added_by>
      <Allocation>sample string 8</Allocation>
      <BranchID>14</BranchID>
      <Credit>5</Credit>
      <CurrencyID>15</CurrencyID>
      <CustomerID>6</CustomerID>
      <Date_Time_Stamp>2026-04-21T14:49:21.1103789+01:00</Date_Time_Stamp>
      <Debit>4</Debit>
      <Debit_or_Credit_Account>21</Debit_or_Credit_Account>
      <Doc_Ref_No>sample string 3</Doc_Ref_No>
      <Exchange_Rate>16.1</Exchange_Rate>
      <Foreign_Credit>18</Foreign_Credit>
      <Foreign_Debit>17</Foreign_Debit>
      <Foreign_Outstanding>11</Foreign_Outstanding>
      <Outstanding_Balance>9</Outstanding_Balance>
      <Period>19</Period>
      <ProjectID>10</ProjectID>
      <Reconciled>true</Reconciled>
      <RepID>7</RepID>
      <Trans_Date>2026-04-21T14:49:21.1103789+01:00</Trans_Date>
    </AllocationInvArrayParam>
    <AllocationInvArrayParam>
      <AR_PostingID>1</AR_PostingID>
      <Added_by>sample string 13</Added_by>
      <Allocation>sample string 8</Allocation>
      <BranchID>14</BranchID>
      <Credit>5</Credit>
      <CurrencyID>15</CurrencyID>
      <CustomerID>6</CustomerID>
      <Date_Time_Stamp>2026-04-21T14:49:21.1103789+01:00</Date_Time_Stamp>
      <Debit>4</Debit>
      <Debit_or_Credit_Account>21</Debit_or_Credit_Account>
      <Doc_Ref_No>sample string 3</Doc_Ref_No>
      <Exchange_Rate>16.1</Exchange_Rate>
      <Foreign_Credit>18</Foreign_Credit>
      <Foreign_Debit>17</Foreign_Debit>
      <Foreign_Outstanding>11</Foreign_Outstanding>
      <Outstanding_Balance>9</Outstanding_Balance>
      <Period>19</Period>
      <ProjectID>10</ProjectID>
      <Reconciled>true</Reconciled>
      <RepID>7</RepID>
      <Trans_Date>2026-04-21T14:49:21.1103789+01:00</Trans_Date>
    </AllocationInvArrayParam>
  </AllocationInvArray>
  <AllocationRecArray>
    <AllocationRecArrayParam>
      <AR_PostingID>1</AR_PostingID>
      <Foreign_Outstanding>4</Foreign_Outstanding>
      <Outstanding_Balance>3</Outstanding_Balance>
      <Trans_Date>2026-04-21T14:49:21.1103789+01:00</Trans_Date>
    </AllocationRecArrayParam>
    <AllocationRecArrayParam>
      <AR_PostingID>1</AR_PostingID>
      <Foreign_Outstanding>4</Foreign_Outstanding>
      <Outstanding_Balance>3</Outstanding_Balance>
      <Trans_Date>2026-04-21T14:49:21.1103789+01:00</Trans_Date>
    </AllocationRecArrayParam>
  </AllocationRecArray>
  <Allocation_Amount>sample string 4</Allocation_Amount>
  <CustomerName>sample string 2</CustomerName>
  <DB>sample string 1</DB>
  <UserEmail>sample string 3</UserEmail>
</SingleAllocationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>