POST AccountReceipt/Save

Saves the specified Account Receipt.

Request Information

URI Parameters

None.

Body Parameters

The Account Receipt.

Account Receipt
NameTypeAdditional informationDescription
ID integer

None.

AccountId integer

None.

Date date

None.

Payee string

String length: inclusive between 0 and 8000

Description string

String length: inclusive between 0 and 100

Reference string

None.

TaxTypeId integer

None.

Comments string

String length: inclusive between 0 and 8000

Exclusive decimal

None.

Tax decimal

None.

Total decimal

None.

Reconciled bool

None.

BankAccountId integer

None.

AnalysisCategoryId1 nullable integer

None.

Gets or sets the Analysis Category identifier. This needs to be a valid AnalysisCategoryId.

AnalysisCategoryId2 nullable integer

None.

Gets or sets the Analysis Category identifier. This needs to be a valid AnalysisCategoryId.

AnalysisCategoryId3 nullable integer

None.

Gets or sets the Analysis Category identifier. This needs to be a valid AnalysisCategoryId.

ParentId nullable integer

None.

Accepted bool

None.

BankUniqueIdentifier string

None.

ImportTypeId nullable integer

None.

BankImportMappingId nullable integer

None.

BankAccount_CurrencyId nullable integer

None.

BankAccount_ExchangeRate nullable decimal

None.

Modified nullable date

Read Only / System Generated

Created date

Read Only / System Generated

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AccountId": 2,
  "Date": "2021-10-16",
  "Payee": "sample string 4",
  "Description": "sample string 5",
  "Reference": "sample string 6",
  "TaxTypeId": 7,
  "Comments": "sample string 8",
  "Exclusive": 9.0,
  "Tax": 10.0,
  "Total": 11.0,
  "Reconciled": true,
  "BankAccountId": 13,
  "AnalysisCategoryId1": 1,
  "AnalysisCategoryId2": 1,
  "AnalysisCategoryId3": 1,
  "ParentId": 1,
  "Accepted": true,
  "BankUniqueIdentifier": "sample string 15",
  "ImportTypeId": 1,
  "BankImportMappingId": 1,
  "BankAccount_CurrencyId": 1,
  "BankAccount_ExchangeRate": 1.0,
  "Modified": "2021-10-16",
  "Created": "2021-10-16"
}

Response Information

Resource Description

Tax Invoice
NameTypeAdditional informationDescription
ID integer

None.

Date date

Required

Inclusive bool

None.

DiscountPercentage decimal

None.

TaxReference string

String length: inclusive between 0 and 30

DocumentNumber string

String length: inclusive between 0 and 100

Reference string

String length: inclusive between 0 and 100

Message string

String length: inclusive between 0 and 8000

Discount decimal

None.

Exclusive decimal

None.

Tax decimal

None.

Rounding decimal

None.

Total decimal

None.

AmountDue decimal

Data type: Currency

PostalAddress01 string

String length: inclusive between 0 and 100

PostalAddress02 string

String length: inclusive between 0 and 100

PostalAddress03 string

String length: inclusive between 0 and 100

PostalAddress04 string

String length: inclusive between 0 and 100

PostalAddress05 string

String length: inclusive between 0 and 100

DeliveryAddress01 string

String length: inclusive between 0 and 100

DeliveryAddress02 string

String length: inclusive between 0 and 100

DeliveryAddress03 string

String length: inclusive between 0 and 100

DeliveryAddress04 string

String length: inclusive between 0 and 100

DeliveryAddress05 string

String length: inclusive between 0 and 100

TaxPeriodId nullable integer

Read Only / System Generated

Editable bool

Read Only / System Generated

HasAttachments bool

Read Only / System Generated

HasNotes nullable bool

Read Only / System Generated

HasAnticipatedDate nullable bool

Read Only / System Generated

AnticipatedDate nullable date

Read Only / System Generated

ExternalReference string

String length: inclusive between 0 and 100

UID globally unique identifier

Read Only / System Generated

CustomerId integer

Required

CustomerName string

None.

Customer Customer

None.

SalesRepresentativeId nullable integer

None.

SalesRepresentative Sales Representative

None.

StatusId nullable integer

None.

Modified nullable date

Read Only / System Generated

Created date

Read Only / System Generated

Customer_CurrencyId nullable integer

None.

Customer_ExchangeRate nullable decimal

None.

DueDate date

Required

FromDocument string

None.

FromDocumentId nullable integer

Read Only / System Generated

FromDocumentTypeId nullable integer

Read Only / System Generated

Status string

Read Only / System Generated

AllowOnlinePayment nullable bool

None.

Paid nullable bool

Read Only / System Generated

This field is not editable.

Locked bool

Read Only / System Generated

Lines Collection of Commercial Document Line

None.

Response Formats

application/json, text/json

Sample:
{
  "DueDate": "2021-10-16",
  "FromDocument": "sample string 1",
  "FromDocumentId": 1,
  "FromDocumentTypeId": 1,
  "Status": "sample string 2",
  "AllowOnlinePayment": true,
  "Paid": true,
  "Locked": true,
  "CustomerId": 4,
  "CustomerName": "sample string 5",
  "Customer": {
    "Name": "sample string 1",
    "Category": {
      "Description": "sample string 1",
      "ID": 2,
      "Modified": "2021-10-16",
      "Created": "2021-10-16"
    },
    "SalesRepresentativeId": 1,
    "SalesRepresentative": {
      "ID": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "Name": "sample string 2 sample string 3",
      "Active": true,
      "Email": "sample string 6",
      "Mobile": "sample string 7",
      "Telephone": "sample string 8",
      "Created": "2021-10-16",
      "Modified": "2021-10-16"
    },
    "TaxReference": "sample string 2",
    "ContactName": "sample string 3",
    "Telephone": "sample string 4",
    "Fax": "sample string 5",
    "Mobile": "sample string 6",
    "Email": "sample string 7",
    "WebAddress": "sample string 8",
    "Active": true,
    "IsObfuscated": true,
    "Balance": 11.0,
    "CreditLimit": 12.0,
    "CommunicationMethod": 1,
    "PostalAddress01": "sample string 13",
    "PostalAddress02": "sample string 14",
    "PostalAddress03": "sample string 15",
    "PostalAddress04": "sample string 16",
    "PostalAddress05": "sample string 17",
    "DeliveryAddress01": "sample string 18",
    "DeliveryAddress02": "sample string 19",
    "DeliveryAddress03": "sample string 20",
    "DeliveryAddress04": "sample string 21",
    "DeliveryAddress05": "sample string 22",
    "AutoAllocateToOldestInvoice": true,
    "EnableCustomerZone": true,
    "CustomerZoneGuid": "4bc79037-6407-4cfa-9970-eb2b4a02a0d2",
    "CashSale": true,
    "TextField1": "sample string 25",
    "TextField2": "sample string 26",
    "TextField3": "sample string 27",
    "NumericField1": 1.0,
    "NumericField2": 1.0,
    "NumericField3": 1.0,
    "YesNoField1": true,
    "YesNoField2": true,
    "YesNoField3": true,
    "DateField1": "2021-10-16",
    "DateField2": "2021-10-16",
    "DateField3": "2021-10-16",
    "DefaultPriceListId": 1,
    "DefaultPriceList": {
      "ID": 1,
      "Description": "sample string 2",
      "IsDefault": true
    },
    "DefaultPriceListName": "sample string 2",
    "AcceptsElectronicInvoices": true,
    "Modified": "2021-10-16",
    "Created": "2021-10-16",
    "BusinessRegistrationNumber": "sample string 34",
    "TaxStatusVerified": "2021-10-16",
    "CurrencyId": 1,
    "CurrencySymbol": "sample string 35",
    "HasActivity": true,
    "DefaultDiscountPercentage": 1.0,
    "DefaultTaxTypeId": 1,
    "DefaultTaxType": {
      "ID": 1,
      "Name": "sample string 2",
      "Percentage": 3.1,
      "IsDefault": true,
      "HasActivity": true,
      "IsManualTax": true,
      "Active": true,
      "Created": "2021-10-16",
      "Modified": "2021-10-16",
      "TaxTypeDefaultUID": "93895b23-d8c3-46c5-a064-3a4036e819b6",
      "CompanyId": 9
    },
    "DueDateMethodId": 1,
    "DueDateMethodValue": 1,
    "CityId": 1,
    "HasSpecialCountryTax": true,
    "AccountingAgreement": true,
    "HasSpecialCountryTaxActivity": true,
    "OutstandingInvoices": true,
    "OverdueInvoices": true,
    "OnHold": true,
    "ExcludeFromDebtorsManager": true,
    "ID": 39
  },
  "SalesRepresentativeId": 1,
  "SalesRepresentative": {
    "ID": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Name": "sample string 2 sample string 3",
    "Active": true,
    "Email": "sample string 6",
    "Mobile": "sample string 7",
    "Telephone": "sample string 8",
    "Created": "2021-10-16",
    "Modified": "2021-10-16"
  },
  "StatusId": 1,
  "Modified": "2021-10-16",
  "Created": "2021-10-16",
  "Customer_CurrencyId": 1,
  "Customer_ExchangeRate": 1.0,
  "ID": 7,
  "Date": "2021-10-16",
  "Inclusive": true,
  "DiscountPercentage": 9.1,
  "TaxReference": "sample string 10",
  "DocumentNumber": "sample string 11",
  "Reference": "sample string 12",
  "Message": "sample string 13",
  "Discount": 14.0,
  "Exclusive": 15.0,
  "Tax": 16.0,
  "Rounding": 17.0,
  "Total": 18.0,
  "AmountDue": 19.0,
  "PostalAddress01": "sample string 20",
  "PostalAddress02": "sample string 21",
  "PostalAddress03": "sample string 22",
  "PostalAddress04": "sample string 23",
  "PostalAddress05": "sample string 24",
  "DeliveryAddress01": "sample string 25",
  "DeliveryAddress02": "sample string 26",
  "DeliveryAddress03": "sample string 27",
  "DeliveryAddress04": "sample string 28",
  "DeliveryAddress05": "sample string 29",
  "Printed": true,
  "TaxPeriodId": 1,
  "Editable": true,
  "HasAttachments": true,
  "HasNotes": true,
  "HasAnticipatedDate": true,
  "AnticipatedDate": "2021-10-16",
  "ExternalReference": "sample string 33",
  "UID": "921e455f-140f-40ca-8a36-079447b1748c",
  "Lines": [
    {
      "SelectionId": 1,
      "TaxTypeId": 1,
      "ID": 1,
      "Description": "sample string 2",
      "LineType": 0,
      "Quantity": 1.0,
      "UnitPriceExclusive": 3.0,
      "Unit": "sample string 4",
      "UnitPriceInclusive": 5.0,
      "TaxPercentage": 6.1,
      "DiscountPercentage": 7.1,
      "Exclusive": 8.0,
      "Discount": 9.0,
      "Tax": 10.0,
      "Total": 11.0,
      "Comments": "sample string 12",
      "AnalysisCategoryId1": 1,
      "AnalysisCategoryId2": 1,
      "AnalysisCategoryId3": 1,
      "$TrackingCode": "sample string 13",
      "CurrencyId": 1,
      "UnitCost": 1.0,
      "UID": "04152e21-7d72-4fe3-bfd7-1a5a9db6cf1e"
    },
    {
      "SelectionId": 1,
      "TaxTypeId": 1,
      "ID": 1,
      "Description": "sample string 2",
      "LineType": 0,
      "Quantity": 1.0,
      "UnitPriceExclusive": 3.0,
      "Unit": "sample string 4",
      "UnitPriceInclusive": 5.0,
      "TaxPercentage": 6.1,
      "DiscountPercentage": 7.1,
      "Exclusive": 8.0,
      "Discount": 9.0,
      "Tax": 10.0,
      "Total": 11.0,
      "Comments": "sample string 12",
      "AnalysisCategoryId1": 1,
      "AnalysisCategoryId2": 1,
      "AnalysisCategoryId3": 1,
      "$TrackingCode": "sample string 13",
      "CurrencyId": 1,
      "UnitCost": 1.0,
      "UID": "04152e21-7d72-4fe3-bfd7-1a5a9db6cf1e"
    }
  ]
}