POST api/Invoice/CreateInvoice

Request Information

URI Parameters

None.

Body Parameters

SaveInvoiceRequest
NameDescriptionTypeAdditional information
UserId

integer

None.

InvoiceId

integer

None.

InvoiceNumber

string

None.

IssuedUtc

date

None.

FinishedUtc

date

None.

IssuedTo

integer

None.

StoreId

integer

None.

Total

decimal number

None.

Type

OrderbobInvoiceType

None.

Status

OrderbobInvoiceStatus

None.

DocumentName

string

None.

DocumentUpload

InvoiceFileUpload

None.

SparePartTrackingId

integer

None.

SparePartTrackingIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "InvoiceId": 1,
  "InvoiceNumber": "sample string 2",
  "IssuedUtc": "2026-10-21T13:47:52.0641016+02:00",
  "FinishedUtc": "2026-10-21T13:47:52.0641016+02:00",
  "IssuedTo": 1,
  "StoreId": 1,
  "Total": 3.0,
  "Type": 0,
  "Status": 0,
  "DocumentName": "sample string 4",
  "DocumentUpload": {
    "FileName": "sample string 1",
    "ContentBase64": "sample string 2"
  },
  "SparePartTrackingId": 1,
  "SparePartTrackingIds": [
    1,
    2
  ]
}

text/html

Sample:
{"UserId":1,"InvoiceId":1,"InvoiceNumber":"sample string 2","IssuedUtc":"2026-10-21T13:47:52.0641016+02:00","FinishedUtc":"2026-10-21T13:47:52.0641016+02:00","IssuedTo":1,"StoreId":1,"Total":3.0,"Type":0,"Status":0,"DocumentName":"sample string 4","DocumentUpload":{"FileName":"sample string 1","ContentBase64":"sample string 2"},"SparePartTrackingId":1,"SparePartTrackingIds":[1,2]}

application/xml, text/xml

Sample:
<SaveInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Msa.Online.OrderbobApi.Models.Invoices">
  <DocumentName>sample string 4</DocumentName>
  <DocumentUpload>
    <ContentBase64>sample string 2</ContentBase64>
    <FileName>sample string 1</FileName>
  </DocumentUpload>
  <FinishedUtc>2026-10-21T13:47:52.0641016+02:00</FinishedUtc>
  <InvoiceId>1</InvoiceId>
  <InvoiceNumber>sample string 2</InvoiceNumber>
  <IssuedTo>1</IssuedTo>
  <IssuedUtc>2026-10-21T13:47:52.0641016+02:00</IssuedUtc>
  <SparePartTrackingId>1</SparePartTrackingId>
  <SparePartTrackingIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SparePartTrackingIds>
  <Status>Open</Status>
  <StoreId>1</StoreId>
  <Total>3</Total>
  <Type>Regular</Type>
  <UserId>1</UserId>
</SaveInvoiceRequest>

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.