Skip to main content

Attach Extraction to Existing Credit

POST 

/api/vendor-credits/ocr/:extraction/attach-to-credit

Attach the OCR'd PDF to an existing vendor credit that was created manually (instead of creating a new credit from the extraction).

Body fields:

  • vendor_credit_id: required integer, must exist in vendor_credits

Only extractions in pending_review or duplicate_detected status can be attached (422 otherwise). Returns 201 with the created attachment_id.

Request

Responses

Created

Response Headers
    Content-Type