Documentation Index
Fetch the complete documentation index at: https://payglocal.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
When funds arrive in a merchant’s virtual account, PayGlocal requires a supporting document — typically an invoice — before processing settlement. You upload this document using a two-step presigned URL flow:- Request a presigned upload URL from PayGlocal
- Upload the file directly to that URL
When to Trigger This
Upload the document 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 to the upload API.
Step 1: Request the Presigned URL
Make a POST request with the transaction and invoice details. The key required fields are:| Field | What to send |
|---|---|
gid | From the path — the transaction ID from the webhook |
amount | The transaction amount from the webhook |
currency | The transaction currency from the webhook |
merchantId | The merchant’s ID — must match the transaction |
invoiceType | The type of document you are uploading (e.g. INVOICE) |
paymentType | The payment type (e.g. CARD) |
fileName | The file name including extension (e.g. invoice_001.pdf) |
invoiceNumber, customerFullName, purposeCode, and fxRate provide additional context that helps PayGlocal’s compliance processing.
Example request body:
presignedUrl to use in Step 2.
Step 2: Upload the File
Use thepresignedUrl from Step 1 to upload the file with an HTTP PUT. No authentication headers are needed — the presigned URL is self-authorising.
200 OK response from the PUT confirms the upload succeeded.
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 uploaded, 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

