POST api/V3/NonFAInvoiceDetails/UploadInvoiceDetails

Upload Invoice Details

Request Information

URI Parameters

None.

Body Parameters

Invoice Details to be updated

Collection of V3.NonFAInvoiceDetailsModel
NameDescriptionTypeAdditional information
InvoiceNumber

Invoice Number

string

Required

String length: inclusive between 1 and 50

FieldUserErpId

Field User ErpId

string

Required

OrderType

Type of Order

OrderType

None.

OrderNumber

Order Number as Per FieldAssist Order

integer

None.

DistributorErpId

Erp Code Of The distributor from where this invoice was generated [Optional]

string

None.

InvoiceDate

Date of Invoice

date

None.

RetailerERPId

SAP or ERP id of the outlet/customer

string

Required

String length: inclusive between 1 and 50

InvoiceSkuDetails

Product Details

Collection of V3.InvoiceSkuDetails

None.

ReferenceNumber

Invoice Reference Number[Optional]

string

None.

DeleteOlderInvoiceNumber

Delete Older Invoice Number

boolean

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "InvoiceNumber": "sample string 1",
    "FieldUserErpId": "sample string 2",
    "OrderType": "Physical",
    "OrderNumber": 1,
    "DistributorErpId": "sample string 3",
    "InvoiceDate": "2025-04-04T05:33:36.8008778+00:00",
    "RetailerERPId": "sample string 5",
    "InvoiceSkuDetails": [
      {
        "ProductERPId": "sample string 1",
        "BilledPTR": 1.0,
        "Quantity": 1.1,
        "OrderQty": 1.1,
        "GrossRevenueValue": 1.1,
        "NetRevenueValue": 1.1,
        "DiscountValue": 1.1
      },
      {
        "ProductERPId": "sample string 1",
        "BilledPTR": 1.0,
        "Quantity": 1.1,
        "OrderQty": 1.1,
        "GrossRevenueValue": 1.1,
        "NetRevenueValue": 1.1,
        "DiscountValue": 1.1
      }
    ],
    "ReferenceNumber": "sample string 6",
    "DeleteOlderInvoiceNumber": true
  },
  {
    "InvoiceNumber": "sample string 1",
    "FieldUserErpId": "sample string 2",
    "OrderType": "Physical",
    "OrderNumber": 1,
    "DistributorErpId": "sample string 3",
    "InvoiceDate": "2025-04-04T05:33:36.8008778+00:00",
    "RetailerERPId": "sample string 5",
    "InvoiceSkuDetails": [
      {
        "ProductERPId": "sample string 1",
        "BilledPTR": 1.0,
        "Quantity": 1.1,
        "OrderQty": 1.1,
        "GrossRevenueValue": 1.1,
        "NetRevenueValue": 1.1,
        "DiscountValue": 1.1
      },
      {
        "ProductERPId": "sample string 1",
        "BilledPTR": 1.0,
        "Quantity": 1.1,
        "OrderQty": 1.1,
        "GrossRevenueValue": 1.1,
        "NetRevenueValue": 1.1,
        "DiscountValue": 1.1
      }
    ],
    "ReferenceNumber": "sample string 6",
    "DeleteOlderInvoiceNumber": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfNonFAInvoiceDetailsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models">
  <NonFAInvoiceDetailsModel>
    <DeleteOlderInvoiceNumber>true</DeleteOlderInvoiceNumber>
    <DistributorErpId>sample string 3</DistributorErpId>
    <FieldUserErpId>sample string 2</FieldUserErpId>
    <InvoiceDate>2025-04-04T05:33:36.8008778+00:00</InvoiceDate>
    <InvoiceNumber>sample string 1</InvoiceNumber>
    <InvoiceSkuDetails>
      <InvoiceSkuDetails>
        <BilledPTR>1</BilledPTR>
        <DiscountValue>1.1</DiscountValue>
        <GrossRevenueValue>1.1</GrossRevenueValue>
        <NetRevenueValue>1.1</NetRevenueValue>
        <OrderQty>1.1</OrderQty>
        <ProductERPId>sample string 1</ProductERPId>
        <Quantity>1.1</Quantity>
      </InvoiceSkuDetails>
      <InvoiceSkuDetails>
        <BilledPTR>1</BilledPTR>
        <DiscountValue>1.1</DiscountValue>
        <GrossRevenueValue>1.1</GrossRevenueValue>
        <NetRevenueValue>1.1</NetRevenueValue>
        <OrderQty>1.1</OrderQty>
        <ProductERPId>sample string 1</ProductERPId>
        <Quantity>1.1</Quantity>
      </InvoiceSkuDetails>
    </InvoiceSkuDetails>
    <OrderNumber>1</OrderNumber>
    <OrderType>Physical</OrderType>
    <ReferenceNumber>sample string 6</ReferenceNumber>
    <RetailerERPId>sample string 5</RetailerERPId>
  </NonFAInvoiceDetailsModel>
  <NonFAInvoiceDetailsModel>
    <DeleteOlderInvoiceNumber>true</DeleteOlderInvoiceNumber>
    <DistributorErpId>sample string 3</DistributorErpId>
    <FieldUserErpId>sample string 2</FieldUserErpId>
    <InvoiceDate>2025-04-04T05:33:36.8008778+00:00</InvoiceDate>
    <InvoiceNumber>sample string 1</InvoiceNumber>
    <InvoiceSkuDetails>
      <InvoiceSkuDetails>
        <BilledPTR>1</BilledPTR>
        <DiscountValue>1.1</DiscountValue>
        <GrossRevenueValue>1.1</GrossRevenueValue>
        <NetRevenueValue>1.1</NetRevenueValue>
        <OrderQty>1.1</OrderQty>
        <ProductERPId>sample string 1</ProductERPId>
        <Quantity>1.1</Quantity>
      </InvoiceSkuDetails>
      <InvoiceSkuDetails>
        <BilledPTR>1</BilledPTR>
        <DiscountValue>1.1</DiscountValue>
        <GrossRevenueValue>1.1</GrossRevenueValue>
        <NetRevenueValue>1.1</NetRevenueValue>
        <OrderQty>1.1</OrderQty>
        <ProductERPId>sample string 1</ProductERPId>
        <Quantity>1.1</Quantity>
      </InvoiceSkuDetails>
    </InvoiceSkuDetails>
    <OrderNumber>1</OrderNumber>
    <OrderType>Physical</OrderType>
    <ReferenceNumber>sample string 6</ReferenceNumber>
    <RetailerERPId>sample string 5</RetailerERPId>
  </NonFAInvoiceDetailsModel>
</ArrayOfNonFAInvoiceDetailsModel>

Response Information

Resource Description

Response object with Guid and message or an Error Message

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.