GET api/PostHeader/GetInvDetailByGRNNO?GRNNo={GRNNo}&BranchCode={BranchCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GRNNo

string

Required

BranchCode

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of P_PostHeaderLineTaxView
NameDescriptionTypeAdditional information
GRNNo

string

None.

POId

string

None.

PoLineNumber

integer

None.

ItemCode

string

None.

SupplierLedgerCode

string

None.

SupplierCode

string

None.

SupplierName

string

None.

ATaxCode

string

None.

AssValue

decimal number

None.

DiscAmt

decimal number

None.

TaxAmount

decimal number

None.

DiscPer

decimal number

None.

Rate

decimal number

None.

Qty

decimal number

None.

TaxAmt

Collection of CalculateTaxView

None.

PODate

date

None.

FreightAmount

decimal number

None.

MiscCharge

decimal number

None.

PaymentTermId

integer

None.

ItemName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ItemName": "sample string 1",
    "GRNNo": "sample string 1",
    "POId": "sample string 2",
    "PoLineNumber": 3,
    "ItemCode": "sample string 4",
    "SupplierLedgerCode": "sample string 5",
    "SupplierCode": "sample string 6",
    "SupplierName": "sample string 7",
    "ATaxCode": "sample string 8",
    "AssValue": 1.0,
    "DiscAmt": 1.0,
    "TaxAmount": 1.0,
    "DiscPer": 1.0,
    "Rate": 1.0,
    "Qty": 1.0,
    "TaxAmt": [
      {
        "ItemCode": "sample string 1",
        "TaxCode": "sample string 2",
        "TaxRate": 3.0,
        "TaxAmount": 4.0,
        "TaxLine": 5,
        "ItemLineNo": 6,
        "ATaxCode": "sample string 7"
      },
      {
        "ItemCode": "sample string 1",
        "TaxCode": "sample string 2",
        "TaxRate": 3.0,
        "TaxAmount": 4.0,
        "TaxLine": 5,
        "ItemLineNo": 6,
        "ATaxCode": "sample string 7"
      }
    ],
    "PODate": "2024-04-28T11:53:44.9166683+00:00",
    "FreightAmount": 1.0,
    "MiscCharge": 1.0,
    "PaymentTermId": 1
  },
  {
    "ItemName": "sample string 1",
    "GRNNo": "sample string 1",
    "POId": "sample string 2",
    "PoLineNumber": 3,
    "ItemCode": "sample string 4",
    "SupplierLedgerCode": "sample string 5",
    "SupplierCode": "sample string 6",
    "SupplierName": "sample string 7",
    "ATaxCode": "sample string 8",
    "AssValue": 1.0,
    "DiscAmt": 1.0,
    "TaxAmount": 1.0,
    "DiscPer": 1.0,
    "Rate": 1.0,
    "Qty": 1.0,
    "TaxAmt": [
      {
        "ItemCode": "sample string 1",
        "TaxCode": "sample string 2",
        "TaxRate": 3.0,
        "TaxAmount": 4.0,
        "TaxLine": 5,
        "ItemLineNo": 6,
        "ATaxCode": "sample string 7"
      },
      {
        "ItemCode": "sample string 1",
        "TaxCode": "sample string 2",
        "TaxRate": 3.0,
        "TaxAmount": 4.0,
        "TaxLine": 5,
        "ItemLineNo": 6,
        "ATaxCode": "sample string 7"
      }
    ],
    "PODate": "2024-04-28T11:53:44.9166683+00:00",
    "FreightAmount": 1.0,
    "MiscCharge": 1.0,
    "PaymentTermId": 1
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[RREL.Data.Models.CalculateTaxView, RREL.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' with data contract name 'ArrayOfCalculateTaxView:http://schemas.datacontract.org/2004/07/RREL.Data.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[RREL.Data.Models.CalculateTaxView, RREL.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' with data contract name 'ArrayOfCalculateTaxView:http://schemas.datacontract.org/2004/07/RREL.Data.Models' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.