POST api/Orders/AddGRN

Request Information

URI Parameters

None.

Body Parameters

GRNInfo
NameDescriptionTypeAdditional information
AppId

string

None.

AppKey

string

None.

Ship-to Code

string

None.

Ship-from Code

string

None.

Candela Purchase Order Number

string

None.

Candela Purchase Order Date

date

None.

AlternateItemCode

string

None.

ItemPrice

decimal number

None.

ShopId

integer

None.

SupplierId

integer

None.

AlternateItemId

integer

None.

Lines

Collection of GRNProduct

None.

POId

integer

None.

SuppAccountId

integer

None.

BatchNo

string

None.

InvoiceId

string

None.

ProductionInventoryID

integer

None.

ShopInventoryID

integer

None.

AccountRecordId

integer

None.

AccountId

integer

None.

PODetailId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AppId": "sample string 1",
  "AppKey": "sample string 2",
  "Ship-to Code": "sample string 3",
  "Ship-from Code": "sample string 4",
  "Candela Purchase Order Number": "sample string 5",
  "Candela Purchase Order Date": "2024-10-06T07:51:19.0676272+08:00",
  "AlternateItemCode": "sample string 7",
  "ItemPrice": 8.1,
  "ShopId": 9,
  "SupplierId": 10,
  "AlternateItemId": 11,
  "Lines": [
    {
      "Item": "sample string 1",
      "Ordered Quantity in Order Unit": 2.1,
      "Order Line": 3
    },
    {
      "Item": "sample string 1",
      "Ordered Quantity in Order Unit": 2.1,
      "Order Line": 3
    }
  ],
  "POId": 12,
  "SuppAccountId": 13,
  "BatchNo": "sample string 14",
  "InvoiceId": "sample string 15",
  "ProductionInventoryID": 16,
  "ShopInventoryID": 17,
  "AccountRecordId": 18,
  "AccountId": 19,
  "PODetailId": 20
}

text/xml

Sample:
<GRNInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models">
  <AccountId>19</AccountId>
  <AccountRecordId>18</AccountRecordId>
  <AlternateCodes>
    <GRNProduct>
      <LineNumber>3</LineNumber>
      <ProductAlternateCode>sample string 1</ProductAlternateCode>
      <Quantity>2.1</Quantity>
    </GRNProduct>
    <GRNProduct>
      <LineNumber>3</LineNumber>
      <ProductAlternateCode>sample string 1</ProductAlternateCode>
      <Quantity>2.1</Quantity>
    </GRNProduct>
  </AlternateCodes>
  <AlternateItemCode>sample string 7</AlternateItemCode>
  <AlternateItemId>11</AlternateItemId>
  <AppId>sample string 1</AppId>
  <AppKey>sample string 2</AppKey>
  <BatchNo>sample string 14</BatchNo>
  <InvoiceId>sample string 15</InvoiceId>
  <ItemPrice>8.1</ItemPrice>
  <PODate>2024-10-06T07:51:19.0676272+08:00</PODate>
  <PODetailId>20</PODetailId>
  <POId>12</POId>
  <PONo>sample string 5</PONo>
  <ProductionInventoryID>16</ProductionInventoryID>
  <ShopCode>sample string 3</ShopCode>
  <ShopId>9</ShopId>
  <ShopInventoryID>17</ShopInventoryID>
  <SuppAccountId>13</SuppAccountId>
  <SupplierCode>sample string 4</SupplierCode>
  <SupplierId>10</SupplierId>
</GRNInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GRN
NameDescriptionTypeAdditional information
Updated

string

None.

ErrorMessage

string

None.

LineNumber

string

None.

OrderNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Updated": "sample string 1",
  "ErrorMessage": "sample string 2",
  "LineNumber": "sample string 3",
  "OrderNumber": "sample string 4"
}

text/xml

Sample:
<GRN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <LineNumber>sample string 3</LineNumber>
  <OrderNumber>sample string 4</OrderNumber>
  <Updated>sample string 1</Updated>
</GRN>