---
title: "linkPayment"
method: POST
path: "/documentv2/linkPayment"
tags: ["documentv2"]
---

# linkPayment

`POST /documentv2/linkPayment`

Internal documentv2/linkPayment operation. Authentication requirements are derived from the active route allowlist.

## Request body

- object
  - `document_id` integer
  - `invoice_id` integer

## Response `200`

Standard successful response envelope.

- SuccessEnvelope
  - `status` 'success', required
  - `statusCode` integer, required
  - `message` string, required
  - `data` object, required
  - `error` unknown, required

## Other responses

- `400` — Standard API error envelope.
- `401` — Standard API error envelope.
- `403` — Standard API error envelope.
- `422` — Standard API error envelope.

---

[API](https://skmtc.dev/wowinvoice/apis/wow-invoice-internal-api.md) · [All operations](https://skmtc.dev/wowinvoice/apis/wow-invoice-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wowinvoice/wow-invoice-internal-api/revisions/9f6951d767bb/schema)
