v1

latestOpenAPI 3.0.3Proprietaryraw.githubusercontent.com2026-03-067260437.0 KB
Payments

Upload support document

Upload a supporting document (contract, proof of delivery, etc.) for a payment.

SAT 2026 Compliance: The Mexican tax authority (SAT) can request supporting documentation to validate invoices and payments. This endpoint helps maintain compliance.

gigstack Connect: Upload documents for other teams' payments using the team parameter.

Supported File Types:

  • PDF files (.pdf)
  • Images (.png, .jpg, .jpeg, .webp)

File Size Limit: 10MB

Document Types:

  • contract: Service or product contracts
  • delivery_proof: Proof of delivery or service completion
  • payment_proof: Payment receipts or confirmations
  • communication: Emails, messages, or agreements
  • payment_confirmation: Payment processor confirmations
  • subscription_info: Subscription or recurring service details
post/payments/{id}/support-documents

Path parameters

idstring required

Payment ID

Query parameters

teamstring

gigstack Connect: Target team ID for multi-team access.

Requires gigstack Connect enabled on your team and shared billing account.

Example: ?team=team_xyz789

Response

Document uploaded successfully

successboolean
messagestring
timestampstring date-time

Example response

{
  "success": true,
  "data": {
    "id": "doc_abc123xyz",
    "name": "Service Contract.pdf",
    "description": "Main service contract for consulting services",
    "file_url": "https://storage.googleapis.com/...",
    "file_name": "contract.pdf",
    "file_size": 245680,
    "mime_type": "application/pdf",
    "ai_extraction": {
      "extracted_by": "ai",
      "model": "gemini-3-flash",
      "confidence": 0.95
    },
    "created_at": 1677651234000,
    "created_by": "user_abc123",
    "updated_at": 1677651234000
  },
  "message": "Support document uploaded successfully"
}