API / Reference / Customer Credits
Submit e-invoice for customer credit
POST
https://api.light.inc/v1/customer-credits/{customerCreditId}/submit-einvoice
Submits an e-invoice for the given customer credit. The customer credit must be posted.
The credit must be posted (CUSTOMER_CREDIT_INVALID_STATUS_FOR_EINVOICE_SUBMISSION), not already submitted (CUSTOMER_CREDIT_EINVOICE_ALREADY_SUBMITTED), and its entity must have e-credit-note submission enabled (CUSTOMER_CREDIT_E_INVOICING_NOT_ENABLED). Unlike post, the submission runs synchronously inside this call. Returns an empty body.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
customerCreditIdstring · uuidrequired
Response
This endpoint returns no content.