POST api/Invoice/Post?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

Invoice
NameDescriptionTypeAdditional information
Day

integer

None.

CustomerInfo

ContactInfo

None.

Identity

Identity

None.

TransactionDetail

TransactionDetail

None.

PaymentMode

PaymentMethodEntity

None.

InvoiceOn

date

None.

DueOn

date

None.

InvoiceFrom

date

None.

InvoiceTo

date

None.

CustomerID

globally unique identifier

None.

BranchID

globally unique identifier

None.

Note

string

None.

TotalAmt

decimal number

None.

CreditNote

Collection of CreditNote

None.

TaxAmt

decimal number

None.

BalanceAmt

decimal number

None.

BalancePaidAmount

decimal number

None.

Aging

decimal number

None.

InvoiceDetail

Collection of InvoiceDetail

None.

TollAllocation

Collection of TollAllocation

None.

TrafficFineAllocation

Collection of TrafficFineAllocation

None.

AdvancePayment

Collection of CustomerPayment

None.

Branch

Branch

None.

PaymentEntries

Collection of CustomerPayment

None.

AccountRefNo

string

None.

AccountSyncResult

string

None.

CreatedBy

globally unique identifier

None.

CreatedOn

date

None.

ModifiedBy

globally unique identifier

None.

ModifiedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

string

None.

Code

string

None.

ID

globally unique identifier

None.

Errors

Collection of string

None.

ErrorCodes

Collection of ErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Message": "sample string 2",
  "Code": "sample string 3",
  "ID": "a909c0d9-1f1a-4684-80bc-54d49ab00505",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCodes": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity">
  <Code>sample string 3</Code>
  <ErrorCodes>
    <ErrorCode>Success</ErrorCode>
    <ErrorCode>Success</ErrorCode>
  </ErrorCodes>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ID>a909c0d9-1f1a-4684-80bc-54d49ab00505</ID>
  <IsValid>true</IsValid>
  <Message>sample string 2</Message>
</Result>