POST api/v{version}/agencies/providers/me/businesses/{businessId}/servicerequests/{requestId}/Invoices

Request Information

URI Parameters

NameDescriptionTypeAdditional information
businessId

integer

Required

requestId

integer

Required

version

string

None.

Body Parameters

AddPreInvoiceModel
NameDescriptionTypeAdditional information
AutoAccept

boolean

None.

Description

string

None.

DueDate

integer

Required

InvoiceItems

Collection of AddPreInvoiceItemModel

None.

Wage

WageModel

Required

Request Formats

application/json, text/json

Sample:
{
  "AutoAccept": true,
  "Description": "sample string 2",
  "DueDate": 1,
  "InvoiceItems": [
    {
      "ItemId": 1,
      "Price": 1.0,
      "Description": "sample string 1"
    },
    {
      "ItemId": 1,
      "Price": 1.0,
      "Description": "sample string 1"
    }
  ],
  "Wage": {
    "Fee": 1.0
  }
}

application/xml, text/xml

Sample:
<AddPreInvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels.ServiceRequest">
  <AutoAccept>true</AutoAccept>
  <Description>sample string 2</Description>
  <DueDate>1</DueDate>
  <InvoiceItems>
    <AddPreInvoiceItemModel>
      <Description>sample string 1</Description>
      <ItemId>1</ItemId>
      <Price>1</Price>
    </AddPreInvoiceItemModel>
    <AddPreInvoiceItemModel>
      <Description>sample string 1</Description>
      <ItemId>1</ItemId>
      <Price>1</Price>
    </AddPreInvoiceItemModel>
  </InvoiceItems>
  <Wage>
    <Fee>1</Fee>
  </Wage>
</AddPreInvoiceModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddPreInvoiceModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.