DocCloud API

<back to all web services

InvoiceCreateCommand

Requires Authentication
The following routes are available for this service:
POST/invoiceCreate Invoice
InvoiceCreateCommand Parameters:
NameParameterData TypeRequiredDescription
TypeIdbodyuintNo
TypeNamebodystringNo
InvSrcIdbodyuintNo
InvSrcNumberbodystringNo
SchemaIdbodyuintNo
NumberbodystringNo
OrderNumberbodystringNo
TownbodystringNo
CreationDatebodyDateTimeNo
SellDatebodyDateTimeNo
PaymentDueDatebodyDateTimeNo
IsFromOcrbodyboolNo
PaymentTypeIdbodyuintNo
PaymentTypebodystringNo
PaymentTermsbodyushortNo
CategoryIdbodyuintNo
CategoryNamebodystringNo
JpkItemCodeIdbodyintNo
JpkItemCodeCodebodystringNo
JpkItemCodeNamebodystringNo
ListJpkProcedurebodyList<InvoiceJpkProcedureDto>No
JpkDocTypeIdbodyintNo
JpkDocTypeCodebodystringNo
JpkDocTypeNamebodystringNo
SellBankIdbodyuintNo
SellBankNamebodystringNo
SellBankAccountNbbodystringNo
SwiftbodystringNo
RecipientbodyShortRecipientDtoNo
IsReceiverDiffrentbodyboolNo
ReceiverbodyShortRecipientDtoNo
InvoicePositionbodyList<InvoicePositionDto>No
BasePricebodydecimalNo
DiscountbodydecimalNo
CurrencyIdbodyuintNo
CurrencybodystringNo
NettobodydecimalNo
Vat5bodydecimalNo
Vat8bodydecimalNo
Vat23bodydecimalNo
VatbodydecimalNo
VatBasebodydecimalNo
GrossbodydecimalNo
PaidbodydecimalNo
ToPaidbodydecimalNo
RateDatebodyDateTimeNo
RatebodydecimalNo
StatusIdbodyintNo
StatusbodystringNo
IsPaymentDividedbodyboolNo
IsReverseChargedbodyboolNo
SupplierNamebodystringNo
RecipientNamebodystringNo
MarginReasonIdbodyuintNo
MarginReasonbodystringNo
PrivateNotebodystringNo
RemarksbodystringNo
AdditionalRemarksbodystringNo
InvoiceOrderIdbodyulongNo
IsMarkedClearbodyboolNo
AttachmentsbodyList<FileDocumentDto>No
InvoiceJpkProcedureDto Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
ShortRecipientDto Parameters:
NameParameterData TypeRequiredDescription
IdformuintNo
CatIdformuintNo
NameformstringNo
VatIdformstringNo
StreetNameformstringNo
StreetNumberformstringNo
FlatNumberformstringNo
PostalCodeformstringNo
TownformstringNo
CountryIdformintNo
IsoCountryformstringNo
CountryformstringNo
EmailformstringNo
PhoneformstringNo
BankNameformstringNo
BankAccountNbformstringNo
IsActualformboolNo
DefaultCurrencyIdformuintNo
DefaultCurrencyformstringNo
CategoryIdformuintNo
CategoryNameformstringNo
InvoicePositionDto Parameters:
NameParameterData TypeRequiredDescription
ProductIdformuintNo
PosCorrIdformulongNo
InvoiceIdformulongNo
NameformstringNo
CodeformstringNo
QuantityformdecimalNo
UnitIdformuintNo
UnitformstringNo
CurrencyIdformuintNo
CurrencyformstringNo
UnitPriceformdecimalNo
GrossformdecimalNo
NettoformdecimalNo
VatTypeIdformintNo
Vat5formdecimalNo
Vat8formdecimalNo
Vat23formdecimalNo
IsBeforeformboolNo
IsUpdatedformboolNo
IsDeletedformboolNo
FileDocumentDto Parameters:
NameParameterData TypeRequiredDescription
ObjectTypeIdformintNo
ObjectTypeNameformstringNo
ObjectIdformulongNo
FileNameformstringNo
FileGuidformstringNo
FileSizeformlongNo
FileTypeformstringNo
ParentFolderIdformulong?No
StatusIdformuintNo
StatusNameformstringNo
OcrStatusformFileOcrStatusNo
OcrResponseformOcrRecognisedDocumentNo
ProcessIdformstringNo
CostInvoiceIdformulongNo
InvoiceIdformulongNo
BaseKeyLongDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformulongNo
FileOcrStatus Enum:
NameValue
None0
SubmittedForProcessing1
SentForProcessing2
ProcessingInProgress3
Completed4
Error5
NotAvailableYet100
NotAvailableYetFirstRetry101
NotAvailableYetSecondRetry102
NotAvailableYetThirdRetry103
NotAvailableYetFourthRetry104
NotAvailableYetFifthRetry105
OcrRecognisedDocument Parameters:
NameParameterData TypeRequiredDescription
NrInvoiceformstringNo
BankAccountformstringNo
BankNameformstringNo
DateOfIssueformstringNo
SaleDateformstringNo
DateOfPaymentformstringNo
SellerNipformstringNo
SellerNameformstringNo
SellerStreetNameformstringNo
SellerStreetNrformstringNo
SellerLocalNrformstringNo
SellerPlaceformstringNo
SellerZipCodeformstringNo
BuyerNipformstringNo
BuyerNameformstringNo
BuyerStreetNameformstringNo
BuyerStreetNrformstringNo
BuyerLocalNrformstringNo
BuyerPlaceformstringNo
BuyerZipCodeformstringNo
SummaryNettoformstringNo
SummaryVatformstringNo
SummaryGrossformstringNo
PositionsformICollection<OcrRecognisedPosition>No
OcrRecognisedPosition Parameters:
NameParameterData TypeRequiredDescription
LpformstringNo
NameformstringNo
UnitformstringNo
GrossformstringNo
NettoformstringNo
VatformstringNo
VatValueformstringNo
QuantityformstringNo
NettoPriceformstringNo
GrossPriceformstringNo
PostOperationResult<T> Parameters:
NameParameterData TypeRequiredDescription
IdformTNo
OperationResult Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
ResponseStatusformResponseStatusNo
ResultformObjectNo
IsSuccessformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /invoice HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InvoiceCreateCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Invoice.Command">
  <AdditionalRemarks>String</AdditionalRemarks>
  <Attachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.File.Model">
    <d2p1:FileDocumentDto>
      <CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
      <ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
      <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
      <d2p1:CostInvoiceId>0</d2p1:CostInvoiceId>
      <d2p1:FileGuid>String</d2p1:FileGuid>
      <d2p1:FileName>String</d2p1:FileName>
      <d2p1:FileSize>0</d2p1:FileSize>
      <d2p1:FileType>String</d2p1:FileType>
      <d2p1:InvoiceId>0</d2p1:InvoiceId>
      <d2p1:ObjectId>0</d2p1:ObjectId>
      <d2p1:ObjectTypeId>0</d2p1:ObjectTypeId>
      <d2p1:ObjectTypeName>String</d2p1:ObjectTypeName>
      <d2p1:OcrResponse>
        <d2p1:BankAccount>String</d2p1:BankAccount>
        <d2p1:BankName>String</d2p1:BankName>
        <d2p1:BuyerLocalNr>String</d2p1:BuyerLocalNr>
        <d2p1:BuyerName>String</d2p1:BuyerName>
        <d2p1:BuyerNip>String</d2p1:BuyerNip>
        <d2p1:BuyerPlace>String</d2p1:BuyerPlace>
        <d2p1:BuyerStreetName>String</d2p1:BuyerStreetName>
        <d2p1:BuyerStreetNr>String</d2p1:BuyerStreetNr>
        <d2p1:BuyerZipCode>String</d2p1:BuyerZipCode>
        <d2p1:DateOfIssue>String</d2p1:DateOfIssue>
        <d2p1:DateOfPayment>String</d2p1:DateOfPayment>
        <d2p1:NrInvoice>String</d2p1:NrInvoice>
        <d2p1:Positions i:nil="true" />
        <d2p1:SaleDate>String</d2p1:SaleDate>
        <d2p1:SellerLocalNr>String</d2p1:SellerLocalNr>
        <d2p1:SellerName>String</d2p1:SellerName>
        <d2p1:SellerNip>String</d2p1:SellerNip>
        <d2p1:SellerPlace>String</d2p1:SellerPlace>
        <d2p1:SellerStreetName>String</d2p1:SellerStreetName>
        <d2p1:SellerStreetNr>String</d2p1:SellerStreetNr>
        <d2p1:SellerZipCode>String</d2p1:SellerZipCode>
        <d2p1:SummaryGross>String</d2p1:SummaryGross>
        <d2p1:SummaryNetto>String</d2p1:SummaryNetto>
        <d2p1:SummaryVat>String</d2p1:SummaryVat>
      </d2p1:OcrResponse>
      <d2p1:OcrStatus>None</d2p1:OcrStatus>
      <d2p1:ParentFolderId>0</d2p1:ParentFolderId>
      <d2p1:ProcessId>String</d2p1:ProcessId>
      <d2p1:StatusId>0</d2p1:StatusId>
      <d2p1:StatusName>String</d2p1:StatusName>
    </d2p1:FileDocumentDto>
  </Attachments>
  <BasePrice>0</BasePrice>
  <CategoryId>0</CategoryId>
  <CategoryName>String</CategoryName>
  <CreationDate>0001-01-01T00:00:00</CreationDate>
  <Currency>String</Currency>
  <CurrencyId>0</CurrencyId>
  <Discount>0</Discount>
  <Gross>0</Gross>
  <InvSrcId>0</InvSrcId>
  <InvSrcNumber>String</InvSrcNumber>
  <InvoiceOrderId>0</InvoiceOrderId>
  <InvoicePosition xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Invoice.Model">
    <d2p1:InvoicePositionDto>
      <CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
      <ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
      <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
      <d2p1:Code>String</d2p1:Code>
      <d2p1:Currency>String</d2p1:Currency>
      <d2p1:CurrencyId>0</d2p1:CurrencyId>
      <d2p1:Gross>0</d2p1:Gross>
      <d2p1:InvoiceId>0</d2p1:InvoiceId>
      <d2p1:IsBefore>false</d2p1:IsBefore>
      <d2p1:IsDeleted>false</d2p1:IsDeleted>
      <d2p1:IsUpdated>false</d2p1:IsUpdated>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Netto>0</d2p1:Netto>
      <d2p1:PosCorrId>0</d2p1:PosCorrId>
      <d2p1:ProductId>0</d2p1:ProductId>
      <d2p1:Quantity>0</d2p1:Quantity>
      <d2p1:Unit>String</d2p1:Unit>
      <d2p1:UnitId>0</d2p1:UnitId>
      <d2p1:UnitPrice>0</d2p1:UnitPrice>
      <d2p1:Vat23>0</d2p1:Vat23>
      <d2p1:Vat5>0</d2p1:Vat5>
      <d2p1:Vat8>0</d2p1:Vat8>
      <d2p1:VatTypeId>0</d2p1:VatTypeId>
    </d2p1:InvoicePositionDto>
  </InvoicePosition>
  <IsFromOcr>false</IsFromOcr>
  <IsMarkedClear>false</IsMarkedClear>
  <IsPaymentDivided>false</IsPaymentDivided>
  <IsReceiverDiffrent>false</IsReceiverDiffrent>
  <IsReverseCharged>false</IsReverseCharged>
  <JpkDocTypeCode>String</JpkDocTypeCode>
  <JpkDocTypeId>0</JpkDocTypeId>
  <JpkDocTypeName>String</JpkDocTypeName>
  <JpkItemCodeCode>String</JpkItemCodeCode>
  <JpkItemCodeId>0</JpkItemCodeId>
  <JpkItemCodeName>String</JpkItemCodeName>
  <ListJpkProcedure xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.InvoiceJPK.Model">
    <d2p1:InvoiceJpkProcedureDto>
      <CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
      <ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
      <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
      <d2p1:Code>String</d2p1:Code>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:InvoiceJpkProcedureDto>
  </ListJpkProcedure>
  <MarginReason>String</MarginReason>
  <MarginReasonId>0</MarginReasonId>
  <Netto>0</Netto>
  <Number>String</Number>
  <OrderNumber>String</OrderNumber>
  <Paid>0</Paid>
  <PaymentDueDate>0001-01-01T00:00:00</PaymentDueDate>
  <PaymentTerms>0</PaymentTerms>
  <PaymentType>String</PaymentType>
  <PaymentTypeId>0</PaymentTypeId>
  <PrivateNote>String</PrivateNote>
  <Rate>0</Rate>
  <RateDate>0001-01-01T00:00:00</RateDate>
  <Receiver xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Model">
    <d2p1:BankAccountNb>String</d2p1:BankAccountNb>
    <d2p1:BankName>String</d2p1:BankName>
    <d2p1:CatId>0</d2p1:CatId>
    <d2p1:CategoryId>0</d2p1:CategoryId>
    <d2p1:CategoryName>String</d2p1:CategoryName>
    <d2p1:Country>String</d2p1:Country>
    <d2p1:CountryId>0</d2p1:CountryId>
    <d2p1:DefaultCurrency>String</d2p1:DefaultCurrency>
    <d2p1:DefaultCurrencyId>0</d2p1:DefaultCurrencyId>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:FlatNumber>String</d2p1:FlatNumber>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsActual>false</d2p1:IsActual>
    <d2p1:IsoCountry>String</d2p1:IsoCountry>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:Phone>String</d2p1:Phone>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StreetName>String</d2p1:StreetName>
    <d2p1:StreetNumber>String</d2p1:StreetNumber>
    <d2p1:Town>String</d2p1:Town>
    <d2p1:VatId>String</d2p1:VatId>
  </Receiver>
  <Recipient xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Model">
    <d2p1:BankAccountNb>String</d2p1:BankAccountNb>
    <d2p1:BankName>String</d2p1:BankName>
    <d2p1:CatId>0</d2p1:CatId>
    <d2p1:CategoryId>0</d2p1:CategoryId>
    <d2p1:CategoryName>String</d2p1:CategoryName>
    <d2p1:Country>String</d2p1:Country>
    <d2p1:CountryId>0</d2p1:CountryId>
    <d2p1:DefaultCurrency>String</d2p1:DefaultCurrency>
    <d2p1:DefaultCurrencyId>0</d2p1:DefaultCurrencyId>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:FlatNumber>String</d2p1:FlatNumber>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsActual>false</d2p1:IsActual>
    <d2p1:IsoCountry>String</d2p1:IsoCountry>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:Phone>String</d2p1:Phone>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StreetName>String</d2p1:StreetName>
    <d2p1:StreetNumber>String</d2p1:StreetNumber>
    <d2p1:Town>String</d2p1:Town>
    <d2p1:VatId>String</d2p1:VatId>
  </Recipient>
  <RecipientName>String</RecipientName>
  <Remarks>String</Remarks>
  <SchemaId>0</SchemaId>
  <SellBankAccountNb>String</SellBankAccountNb>
  <SellBankId>0</SellBankId>
  <SellBankName>String</SellBankName>
  <SellDate>0001-01-01T00:00:00</SellDate>
  <Status>String</Status>
  <StatusId>0</StatusId>
  <SupplierName>String</SupplierName>
  <Swift>String</Swift>
  <ToPaid>0</ToPaid>
  <Town>String</Town>
  <TypeId>0</TypeId>
  <TypeName>String</TypeName>
  <Vat23>0</Vat23>
  <Vat5>0</Vat5>
  <Vat8>0</Vat8>
  <VatBase>0</VatBase>
</InvoiceCreateCommand>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InvoiceCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Invoice.Command">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global" />
  <Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">0</Id>
</InvoiceCreateResponse>