Create CustomerCredit record
Changed onCreate a new CustomerCredit record with the provided data. Validates all required fields and business rules.
Side effects
- If an approval workflow matches this request, DualEntry can set record_status back to draft.
- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.
Additional validations
- Fails with 422 if the credit names an invoice whose e-invoice the authority has not cleared. The e_invoicing key holds the reason. Post the credit after the authority clears the invoice.
- Fails with 422 if the e-invoice of the posted record has data that the authority refuses. The e_invoicing key lists the reasons.
Request
- Base URL: https://api.dualentry.com
- URL: https://api.dualentry.com/public/v1/customer-credits/
- Auth: none declared
Query parameters
When false, store submitted line classifications, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
Request body
Response
OK
Changes
- info
added the new optional
queryrequest parameterapply_default_classifications
- info
- info
added the optional property
/////to the response with the status
- info