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
Host: connect-testing.secupay-ag.de
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

The parameters are:

URL Parameter

Meaning

{transaction_hash}

Hash ID of the Payment Transaction.

{document_id}

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": "https://api.testing.secupay-ag.de/ds_g/22842f43028d4927993e956f0cc31f0c"
}
}