Marmin

Edit and resubmit a sales credit note


Updates and resubmits a specific sales credit note after fixing validation issues.

Path parameters

ParameterTypeRequiredDescription
uuidstring
Required
The UUID of the sales credit note to resubmit.
business_profile_idstring
Required
The business profile ID of the supplier issuing the credit note. Must exist in your organization.
Request body

Use the same request payload structure as Create a sales credit note. Buyer details on accounting_customer_party follow the same field and validation rules as on create — see The Customer party object.

This endpoint is intended for documents with schematron or validation errors that appear under:

  • meta_info.peppol_status.validation_results

Resubmit condition

Resubmit is allowed only when:

  • meta_info.peppol_status.overall_status = VALIDATION_FAILED

Attachments

The request body uses the same attachments structure as create (file_name, file_type, file_content per item). On resubmit:

  • Omit attachments to keep the existing attachment set unchanged.

  • Send attachments to replace the full set (client uploads are re-persisted).

The response attachments array includes id, file_name, and file_type only. The create-only 8MB payload limit does not apply to this PUT endpoint.

Error responses

StatusDescription
400 Bad RequestResubmit is not allowed while the document is still pending.
401 UnauthorizedAuthentication required or invalid token.
404 Not FoundCredit note not found, or business profile not found.
500 Internal Server ErrorAn error occurred while processing the request.
{
  "errors": {
    "document_status": "document status is still pending state you cannot resubmit"
  }
}
{
  "errors": {
    "message": "Business profile not found with id: {business_profile_id}"
  }
}
Next