The Semine API makes use of the same data models for transferring data both to and from the server. While this is a great benefit in terms of consistency between POST requests and GET responses, it has a few challenges with how fields may be presented as a mandatory part of a POST request but are in reality read-only.
In POST /invoices, the following fields requires some additional explanation.
invoiceType*
Enum:[ None, Debit, Credit ]
The field is required but is read-only and cannot be set or modified directly.
InvoiceType is determined each time totalAmount value is set (on first POST) or modified through either UI or API.
- If totalAmount is negative, invoiceType: Credit
- If totalAmount is positive, invoiceType: Debit
invoiceSourceType*
Enum: [ None, Pdf, Ehf, Paper, Email, Api, Edi ]
Determined automatically for PDF, EHF, Email, API or EDI. Can be set manually for Paper.
See also:
Kommentarer
0 kommentarer
Artikkelen er stengt for kommentarer.