Get Upload Presigned URL
Generates a presigned upload URL for attaching a supporting document (e.g. invoice) to an FFMS transaction. Upload the file to the returned URL via HTTP PUT.
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.
When to Use
Call this when you receive anMCA_FUND_RECEIVED webhook with status DOCUMENT_PENDING. It returns a temporary presignedUrl you then use to upload the supporting document (e.g. invoice) directly via HTTP PUT.
Upload Flow
Error Scenarios
| Scenario | HTTP Code |
|---|---|
| Missing or invalid fields | 400 |
| Invalid or missing API key | 401 |
merchantId does not match the transaction | 403 |
gid does not exist | 404 |
| Document already uploaded for this transaction | 409 |
| Internal server error | 500 |
Authorizations
Static API Key generated from the PayGlocal Partner Dashboard.
Path Parameters
Unique FFMS transaction identifier (from the MCA_FUND_RECEIVED webhook).
Body
Transaction amount.
"1000.00"
ISO 4217 currency code.
"USD"
Type of document being uploaded.
"INVOICE"
Payment type classification.
"CARD"
Merchant identifier. Must match the transaction.
"merchant_001"
File name including extension (extension max 10 characters).
"invoice_INV-2026-00321.pdf"
Full name of the customer (3–150 characters).
3 - 150"John Doe"
Shipping information (1–120 characters).
120"Bangalore, India"
Invoice reference number (1–100 characters).
100"INV-2026-00321"
Purpose code for remittance reporting.
"P0102"
Foreign exchange rate applied.
"83.12"
Response
Presigned URL generated successfully.
Transaction identifier.
"gl_XXXXXXXXXXXXXXXX"
"201 CREATED"
"Request completed"
"05/03/2026 17:35:10"
"GL-201-001"
Temporary URL — upload the file immediately via HTTP PUT.
"invoice_INV-2026-00321.pdf"
"INVOICE"
"CARD"

