POST api/pod/billing/IssueInvoice

Request Information

URI Parameters

None.

Body Parameters

InvoiceBindingModel
NameDescriptionTypeAdditional information
UserId

integer

None.

InvoiceItems

Collection of InvoiceItemBindingModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "InvoiceItems": [
    {
      "EntityId": 1,
      "Quantity": 2,
      "Price": 3.0,
      "Description": "sample string 4"
    },
    {
      "EntityId": 1,
      "Quantity": 2,
      "Price": 3.0,
      "Description": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<InvoiceBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <InvoiceItems>
    <InvoiceItemBindingModel>
      <Description>sample string 4</Description>
      <EntityId>1</EntityId>
      <Price>3</Price>
      <Quantity>2</Quantity>
    </InvoiceItemBindingModel>
    <InvoiceItemBindingModel>
      <Description>sample string 4</Description>
      <EntityId>1</EntityId>
      <Price>3</Price>
      <Quantity>2</Quantity>
    </InvoiceItemBindingModel>
  </InvoiceItems>
  <UserId>1</UserId>
</InvoiceBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InvoiceViewModel
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

PaymentLink

string

None.

HasErrors

boolean

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "PaymentLink": "sample string 2",
  "HasErrors": false,
  "Messages": []
}

application/xml, text/xml

Sample:
<InvoiceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <InvoiceId>1</InvoiceId>
  <PaymentLink>sample string 2</PaymentLink>
</InvoiceViewModel>