provider Transactions POST /transaction/{transactionId}/attachments
@utdk/mercury /transaction/{transactionId}/attachments
Upload a transaction attachment
Upload a file attachment to a transaction. The file is uploaded via multipart/form-data. Supported file types include PDF, images (PNG, JPG, GIF), and common document formats.
transactionId path required
ID of the transaction to attach the file to
string

Try it

Authentication
Configure credentials for Mercury API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

uploadtransactionattachment
POST/transaction/{transactionId}/attachments
Upload a file attachment to a transaction. The file is uploaded via multipart/form-data. Supported file types include PDF, images (PNG, JPG, GIF), and common document formats.

Parameters

required

ID of the transaction to attach the file to

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import mercury from '@utdk/mercury';

await mercury.uploadtransactionattachment()