POST api/invoice/b2b

Request Information

URI Parameters

None.

Body Parameters

B2BInvoiceEntity
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

MyCompanyName

string

None.

MyCompanyAddress

string

None.

MyGSTIN

string

None.

InvoiceNumber

string

None.

CustomerName

string

None.

CustomerAddress

string

None.

InvoiceDate

date

None.

DueDate

date

None.

IsGSTInvoice

boolean

None.

GSTPercentage

decimal number

None.

GSTAmount

decimal number

None.

ItemSubTotal

decimal number

None.

InvoiceAmount

decimal number

None.

InvoiceNotes

string

None.

TermsAndConditions

string

None.

ItemsJSON

string

None.

Active

boolean

None.

CreatedTime

date

None.

UpdatedTime

date

None.

UserId

integer

None.

VendorId

integer

None.

TemplateId

integer

None.

InvoiceGenerated

string

None.

LocationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "MyCompanyName": "sample string 2",
  "MyCompanyAddress": "sample string 3",
  "MyGSTIN": "sample string 4",
  "InvoiceNumber": "sample string 5",
  "CustomerName": "sample string 6",
  "CustomerAddress": "sample string 7",
  "InvoiceDate": "2025-12-31T16:43:35.6570656+05:30",
  "DueDate": "2025-12-31T16:43:35.6570656+05:30",
  "IsGSTInvoice": true,
  "GSTPercentage": 1.0,
  "GSTAmount": 1.0,
  "ItemSubTotal": 1.0,
  "InvoiceAmount": 1.0,
  "InvoiceNotes": "sample string 10",
  "TermsAndConditions": "sample string 11",
  "ItemsJSON": "sample string 12",
  "Active": true,
  "CreatedTime": "2025-12-31T16:43:35.6570656+05:30",
  "UpdatedTime": "2025-12-31T16:43:35.6570656+05:30",
  "UserId": 1,
  "VendorId": 15,
  "TemplateId": 1,
  "InvoiceGenerated": "sample string 16",
  "LocationId": 17
}

application/xml, text/xml

Sample:
<B2BInvoiceEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
  <Active>true</Active>
  <CreatedTime>2025-12-31T16:43:35.6570656+05:30</CreatedTime>
  <CustomerAddress>sample string 7</CustomerAddress>
  <CustomerName>sample string 6</CustomerName>
  <DueDate>2025-12-31T16:43:35.6570656+05:30</DueDate>
  <GSTAmount>1</GSTAmount>
  <GSTPercentage>1</GSTPercentage>
  <InvoiceAmount>1</InvoiceAmount>
  <InvoiceDate>2025-12-31T16:43:35.6570656+05:30</InvoiceDate>
  <InvoiceGenerated>sample string 16</InvoiceGenerated>
  <InvoiceId>1</InvoiceId>
  <InvoiceNotes>sample string 10</InvoiceNotes>
  <InvoiceNumber>sample string 5</InvoiceNumber>
  <IsGSTInvoice>true</IsGSTInvoice>
  <ItemSubTotal>1</ItemSubTotal>
  <ItemsJSON>sample string 12</ItemsJSON>
  <LocationId>17</LocationId>
  <MyCompanyAddress>sample string 3</MyCompanyAddress>
  <MyCompanyName>sample string 2</MyCompanyName>
  <MyGSTIN>sample string 4</MyGSTIN>
  <TemplateId>1</TemplateId>
  <TermsAndConditions>sample string 11</TermsAndConditions>
  <UpdatedTime>2025-12-31T16:43:35.6570656+05:30</UpdatedTime>
  <UserId>1</UserId>
  <VendorId>15</VendorId>
</B2BInvoiceEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.