Skip to main content
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, service providers managing multiple client accounts, and marketplace platforms that need to split payments between platform and merchants.

Key Features

  • Multi-Team Access - Access resources across teams
  • Payment Splitting - Split marketplace payments between platform and merchants
  • Unified Management - Manage multiple teams from one API key
  • Billing Account Scope - Limited to teams in same billing account
  • Resource-level Availability - Available on eligible endpoints, with exceptions below
  • Seamless Integration - Simple query parameter addition
  • Security Controls - Permission-based access

How It Works

Add the team query parameter to an eligible resource endpoint to access another team’s resources:

Requirements

  1. gigstack Connect Enabled - Your API key’s team must be a master team (gigstack Connect enabled)
  2. Shared Billing - Target team must share the same billing account
  3. Team Exists - Target team must exist
  4. Plan Feature - Your plan must include multipleIssuerAccounts
  5. API Key - Use an API key. OAuth access tokens are bound to their own team; sending another team’s id returns 403 Team mismatch with OAuth token

Choose the right RFC before you create the team

This is the single highest-cost mistake in a Connect integration, so it comes before the examples. One RFC ⇄ one team. Always. A team’s rfc is what binds it to a taxpayer, and there is no way to attach a second RFC to an existing team. If a partner manages ten merchants, that is ten teams. The RFC you pick at team-creation time is the RFC whose FIEL that team will be able to accept — and nothing else. When the connected team later uploads its e-firma:
gigstack reads the RFC out of the .cer and compares it, character for character, to the rfc on the team named by ?team=. Any difference is a hard 400:
Two things about that check that trip people up:
  • It is the connected team that is checked, not the master team. The ?team= parameter selects which team the credentials are attached to and which RFC they are validated against. A FIEL uploaded without ?team= lands on the API key’s own team — usually the master — and will be rejected unless the certificate happens to be the master’s own.
  • There is no override. No flag, no support toggle. If the RFCs differ, the only remedy is a team whose rfc matches the certificate.
When a partner onboards a company, the RFC that should go on the team is the company’s — the one the company invoices under and the one its FIEL is issued to. It is easy to instead capture the RFC of whoever is filling in the onboarding form: the director, the founder, the accountant. That RFC belongs to a persona física and its FIEL is a personal certificate; it will never match a company certificate. A quick sanity check that catches almost every case: If the team’s RFC is 13 characters and the merchant is a company, the team is wrong. Fix it before you ask them for their FIEL.

Why this bites late

Nothing in the earlier steps complains. Team creation accepts any RFC. Clients, payments, services, receipts and webhooks all work. The mismatch only surfaces at FIEL upload — the last step of onboarding, after the merchant has already exported their certificate and typed their e-firma password. This has cost real partners days of repeated failed uploads before anyone compared the two RFCs. Do this instead:
  1. Confirm with the merchant which RFC they invoice under, and confirm their FIEL is issued to that same RFC.
  2. Create the connected team with that RFC. On POST /v2/teams the field is tax_id; on POST /v2/auth/signup it is rfc. Both land on the team’s internal rfc, which is what the FIEL check compares against.
  3. Read the team back (GET /v2/teams/{id}, where it is returned as tax_id) and verify it before collecting any certificate.
  4. Only then request the FIEL and upload it with ?team= pointed at that team.
See Descarga Masiva → Step 3 for the full list of upload errors.

Usage Examples

Accessing Clients Across Teams

Managing Invoices Across Teams

Processing Payments for Other Teams

Managing Services Across Teams

Team Settings Management

Marketplace Payment Splitting

gigstack Connect enables marketplace platforms to automatically split payments between the platform (master team) and merchants (connect teams). This feature is only available for master teams with marketplace-enabled billing accounts.

How Payment Splitting Works

When you register a payment with transfer_data, the system:
  1. Validates that your team has marketplace permissions
  2. Calculates the split based on the master percentage or custom_price
  3. Creates two separate payments (master and connect)
  4. Assigns clients according to your configuration
  5. Returns both payment IDs and split details
Important: The team and livemode fields are automatically extracted from your authentication token - you don’t need to send them.

Basic Marketplace Payment Split

Response:

Creating a New Merchant Team

If the connect team doesn’t exist (by tax ID), a new team will be created automatically:
The transfer_data.connect RFC becomes the new team’s RFC permanently. Auto-creation is the easiest place to get this wrong, because the RFC arrives buried in a payment payload rather than in a team form. Send the merchant’s business RFC here — that team will only ever accept a FIEL issued to this exact value. See Choose the right RFC.
Response with new team:
Send the onboarding_url to the merchant to complete their account setup.

Custom Item Configuration for Connect Payments

Customize how items appear in the connect team’s payment and invoices:
The connect payment will use the custom product key, unit key, description, and tax configuration instead of copying from the original items.

Fixed Commission Pricing

Instead of percentage-based splits, charge a fixed commission fee using custom_price:
Response with Fixed Commission:
Benefits of Fixed Pricing:
  • Predictable fees: Charge the same commission regardless of transaction size
  • Minimum guarantees: Ensure a minimum platform fee on small transactions
  • Tiered pricing: Implement different fixed fees for different service levels
  • Simple calculations: Merchants know exactly what they’ll pay
Important Notes:
  • custom_price overrides the percentage calculation
  • Connect gets the exact custom_price amount
  • Master receives the remainder (total - custom_price)
  • The master percentage is ignored when using custom_price

Client Assignment Strategies

Strategy 1: Both payments to original client
  • Master payment: assigned to original client
  • Connect payment: assigned to original client
  • Use case: End customer pays both platform and merchant
Strategy 2: Master to client, Connect to master
  • Master payment: assigned to original client
  • Connect payment: master team becomes the client
  • Use case: Platform pays merchant on behalf of customer
Strategy 3: Master to connect, Connect to client
  • Master payment: connect team becomes the client
  • Connect payment: assigned to original client
  • Use case: Merchant pays platform fee, customer pays merchant
Strategy 4: Both cross-assigned
  • Master payment: connect team becomes the client
  • Connect payment: master team becomes the client
  • Use case: Complex inter-company transactions

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:

5. Marketplace Platform

Process payments with automatic splitting between platform and merchants:

Security and 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

API keys and OAuth access tokens represent a team, not the current personal role of the person who originally created the credential. Protect them as team credentials. The Connect team/billing/plan checks still apply, and OAuth cannot switch teams. User-scoped credentials (such as MCP or dashboard tokens) are subject to the route’s team-role or module-permission checks. Roles are viewer, editor and admin; there is no general member role that grants all writes. Consult each administrative or destructive operation’s requirements. A resource or team outside your scope may be reported as 404 rather than a role error.

Error Responses

Connect errors come from the authentication layer, before the endpoint runs. The body is a raw object with a message — not the standardized envelope.

Not a Master Team (401)

Solution: Your team needs gigstack Connect enabled. Contact support.

Team Not Found (404)

Solution: Verify the team ID.

No Matched Teams (401)

Solution: The target team must share your master team’s billing account.

Plan Without Multiple Issuer Accounts (403)

Solution: Move to a plan that includes multipleIssuerAccounts.

OAuth Token Used for Another Team (403)

Solution: Use an API key for cross-team requests.

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

  • The team credit limit is per team: documents issued for a connected team count against that team’s credit_limit
  • The 10-per-day manual SAT download limit is also per team
  • See Rate Limits for the full list

Optimization Tips

Complete Endpoint Support

Eligible resource endpoints accept ?team=TEAM_ID when the credential, plan and billing-account checks above pass. Check the operation’s team parameter and availability notice before building a shared client wrapper.

Core Resources

Clients, services, income invoices, payments, teams and users document their supported cross-team operations in the API reference. A path’s resource ID must still belong to the intended accessible team; team is not a bypass for resource access checks.

Additional Operations

For platform payouts, do not attach a connected team parameter to the run itself. Once a run issues an income invoice belonging to a provider, retrieving that invoice may require its provider team parameter.

Getting Started

Step 1: Verify gigstack Connect Status

Confirm the master-team feature and plan with your account administrator. The public team response does not contain gigstack_connect_enabled; do not wait for that flag. Then list your accessible teams:

Step 2: List Available Teams

Step 3: Test Cross-Team Access

Step 4: Implement in Your Application


For additional assistance, contact support@gigstack.io