Manually mark an invoice as a duplicate of another
POST/invoices/:code/mark-duplicate
Parks the invoice in DUPLICATE status, links it DUPLICATE_OF the named original, skips journal entry and PO advancement, and notifies the Buyer. Works regardless of the invoice_duplicate_guard flag. Requires the invoices.mark-duplicate write grant (Buyer, Accountant, Admin); the service further restricts to invoices the caller can access, and refuses the park once the invoice's workflow has progressed into accounting (READY_FOR_EXPORT_PREPARATION onward) or already ended (409).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
OK
Invalid request (including self-duplicate)
Unauthorized
Forbidden
Invoice or original not found
Invoice already progressed into accounting (cannot be parked as duplicate)
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error