Skip to main content
Manage teams, configure settings, and control member access. The Teams API handles team creation, configuration, member management, and system-wide settings for invoicing and payments.

Overview

Teams are organizational units that contain settings, members, and resources. Each team has its own configuration for invoicing, taxes, series, and automation preferences.

Key Features

  • Team Management - Create and configure teams with initial member setup
  • Member Administration - Add/remove team members, bulk import from master team
  • Settings Configuration - Invoice, tax, and email settings
  • SAT Connection - Upload CSD certificates for CFDI invoicing
  • Series Management - Configure invoice series and folios
  • Integration Support - Connect with external services
  • gigstack Connect - Enable multi-team access

Endpoints

List Teams

Retrieve a paginated list of teams. Query Parameters:
  • limit (integer, 1-100) - Number of results per page (default: 10)
  • next (string) - Pagination cursor for next page
  • team (string) - gigstack Connect: Target team ID
Example Request:
Example Response:

Create Team

Create a new team with initial configuration. Creating an issuing team does not configure its certificates or establish that it can issue fiscal documents. A personal credential must belong to a current source-team administrator; that verified person becomes the new team’s owner. A machine credential must belong to a current master team; its current owner becomes the child team’s owner. The credential creator’s historical user ID does not grant ownership or a seat. Current inactive or blocked team, account and member records refuse creation. Additional administrator seats require owner review. If add_members requests an administrator other than the new owner, or add_master_team_members would copy an active administrator, creation returns 403 account_approval_required before writes. Create the child without those seats, then prepare team.members.add_admin or team.members.promote_admin for its owner to review through account approvals.
Requires the multipleIssuerAccounts feature on your plan (Pricing v3: gigstack Connect). Without it this endpoint returns 403. DELETE /teams/{id} needs it too, except on Pricing v3 for the owner or an administrator of the billing account signed in as a person (web app or MCP personal credential), who may delete any team of the account except the master team without Connect so its RFC stops being billed. A team with invoices, payments or receipts cannot be deleted (400 team_has_existing_resources): deactivate it instead (Deactivate and reactivate a team).
Request Body:
Body Parameters:
  • legal_name (string, optional) - Legal name of the team/company
  • tax_id (string, optional) - Tax identification number (RFC)
  • tax_system (string, optional) - SAT tax system code (regimen fiscal)
  • brand (object, optional) - Branding configuration
    • alias (string, required within object) - Team display name
    • primary_color (string, optional) - Primary brand color
    • secondary_color (string, optional) - Secondary brand color
    • logo (string, optional) - Logo URL
  • support_email (string, optional) - Support contact email
  • support_phone (string, optional) - Support contact phone
  • generate_onboarding_url (boolean, optional) - When true, includes a secure onboarding URL in the response
  • address (object, optional) - Team address information
    • country (string, required within object) - Country code (e.g., “MEX”)
    • street (string, optional) - Street address
    • exterior (string, optional) - Exterior number
    • interior (string, optional) - Interior number
    • neighborhood (string, optional) - Neighborhood/colony
    • municipality (string, optional) - Municipality
    • city (string, optional) - City
    • state (string, optional) - State/province
    • zip (string, optional) - Postal code
  • metadata (object, optional) - Arbitrary key-value pairs to store with the team
  • add_members (array, optional) - Array of members to add to the team on creation
    • id (string, required) - User ID to add as a team member
    • role (string, optional, defaults to “viewer”) - Member role. Options: “admin”, “editor”, “viewer”
  • add_master_team_members (boolean, optional) - When true, copies all members from the master team to the newly created team with their existing permissions. Only applicable for gigstack Connect accounts
Example Request (basic team creation):
Example Request (with members):
Example Request (with master team members):
Example Response (201 Created):
Note: onboarding_url is only populated when generate_onboarding_url: true is sent in the request. Otherwise it is an empty string.

Get Team

Retrieve a specific team by ID. Example Request:
Example Response:

Team Response Structure

Core Fields

Address Object

Brand Object

Settings Object

The settings object contains comprehensive configuration for team operations:

Email Settings

Periodicity Object

Default Series Object

Each series object contains:
  • serie (string): Series identifier

SAT Object

Members Array

Each member object contains:

Integrations Object

The integrations object contains status for all available integrations. Each integration has: Available Integrations:
  • Payment providers: stripe, mercadopago, clip, whmcs, paypal, openpay, conekta, bank, shopify
  • Data integrations: zapier, airtable, google_sheets
  • Messaging: hilos

Deactivate and reactivate a team

POST /teams/{id}/deactivate and POST /teams/{id}/reactivate (Pricing v3 only). Deleting a team needs it to have no invoices, payments or receipts, and those are kept for the SAT for five years, so a business you no longer use is deactivated (“dar de baja”) instead:
  • Its RFC stops being billed from the next monthly cut. It is not billed for the month you deactivate it in, unless it already issued something live that month; then it pays that month like any active RFC. Its paid add-ons must be turned off first (409 team_has_active_addons).
  • Its history stays available: get, list and search its invoices, payments and receipts, and download their XML and PDF. Cancelling an existing invoice still works.
  • It issues nothing new. Every stamp answers 412 with code TEAM_DEACTIVATED; creating invoices, drafts, receipts, payment requests, payment links, recurrences and retentions, running the end of month and starting SAT downloads answer 403 team_deactivated. Automations, recurrences and the end-of-month run skip it. Payments that arrive from connected processors are not written to the team; each one is kept as a record for support to replay.
  • POST /teams/{id}/reactivate puts it back: it issues again and its RFC is billed again from the current month.
Only the owner or an administrator of the billing account, signed in as a person (web app or MCP personal credential), can do it; never with a team API key, and never for the account’s master team. Both answer the team, with deactivated and deactivated_at.

Update Team

Update team information. Uses the same schema as Create Team but all fields are optional for updates. Request Body (same as Create Team, all fields optional):
Example Request:

Update Team Settings

Read the full settings projection with GET /teams/{id}/settings. PUT on the same path patches supplied fields only and requires administrator authority. Null resets a field, empty strings/arrays clear it, and an empty object leaves that group unchanged. Null on a group resets only its documented leaves; unrelated settings remain intact. Folio counters use the separate series endpoint. The contract covers invoice/tax defaults, local taxes, unit names and SKU, addenda, receipt and refund behavior, re-invoicing policy, self-invoice catalog controls, reminders, bilingual email templates and BCC. Spanish template writes keep both web storage formats synchronized; conflicting values for the same template through emails and email_templates return 400. Provider credentials and unique customer-portal slug registration use separate workflows. Example: disable reminders and clear invoice BCC without changing the invoice defaults:
Update comprehensive team settings including defaults, taxes, and automation.

⚠️ Here periodicity is two_months — plural

PUT /teams/{id}/settings accepts exactly:
sent as a plain string, not an object. Anything else fails validation with 400. The receipts endpoints use two_month — singular (POST /v2/receipts, field periodicity). The two endpoints genuinely disagree and neither accepts the other’s spelling. This is the current state of the API, deliberately left alone because normalizing it would break live integrations. Never copy a periodicity value between the two — look it up. See Receipts → Periodicity Options. Note the asymmetry between write and read: you send periodicity as a string here, but GET /teams/{id} returns whatever is stored under the team’s defaults.periodicity, which for teams configured through the dashboard is a { label, value } object. Read periodicity.value defensively.
Request Body:
Example Request:

Get Team Integrations

Returns { "success": true, "data": { "stripe": { "completed": true, "category": "payments" }, ... } } for the authorized effective team. The projection contains stored connection flags only; it does not expose keys, check provider health, or enumerate every provider-specific control. Use ?team=TEAM_ID to select another authorized team.

Add Team Member

POST /teams/{id}/add-member adds an existing user from the same billing account. It does not send an invitation. Supply { "id": "user_example", "role": "viewer" }; direct roles are viewer and editor. role: admin requires a membership approval using action team.members.add_admin. The response data is the canonical member. Re-adding a member does not silently change their role or create another seat. To invite someone by email instead, use POST /teams/{id}/invitations.

Remove Team Member

DELETE /teams/{id}/members/{memberId} removes the seat and reconciles the user’s team selection and membership links. It does not delete their login. The deprecated POST /teams/{id}/remove-member with { "id": "user_example" } uses the same behavior. The response is { "data": { "id": "user_example", "removed": true }, ... }. Removal requires the current owner using a user-scoped Firebase or MCP credential. A team API key’s creator ID is not owner authorization. The owner cannot remove themselves; transfer ownership first.

List and Update Members

GET /teams/{id}/members returns the canonical roster and effective module permissions. Current member or authorized team-credential access is required. Each member includes id, email (nullable), role, is_owner, and permissions for invoices, receipts, payments, services, and expenses. The read projects equivalent canonical/raw aliases, includes existing raw-only principals, and lets a denial in either mirror win. Ambiguous identities or conflicting active mirrors are refused. A current personal actor’s raw team/account denial also refuses the read, even without an enabled migration policy. The owner can change another member to a non-admin role with PATCH /teams/{id}/members/{memberId}:
For a permissions-only patch, a current roster administrator can edit another viewer member; self-edits are refused. A billing-account admin without a team admin seat cannot use that exception. Team credentials can administer module grants but cannot impersonate the owner for role changes. Roles are admin, editor, viewer, or blocked; module values are editor, viewer, or none. A role change resets default module permissions before applying explicitly supplied overrides. Effective permissions follow the server’s role rules. A blocked member has no module access. Omitted fields stay unchanged. Native browser module value blocked maps to canonical none. Canonical and raw membership aliases update in the same transaction, with current credential verification before writes. Independent disabled/status denials are retained; role changes cannot silently clear them. POST /teams/{id}/transfer-ownership returns 403 account_approval_required. Prepare team.ownership.transfer with payload { "new_owner_id": "user_example" } through POST /users/me/account-approvals, then open review_url for the current owner to confirm. The prior owner remains an administrator; billing-account ownership is unchanged. To promote a member with PATCH role: admin, prepare team.members.promote_admin with { "member_id": "user_example" } instead. See account approvals.

Invite Members

For an editor or viewer, use a user-scoped Firebase or MCP credential with current administrator authority:
A new invitation returns HTTP 201; an existing pending invitation returns HTTP 200 without automatically resending. send_email defaults to true. Set it to false to create a pending invitation without sending; use the resend operation when delivery is authorized. Neither invitation tokens nor acceptance URLs are returned by management endpoints. Inspect both data.status and data.delivery.status. pending is an invitation state; sent means the email provider accepted the message, not that the person received or accepted it. A delivery failure keeps the invitation and returns delivery.status: "failed". Reconcile the stored state before resending after a timeout. Accept/decline requires the recipient’s verified Firebase identity or user-scoped MCP credential. A new Firebase user need not already have a team. The server checks email identity, expiry, current inviter authority, and revocation before committing membership. A team API key cannot accept on someone else’s behalf. Administrator invitations use account approvals: prepare team.invitations.create_admin as the current owner, then confirm in the browser. Billing-account invitations use billing_account.invitations.create_admin and require the canonical billing-account owner. Direct admin creation returns account_approval_required. Approval completion does not mean sent or joined. Use GET /users/me/account-invitations/{id} to read the result and the matching /resend route for explicit delivery. Uncertain delivery requires acknowledgment of a possible duplicate email. Pending old admin invitations can be approved with existing_invitation_id and send_email:false, preserving their original expiry.

Get Team Series

Get invoice series configuration for a team. Example Request:

Create Team Series

Create a new invoice series for a team. Request Body:
Body Parameters:
  • series (string, required) - Series identifier (alphanumeric, max 10 characters)
  • live (number, optional) - Initial folio number for live mode (default: 0)
  • test (number, optional) - Initial folio number for test mode (default: 0)
Example Request:

Update Team Series

Update an existing team series. Request Body:
Body Parameters:
  • live (number, optional) - Update folio number for live mode
  • test (number, optional) - Update folio number for test mode
Note: At least one of live or test must be provided. Example Request:

Get Team Onboarding URL

Generate a secure onboarding URL for team setup and configuration. This endpoint is only available for gigstack Connect accounts (master teams). Important: This endpoint is only available for gigstack Connect accounts. Use Cases:
  • Generate onboarding links for new teams
  • Allow secure team configuration setup
  • Enable embedded team management flows
Parameters:
  • id (path, required) - Team ID to generate onboarding URL for
Example Request:
Example Response:
Error Responses:
  • 401 Unauthorized - Only available for master teams
  • 404 Not Found - Team not found
The generated URL provides secure access to the team onboarding interface with a temporary session and secure code.

Upload SAT CSD Certificates

Upload SAT CSD (Certificado de Sello Digital) certificates to establish SAT connection for CFDI invoicing. This endpoint accepts multipart form data with the certificate files and password. Required Files:
  • cert: Certificate file (.cer) - The public certificate
  • key: Private key file (.key) - The encrypted private key
  • keyPass: Password for the private key
First-Time Connection: When this is the first SAT connection for a team (no previous SAT setup), the system will automatically initialize default invoice series (G, NC, P, T). gigstack Connect: Upload SAT certificates for other teams using the team query parameter. Parameters:
  • id (path, required) - Team ID to upload SAT certificates for
  • team (query, optional) - Target team ID for gigstack Connect
Request Body (multipart/form-data):
  • cert (binary, required) - Certificate file (.cer)
  • key (binary, required) - Private key file (.key)
  • keyPass (string, required) - Password for the private key
Example Request:
Example Response:
Response Fields:
  • isValid (boolean) - Whether the certificate is valid
  • details.serialNumber (string) - Certificate serial number
  • details.validTo (number) - Unix timestamp in milliseconds when certificate expires
Error Responses: 400 - Bad Request:
401 - Unauthorized:
403 - Forbidden:

Sign Manifest Document

Sign a manifest document (Carta Manifiesto) using the FIEL (Firma Electronica Avanzada) for SAT compliance. This endpoint is used to sign the authorization manifest that authorizes the PAC (Proveedor Autorizado de Certificacion) to issue CFDI invoices on behalf of your team’s RFC. The manifest must be signed to grant the PAC permission to stamp and process invoices under your team’s tax identification. Once signed, the manifest is stored in your team’s SAT configuration and includes both XML and PDF files. Important Requirements:
  • Your SAT configuration must be completed before signing the manifest
  • The FIEL certificate must be valid and issued by SAT
  • The certificate must match your team’s RFC
  • The team ID is specified in the URL path parameter
Supported Formats: This endpoint accepts two content types:
  1. JSON format (application/json): Send Base64 encoded certificate files
  2. Form Data format (multipart/form-data): Upload certificate files directly
Parameters:
  • id (path, required) - Team ID to sign manifest for
Request Body (JSON):
Request Body (Form Data):
  • key (file) - FIEL .key file upload
  • cert (file) - FIEL .cer file upload
  • password (string) - FIEL password (private key password)
Example Request (JSON):
Example Request (Form Data):
Example Response:
Response Fields:
  • xmlBase64 (string) - Base64 encoded signed manifest XML
  • pdfBase64 (string) - Base64 encoded manifest PDF
  • fechaFirma (string) - Signature date and time in ISO 8601 format
  • mensajeResultado (string) - Result message from signing service
Error Responses:

Team Settings Structure

Core Settings

Tax Configuration

Email Settings

Series Configuration

Configuration Examples

Basic Team Setup

Professional Services Configuration

E-commerce Configuration

International Business Configuration

Best Practices

  1. Configure defaults early - Set up team settings before creating invoices
  2. Use appropriate tax settings - Configure taxes based on business type
  3. Set up email BCCs - Ensure accounting gets copies
  4. Manage series carefully - Don’t duplicate series across invoice types
  5. Test in staging - Verify settings with test folios first
  6. Enable automations wisely - Understand impact on workflows
  7. Keep member roles updated - Regular access reviews

Member Roles

Team Workflows

Initial Setup

Member Management

Error Handling

Team Not Found

Invalid Tax Configuration

Member Already Exists

Invalid Series

Permission Denied


For additional assistance, contact support@gigstack.io

Inspect API and webhook logs

Read retained metadata for a team in the credential’s current live/test mode:
These commands use GET /teams/{id}/api-logs and GET /teams/{id}/webhook-deliveries, with /{logId} for detail. Lists return data, has_more, next_cursor, scanned_count and livemode. limit bounds rows scanned, so a filtered page can be empty while has_more:true. Follow its cursor with the same team, mode and filters, including limit. Date filters from and to are inclusive epoch milliseconds. API logs also accept method, HTTP status class and redacted endpoint prefix; webhook logs accept event and delivery status. API detail retains existing request_shape, query_shape, and response_shape fields and adds payload_redaction: "allowlisted_structured_values_v1", request_payload, query_payload, and response_payload. This server-owned view preserves finite fiscal amounts, supported flags, currency/country/SAT catalog values, and Colombian DIAN identification enums inside the original nested structure. Free text, names, IDs, tax IDs, arbitrary metadata, headers, URLs, files, credentials, and unknown values remain hidden. $redacted explains hidden fields; $redacted_keys counts unknown names without exposing them. $truncated, $omitted_keys, and $omitted_items mark bounded content: maximum depth 8, 1500 nodes, 100 keys/object, 50 items/array, and 262144 characters for encoded JSON bodies. Invalid encoded bodies are marked unstructured_body; no raw string fallback is returned. The browser debugger and get_account_api_log MCP tool consume this same safe detail. Browser download and CLI --output save that detail, never raw historical payloads. The CLI refuses to overwrite an existing destination. API list/detail return team_id; each read revalidates the original credential and current account/team/mode after asynchronous work. Variable endpoint segments become :id, and query strings/fragments are removed; filter against the redacted prefix. Historic IDs are inert hints, never permission for a different resource. Webhook detail retains its structure-only projection. A pending webhook log is not proof of delivery, and retry_requested only records a request flag. These reads never send, test or retry a webhook. Historical webhook rows without an explicit matching payload mode are excluded. Existing retention applies. If an unsupported stored timestamp prevents safe pagination, the server returns 409 log_pagination_unavailable; do not report that as an exhausted history.

Read the email editor’s default templates

Before replacing email text, read the built-in subjects and bodies for your team’s business or nonprofit variant:
A successful response has success: true and data.source: "editor_baseline". data.templates_by_language.es and .en each contain nine template types: invoices, invoicesComplements, invoicesEgress, payments, paymentsReminders, paymentsRemindersAfter, receipts, receiptsReminders and bankReview. Each has body and subject strings. Placeholders such as {cliente} remain literal so you can use the result in an editor. data.legacy_templates preserves the older editor’s eight Spanish keys and exact subjects: invoiceMessage, invoiceMessageComplements, invoiceMessageEgress, paymentsEmailsTemplate, paymentsReminderTemplate, paymentsReminderAfterTemplate, receiptsEmailsTemplate and receiptsRemindersTemplate. These keys are not a rename of the bilingual catalog. legacy_is_nonprofit preserves the older editor’s strict boolean selection; is_nonprofit describes the bilingual variant. These are baseline templates. Read GET /teams/{id}/settings for saved overrides and use its settings update to author changes. The reminder subject for receipts is the editor’s upcoming-deadline default; delivery may select another subject based on the deadline. english_enabled reports the saved English-PDF preference; recipient country still affects the language used for delivery. These settings are shared across live and test modes. This read sends no email.

Recipient inbox

GET /teams/invitations/inbox?limit=25 returns pending metadata for the current independently verified Auth identity/email, without invitation tokens or approval proof. Ordinary unverified email is allowed; admin acceptance separately requires verified email. Firebase recipients need no team/profile and no provisioning occurs. MCP requires its current user credential and source custody. Follow next_cursor while has_more, including empty filtered pages. Email/team overrides are refused. MCP list_recipient_invitations and CLI teams invitations inbox read this same contract. Explicit acceptance still requires the intended recipient’s invitation-link token or private browser action.