Object that must be included in the POST body and must follow all the rules or it will be BadRequest 400
Name | Description | Type | Additional information |
---|---|---|---|
EntityID | Target entity ID related to the sale sale | integer | Required |
SerieID | ID of the serie that you want to add. This serie must be ACTIVE and EndDate cannot be less than the SaleDate | integer | Required |
Observation | Observation of the sale | string | Max length: 1000 |
Reason | Reason of the document. Used in the credit note | string | Max length: 50 |
SaleDate | Date of the sale. Cannot be bigger than today's date | date | The selected date cannot be bigger than today's date |
DueDays | Due days of the sale. This is for the sale expiration date | integer | Range: inclusive between 0 and 2147483647 |
CurrencyID | CurrencyID of the sale | byte | Must be a valid currency |
ExchangeRate | Exchange rate of the currency that you selected | decimal number | Range: inclusive between 0 and 100 |
Products | List of products in the sale | Array of Details | No additional information available. |
RelatedDocumentIDs | Related document IDs for the sale. If you're doing a normal INVOICE, this will be null. Used in Credit notes (required at least one valid document) | Array of integer | No additional information available. |
IsDraft | Set to true if the document is finished and you want to set a number to it. After its saved it can't be edited | boolean | No additional information available. |
Reference | Sale reference. | string | Max length: 1000 |
RetentionIRC | Set to true if the retentions apply to the IRC or VAT | boolean | No additional information available. |
RetentionRate | Rate of the retention to apply to the tax | decimal number | No additional information available. |
RetentionAmount | Amount of the retention to apply | decimal number | No additional information available. |
SealAmount | Seal tax amout to apply to the sale | decimal number | No additional information available. |
ProviderID | Payment Provider ID if you want to generate a ATM (mb) Refence. NULL if you don't want to generate a payment reference. Required if IsDraft is FALSE | integer | No additional information available. |
Delivery | Delivery information for the invoice | Delivery | No additional information available. |