gigstack API
  1. Invoices
gigstack API
  • Welcome to gigstack API
  • gigstack Connect API Guide
  • Migrar de API v1 a v2 de gigstack
  • Clients
    • Clients API Guide
    • List clients
      GET
    • Get client
      GET
    • Update client
      PUT
    • Create client
      POST
    • Validate client fiscal information
      POST
    • Get client customer portal access token
      POST
    • Stamp pending receipts
      POST
    • Delete client
      DELETE
    • Upload CSF PDF to create or update client
      POST
    • Upload support document
      POST
    • List support documents
      GET
  • Services
    • Services API Guide
    • List services
    • Get service
    • Update service
    • Create service
    • Delete service
  • Invoices
    • Invoices API Guide
    • Income
    • Egress
    • List CFDI errors
      GET
    • List income invoices
      GET
    • Create income invoice
      POST
    • Get income invoice
      GET
    • List egress invoices
      GET
    • Create egress invoice
      POST
    • Get egress invoice
      GET
    • List payment complement invoices
      GET
    • Get payment complement invoice
      GET
    • Get invoice files
      GET
    • Upload support document
      POST
    • List support documents
      GET
    • Cancel invoice
      DELETE
  • Payments
    • Payments API Guide
    • List payments
    • Get payment
    • Request payment
    • Register payment
    • Mark payment as paid
    • Refund payment
    • Cancel payment
    • Search payments
    • Upload support document
    • List support documents
  • Receipts
    • Receipts API Guide
    • List receipts
    • Get receipt
    • Create receipt
    • Stamp receipt
    • Cancel receipt
  • Teams
    • Teams API Guide
    • List teams
    • Get team
    • Get team integrations
    • Get team series
    • Get team onboarding URL
    • Update team
    • Update team series
    • Update team settings
    • Create team
    • Add team member
    • Remove team member
    • Create team series
    • Upload SAT CSD certificates
    • Sign manifest document
  • Users
    • Users API Guide
    • List users
    • Get user
    • Update user
    • Create user
    • Reset user password
    • Generate login link
  • Catalogs
    • Tax Regimes Catalog (Régimen Fiscal)
    • Payment Forms | Formas de pago
    • CFDI Usage Catalog (Uso CFDI)
    • Payment Methods Catalog (Método de Pago)
    • Months and Bimesters Catalog (Meses y Bimestres)
    • Invoice Relationships Catalog (Relación entre Facturas)
  • Webhooks
    • Webhooks
    • List webhooks
    • Create webhook
    • Get webhook
    • Update webhook
    • Delete webhook
  • Schemas
    • Schemas
      • ApiResponse
      • Category
      • Pet
      • Tag
      • Order
      • StandardizedSuccessResponse
      • StandardizedErrorResponse
      • ApiErrorCode
    • RequestBodies
      • UserArray
    • ApiPublicClient
    • Client
    • OrderDirection
    • Service
    • DateRangeFilter
    • ApiPublicService
    • ListQueryParams
    • ClientInput
    • ServiceInput
    • PaginationMeta
    • Invoice
    • InvoiceIncomeInput
    • Payment
    • PaymentInput
    • Team
    • InvoiceEgressInput
    • InvoiceInput
    • PaymentItem
    • PaymentAllowedMethod
    • TeamInput
    • TeamSettingsInput
    • ApiPublicPaymentProcessorDetails
    • User
    • CfdiError
    • ApiPublicPayment
    • UserInput
    • ClientAddress
    • TaxSchema
    • RequestPaymentInput
    • StandardSuccessResponse
    • RegisterPaymentInput
    • ListResponse
    • ErrorResponse
    • RefundPaymentInput
    • ValidationErrorResponse
    • ApiPublicIncomeInvoice
    • MarkPaymentAsPaidInput
    • UnauthorizedError
    • ApiPublicTeam
    • ApiPublicUser
    • NotFoundError
    • ApiPublicSearch
    • InternalServerError
    • ApiPublicThirdParty
    • ApiPublicInvoiceConfig
    • ApiPublicRefund
    • TeamSettings
    • ApiPublicAutomations
    • TaxElement
    • SeriesInput
    • Series
    • ApiPublicWebhook
    • ReceiptInput
    • WebhookInput
    • WebhookUpdateInput
    • PaymentMethodEnum
    • PaymentFormEnum
    • AutomationTypeEnum
    • ItemSchema
    • SATDocument
    • UploadSupportDocumentInput
  1. Invoices

Upload support document

POST
https://api.gigstack.io/v2/invoices/{id}/support-documents
Upload a supporting document (contract, proof of delivery, etc.) for an invoice.
SAT 2026 Compliance: The Mexican tax authority (SAT) can request supporting documentation
to validate invoices. This endpoint helps maintain compliance.
gigstack Connect: Upload documents for other teams' invoices using the team parameter.
Supported File Types:
PDF files (.pdf)
Images (.png, .jpg, .jpeg, .webp)
File Size Limit: 10MB

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Path Params

Query Params

Body Params multipart/form-dataRequired

Responses

🟢201Created
application/json
Document uploaded successfully
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gigstack.io/v2/invoices//support-documents?team' \
--form 'file=@""' \
--form 'documentType=""' \
--form 'name="Service Contract"' \
--form 'description="Master services agreement for 2026"'
Response Response Example
201 - Example 1
{
    "success": true,
    "data": {
        "id": "doc_abc123xyz",
        "document_type": "contract",
        "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",
        "compliance_status": "pending_review",
        "compliance_notes": "string",
        "valid_from": 0,
        "valid_until": 0,
        "ai_extraction": {
            "extracted_at": 0,
            "extracted_by": "ai",
            "model": "gemini-3-flash",
            "confidence": 0.95,
            "extracted_data": {
                "property1": "string",
                "property2": "string"
            },
            "warnings": [
                "string"
            ]
        },
        "audits": [
            {
                "context_type": "invoice",
                "context_id": "string",
                "audited_at": 0,
                "result": "valid",
                "summary": "string",
                "details": {
                    "property1": "string",
                    "property2": "string"
                }
            }
        ],
        "created_at": 1677651234000,
        "created_by": "user_abc123",
        "updated_at": 1677651234000,
        "linked_entities": [
            {
                "entity_type": "invoice",
                "entity_id": "string",
                "linked_at": 0
            }
        ]
    },
    "message": "Support document uploaded successfully",
    "timestamp": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-02-19 18:12:08
Previous
Get invoice files
Next
List support documents
Built with