Get default invoice configuration (type and template)
GET/default-invoice-config
Returns invoice type and default template for the given domain, data source, document class, and optional co-owner and language.
Audit event:
- invoice.default.config.get
Use this endpoint to obtain the typeId and (when applicable) templateId and lang to send when creating or updating invoices.
Example requests
- Supplier invoices:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=SUPPLIER-INVOICE&docClassCodeName=SUPPLIER_INVOICE&coOwnerId=0 - Customer prepaid, English template:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=POSTPAID&docClassCodeName=CUSTOMER_INVOICE&templateLang=en&coOwnerId=0 - Customer postpaid, Serbian template:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=POSTPAID&docClassCodeName=CUSTOMER_INVOICE&templateLang=sr&coOwnerId=0 - Customer postpaid part-payment, Serbian template:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=POSTPAID&docClassCodeName=CUSTOMER_INVOICE&dtsSelectorCodeName=PART-PAYMENT&templateLang=sr&coOwnerId=0 - Netting invoice:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=FINANCE&docClassCodeName=NETTING_INVOICE&templateLang=sr&coOwnerId=0 - Credit/debit note collection member type discovery:
GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=FINANCE&docClassCodeName=CREDIT_DEBIT_NOTE&collectionCode=credit-note&templateLang=sr&coOwnerId=0GET /default-invoice-config?domainCodeName=BULK&dataSourceCodeName=FINANCE&docClassCodeName=CREDIT_DEBIT_NOTE&collectionCode=debit-note&templateLang=sr&coOwnerId=0
Errors:
- INVOICE_TYPE_NOTFOUND - Invoice type not found
- NOT_AUTHORIZED - Not authorized
- NOT_AUTHENTICATED - Not authenticated
- INT_APP_ERROR - Internal server error
Request
Responses
- 200
- 401
- 404
- 500
Invoice configuration (type and template)
Not Authorized, Not Authenticated
Invoice type not found for the given parameters
Internal Server Error