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
limit(integer, 1-100) - Number of results per page (default: 10)next(string) - Pagination cursor for next pageteam(string) - gigstack Connect: Target team ID
Create Team
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 theRequest Body:multipleIssuerAccountsfeature on your plan (Pricing v3: gigstack Connect). Without it this endpoint returns403.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).
legal_name(string, optional) - Legal name of the team/companytax_id(string, optional) - Tax identification number (RFC)tax_system(string, optional) - SAT tax system code (regimen fiscal)brand(object, optional) - Branding configurationalias(string, required within object) - Team display nameprimary_color(string, optional) - Primary brand colorsecondary_color(string, optional) - Secondary brand colorlogo(string, optional) - Logo URL
support_email(string, optional) - Support contact emailsupport_phone(string, optional) - Support contact phonegenerate_onboarding_url(boolean, optional) - When true, includes a secure onboarding URL in the responseaddress(object, optional) - Team address informationcountry(string, required within object) - Country code (e.g., “MEX”)street(string, optional) - Street addressexterior(string, optional) - Exterior numberinterior(string, optional) - Interior numberneighborhood(string, optional) - Neighborhood/colonymunicipality(string, optional) - Municipalitycity(string, optional) - Citystate(string, optional) - State/provincezip(string, optional) - Postal code
metadata(object, optional) - Arbitrary key-value pairs to store with the teamadd_members(array, optional) - Array of members to add to the team on creationid(string, required) - User ID to add as a team memberrole(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
onboarding_url is only populated when generate_onboarding_url: true is sent in the request. Otherwise it is an empty string.
Get Team
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
412with codeTEAM_DEACTIVATED; creating invoices, drafts, receipts, payment requests, payment links, recurrences and retentions, running the end of month and starting SAT downloads answer403 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}/reactivateputs it back: it issues again and its RFC is billed again from the current month.
deactivated and deactivated_at.
Update Team
Update Team Settings
Read the full settings projection withGET /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:
Request Body:⚠️ Here
periodicityistwo_months— pluralPUT /teams/{id}/settingsaccepts exactly:sent as a plain string, not an object. Anything else fails validation with400. The receipts endpoints usetwo_month— singular (POST /v2/receipts, fieldperiodicity). 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 sendperiodicityas a string here, butGET /teams/{id}returns whatever is stored under the team’sdefaults.periodicity, which for teams configured through the dashboard is a{ label, value }object. Readperiodicity.valuedefensively.
Get Team Integrations
{ "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}:
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: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
Create Team Series
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)
Update Team Series
live(number, optional) - Update folio number for live modetest(number, optional) - Update folio number for test mode
live or test must be provided.
Example Request:
Get Team Onboarding URL
- Generate onboarding links for new teams
- Allow secure team configuration setup
- Enable embedded team management flows
id(path, required) - Team ID to generate onboarding URL for
- 401 Unauthorized - Only available for master teams
- 404 Not Found - Team not found
Upload SAT CSD Certificates
- cert: Certificate file (.cer) - The public certificate
- key: Private key file (.key) - The encrypted private key
- keyPass: Password for the private key
team query parameter.
Parameters:
id(path, required) - Team ID to upload SAT certificates forteam(query, optional) - Target team ID for gigstack Connect
cert(binary, required) - Certificate file (.cer)key(binary, required) - Private key file (.key)keyPass(string, required) - Password for the private key
isValid(boolean) - Whether the certificate is validdetails.serialNumber(string) - Certificate serial numberdetails.validTo(number) - Unix timestamp in milliseconds when certificate expires
Sign Manifest Document
- 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
- JSON format (application/json): Send Base64 encoded certificate files
- Form Data format (multipart/form-data): Upload certificate files directly
id(path, required) - Team ID to sign manifest for
key(file) - FIEL .key file uploadcert(file) - FIEL .cer file uploadpassword(string) - FIEL password (private key password)
xmlBase64(string) - Base64 encoded signed manifest XMLpdfBase64(string) - Base64 encoded manifest PDFfechaFirma(string) - Signature date and time in ISO 8601 formatmensajeResultado(string) - Result message from signing service
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
- Configure defaults early - Set up team settings before creating invoices
- Use appropriate tax settings - Configure taxes based on business type
- Set up email BCCs - Ensure accounting gets copies
- Manage series carefully - Don’t duplicate series across invoice types
- Test in staging - Verify settings with test folios first
- Enable automations wisely - Understand impact on workflows
- Keep member roles updated - Regular access reviews
Member Roles
Team Workflows
Initial Setup
Member Management
Related Resources
- Users API - Manage team members
- gigstack Connect - Multi-team access
- Invoices API - Uses team settings
- Payments API - Uses team configuration
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: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: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.