Create
Command, Introduced in version 22.4
POST https://localhost:8001/sv/001.1/api/v1/Accounting/AccountsReceivables/Create
Creates an accounts receivable.
Returns EntityCommandResponse
The root entity id of the response is the business key identifier of the created accounts receivable. References AccountsReceivables
The entity id of the response is the same as the root entity id.
Required permission
Create accounts receivable
Properties
Name | Type | Summary | Introduced in |
---|---|---|---|
InvoiceNumber | Int64? | The human readable identifier of the accounts receivable.
|
|
IsCredit | Boolean | Specifies if the accounts receivable is a credit or not. |
|
BusinessContactId | Int64 | The business key identifier of the customer that the accounts receivable belongs to.
|
|
InvoiceAmount | Decimal | The invoice amount of the accounts receivable.
|
|
VatAmount | Decimal? | The VAT amount of the accounts receivable.
|
|
VatGroupId | Int64? | The business key identifier of the VAT group that the accounts receivable belongs to
|
|
CustomerAccountGroupId | Int64? | The business key identifier of the customer account group for the accounts receivable.
|
|
CurrencyId | Int64? | The business key identifier of the accounts receivable currency.
|
|
ExchangeRate | Decimal? | The exchange rate of the accounts receivable.
|
|
InvoiceDate | DateTimeOffset? | The invoice date of the accounts receivable.
|
|
BookingRows | AddBookingRow[] | The booking rows to set for the accounts receivable. |
Introduced in version 22.7 |
DueDate | DateTimeOffset? | The due date of the accounts receivable.
|
Introduced in version 22.9 |
Example
{
"InvoiceNumber": null,
"IsCredit": false,
"BusinessContactId": 0,
"InvoiceAmount": 0.0,
"VatAmount": null,
"VatGroupId": null,
"CustomerAccountGroupId": null,
"CurrencyId": null,
"ExchangeRate": null,
"InvoiceDate": null,
"BookingRows": null,
"DueDate": null
}