MarminDeveloper Docs

Edit and resubmit a purchase invoice


Updates and resubmits a specific purchase invoice after fixing validation issues.

Path parameters

ParameterTypeRequiredDescription
uuidstring
Required
The UUID of the purchase invoice to resubmit.
business_profile_idstring
Required
The business profile ID of the buyer issuing the purchase invoice. Must exist in your organization.
Request body

Use the same request payload structure as Create a purchase invoice.

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

Error responses

StatusDescription
400 Bad RequestResubmit is not allowed while the document is still pending.
401 UnauthorizedAuthentication required or invalid token.
404 Not FoundPurchase invoice 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