Overview
When funds arrive in a merchant’s virtual account, PayGlocal requires a supporting document — typically an invoice — before initiating compliance. You provide this document via a single-call presigned URL flow:- Host the file yourself and generate a presigned URL for it from your own storage (e.g. an S3 bucket you control)
- Call PayGlocal’s upload endpoint with that
presignedUrlin the request body — PayGlocal fetches the file from it and stores it for the transaction
When to Trigger This
Call the upload endpoint as soon as you receive anMCA_FUND_RECEIVED webhook with status DOCUMENT_PENDING. Extract the gid from the webhook payload — that is what you pass in the path.
Request the Upload
Make a single POST request with the transaction, invoice, and presigned URL details. The required fields are:
Optional fields like
invoiceNumber, customerFullName, purposeCode, and fxRate provide additional context that helps PayGlocal’s compliance processing.
Example request body:
200 OK response confirms PayGlocal has fetched and stored the file.
File Naming Tips
- Use the invoice number in the filename so it is traceable (e.g.
invoice_INV-2026-00321.pdf) - Keep the file extension to 10 characters or fewer
- Supported formats: PDF is recommended for invoices
After the Upload
Once the file is fetched, PayGlocal will:- Validate the invoice against the transaction
- Send you a
TXN_SENT_FOR_SETTLEMENTwebhook when processing begins - Send you a
TXN_SETTLEDwebhook when funds hit the merchant’s account - Send you a
FIRC_RECEIVEDwebhook with the compliance certificate

