POST api/jcbatch/savetransactions?userCode={userCode}&useMonthBatch={useMonthBatch}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userCode

string

Required

useMonthBatch

boolean

Default value is False

Body Parameters

Collection of JobTransaction
NameDescriptionTypeAdditional information
LineType

string

None.

JobCode

string

None.

TransactionDate

date

None.

ProductCode

string

None.

Description

string

None.

Quantity

decimal number

None.

ProxyLineId

integer

None.

LocationCode

string

None.

ComponentCode

string

None.

CostCentre

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "LineType": "sample string 1",
    "JobCode": "sample string 2",
    "TransactionDate": "2024-12-13T09:28:37.532821+13:00",
    "ProductCode": "sample string 4",
    "Description": "sample string 5",
    "Quantity": 6.0,
    "ProxyLineId": 7,
    "LocationCode": "sample string 8",
    "ComponentCode": "sample string 9",
    "CostCentre": "sample string 10"
  },
  {
    "LineType": "sample string 1",
    "JobCode": "sample string 2",
    "TransactionDate": "2024-12-13T09:28:37.532821+13:00",
    "ProductCode": "sample string 4",
    "Description": "sample string 5",
    "Quantity": 6.0,
    "ProxyLineId": 7,
    "LocationCode": "sample string 8",
    "ComponentCode": "sample string 9",
    "CostCentre": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfJobTransaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccredoWeb.Model.JC">
  <JobTransaction>
    <ComponentCode>sample string 9</ComponentCode>
    <CostCentre>sample string 10</CostCentre>
    <Description>sample string 5</Description>
    <JobCode>sample string 2</JobCode>
    <LineType>sample string 1</LineType>
    <LocationCode>sample string 8</LocationCode>
    <ProductCode>sample string 4</ProductCode>
    <ProxyLineId>7</ProxyLineId>
    <Quantity>6</Quantity>
    <TransactionDate>2024-12-13T09:28:37.532821+13:00</TransactionDate>
  </JobTransaction>
  <JobTransaction>
    <ComponentCode>sample string 9</ComponentCode>
    <CostCentre>sample string 10</CostCentre>
    <Description>sample string 5</Description>
    <JobCode>sample string 2</JobCode>
    <LineType>sample string 1</LineType>
    <LocationCode>sample string 8</LocationCode>
    <ProductCode>sample string 4</ProductCode>
    <ProxyLineId>7</ProxyLineId>
    <Quantity>6</Quantity>
    <TransactionDate>2024-12-13T09:28:37.532821+13:00</TransactionDate>
  </JobTransaction>
</ArrayOfJobTransaction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of TransactionResult
NameDescriptionTypeAdditional information
BatchId

integer

None.

ProxyLineId

integer

None.

AccredoLineId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BatchId": 1,
    "ProxyLineId": 2,
    "AccredoLineId": 3
  },
  {
    "BatchId": 1,
    "ProxyLineId": 2,
    "AccredoLineId": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfTransactionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccredoWeb.Model.JC">
  <TransactionResult>
    <AccredoLineId>3</AccredoLineId>
    <BatchId>1</BatchId>
    <ProxyLineId>2</ProxyLineId>
  </TransactionResult>
  <TransactionResult>
    <AccredoLineId>3</AccredoLineId>
    <BatchId>1</BatchId>
    <ProxyLineId>2</ProxyLineId>
  </TransactionResult>
</ArrayOfTransactionResult>