Assign Document to Payment Transaction

The API endpoint to assign a document as invoice to a Payment Transaction is POST /api/v2 /Payment/SecupayInvoices/assignExternalInvoicePdf/{transaction_hash}/ {document_id}.

Example Request
POST /api/v2/Payment/SecupayInvoices/assignExternalInvoicePdf/abcdefg123456/DUF_8Z092GGNK60KD94JPZFKYDS6C67X4CHTTP/1.1
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

The parameters are:

URL Parameter



Hash ID of the Payment Transaction.


Document ID of the file upload.

The API responds with a partial representation of the document.

Example Response
HTTP/1.1 200 OK
Content-Type: application/json
"document": {
"id": "DUF_8Z092GGNK60KD94JPZFKYDS6C67X4C",
"mime_type": "image/png; charset=binary",
"name": "Invoice_123456.pdf",
"size": 55774,
"url": ""