gigstack API
    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
    • Services
      • Services API Guide
      • List services
        GET
      • Get service
        GET
      • Update service
        PUT
      • Create service
        POST
      • Delete service
        DELETE
    • Invoices
      • Invoices API Guide
      • Income
        • List income invoices
        • Get income invoice
        • Create income invoice
      • Egress
        • List egress invoices
        • Get egress invoice
        • Create egress invoice
      • Get invoice files
        GET
      • Cancel invoice
        DELETE
    • Payments
      • Payments API Guide
      • List payments
        GET
      • Get payment
        GET
      • Request payment
        POST
      • Register payment
        POST
      • Mark payment as paid
        POST
      • Refund payment
        POST
      • Cancel payment
        DELETE
    • 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
    • Users
      • Users API Guide
      • List users
      • Get user
      • Update user
      • Create user
      • Reset user password
    • 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)

    gigstack Connect API Guide

    Access and manage resources across multiple teams within the same billing account. gigstack Connect enables authorized teams to work with resources from other teams seamlessly.

    📋 Overview#

    gigstack Connect is a powerful feature that allows teams with special permissions to access and manage resources (clients, invoices, payments, etc.) across multiple teams that share the same billing account. This is ideal for franchises, multi-entity businesses, and service providers managing multiple client accounts.

    🔑 Key Features#

    Multi-Team Access - Access resources across teams
    Unified Management - Manage multiple teams from one API key
    Billing Account Scope - Limited to teams in same billing account
    Global Availability - Works on all 35+ API endpoints
    Seamless Integration - Simple query parameter addition
    Security Controls - Permission-based access

    🚀 How It Works#

    Simply add the team query parameter to ANY endpoint to access another team's resources:

    ✅ Requirements#

    1.
    gigstack Connect Enabled - Your API key's team must have gigstack Connect enabled
    2.
    Shared Billing - Target team must share the same billing account
    3.
    Team Exists - Target team must be valid and active
    4.
    Proper Permissions - Your role must allow the requested action

    📚 Usage Examples#

    Accessing Clients Across Teams#

    Managing Invoices Across Teams#

    Processing Payments for Other Teams#

    Managing Services Across Teams#

    Team Settings Management#

    🎯 Use Cases#

    1. Franchise Management#

    Manage multiple franchise locations from a central account:

    2. Multi-Entity Corporation#

    Handle invoicing for different business entities:

    3. Accounting Service Provider#

    Manage multiple client companies:

    4. Consolidated Operations#

    Perform bulk operations across teams:

    🔒 Security & Permissions#

    Access Control#

    Only teams with gigstack Connect enabled can use this feature
    Target teams must be in the same billing account
    User permissions apply to cross-team operations
    Audit logs track all cross-team actions

    Permission Requirements#

    ActionRequired Role
    Read resourcesViewer or higher
    Create resourcesMember or higher
    Update resourcesMember or higher
    Delete resourcesAdmin or higher
    Manage team settingsAdmin or higher

    ⚠️ Error Responses#

    Not a Master Team#

    {
        "message": "Unauthorized",
        "error": "Unauthorized, not a master team"
    }
    Solution: Your team needs gigstack Connect enabled. Contact support.

    Team Not Found#

    {
        "message": "Team not found",
        "error": "The specified team does not exist"
    }
    Solution: Verify the team ID is correct and active.

    No Matched Teams#

    {
        "message": "Unauthorized",
        "error": "Unauthorized, no matched teams"
    }
    Solution: Target team must share the same billing account.

    Insufficient Permissions#

    {
        "message": "Access denied",
        "error": "Your role does not allow this action on the target team"
    }
    Solution: Your user role must allow the requested action.

    💡 Best Practices#

    1.
    Cache Team IDs - Store frequently accessed team IDs
    2.
    Batch Operations - Group operations by team for efficiency
    3.
    Error Handling - Implement robust error handling for cross-team ops
    4.
    Audit Trail - Log all cross-team operations
    5.
    Permission Checks - Verify permissions before bulk operations
    6.
    Rate Limiting - Be mindful of rate limits when accessing multiple teams
    7.
    Consistent Naming - Use clear naming conventions for cross-team resources

    📊 Performance Considerations#

    Rate Limits#

    Standard rate limits apply per API key
    Cross-team requests count toward your quota
    Consider caching frequently accessed data

    Optimization Tips#

    🔗 Complete Endpoint Support#

    gigstack Connect works with ALL endpoints:

    Core Resources#

    ✅ /clients - Client management
    ✅ /services - Service catalog
    ✅ /invoices/income - Invoice creation and management
    ✅ /payments - Payment processing
    ✅ /teams - Team configuration
    ✅ /users - User management

    Additional Operations#

    ✅ /clients/validate/{id} - Validate client fiscal info
    ✅ /clients/customerportal - Customer portal access
    ✅ /invoices/{id}/files - Invoice file retrieval
    ✅ /payments/{id}/paid - Mark payments as paid
    ✅ /payments/{id}/refund - Process refunds
    ✅ /teams/{id}/settings - Team settings management
    ✅ /teams/{id}/series - Invoice series configuration
    ✅ All other endpoints in the API

    🚀 Getting Started#

    Step 1: Verify gigstack Connect Status#

    Step 2: List Available Teams#

    Step 3: Test Cross-Team Access#

    Step 4: Implement in Your Application#


    Need help with gigstack Connect? Check our support documentation or contact support@gigstack.io
    Modified at 2025-08-26 16:41:07
    Previous
    Welcome to gigstack API
    Next
    Migrar de API v1 a v2 de gigstack
    Built with