1. Teams
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
    • Search clients
      GET
    • 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
      • List income invoices
      • Create income invoice
      • Get income invoice
    • Egress
      • List egress invoices
      • Create egress invoice
      • Get egress invoice
    • Drafts
      • Create draft invoice (pre-factura)
      • Stamp draft invoice (finalize)
      • Generate draft preview PDF (pre-factura)
      • Delete draft invoice
      • Update draft invoice
      • Get draft invoice
      • List draft invoices
    • List CFDI errors
    • List payment complement invoices
    • Get payment complement invoice
    • Get invoice files
    • Upload support document
    • List support documents
    • Cancel invoice
    • Search invoices
    • List SAT invoices
    • Get a SAT invoice
    • Retry XML download
    • Generate PDF for a received SAT invoice
    • Resend invoice email
  • 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
    • Search receipts
  • Teams
    • Teams API Guide
    • List teams
      GET
    • Get team
      GET
    • Get team integrations
      GET
    • Get team series
      GET
    • Get team onboarding URL
      GET
    • Update team
      PUT
    • Update team series
      PUT
    • Update team settings
      PUT
    • Create team
      POST
    • Add team member
      POST
    • Remove team member
      POST
    • Create team series
      POST
    • Upload SAT CSD certificates
      POST
    • Sign manifest document
      POST
    • Delete team
      DELETE
  • 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
  • Retentions
    • Retentions
    • List retentions
    • Create retention
    • Get retention
    • Cancel retention
    • Get retention files
  • Descarga Masiva SAT
    • Descarga Masiva
    • Check activation status
    • Activate Descarga Masiva SAT
    • Deactivate Descarga Masiva SAT
    • Upload FIEL credentials
    • Register business with SAT (manual)
    • Get schedule configuration
    • Save schedule configuration
    • Get download request history
    • Create bulk download request
    • Check download request status
    • Download XML package
    • Get single invoice from SAT
    • Debug registration status
    • Enable SAT sync
  • Apidog connectivity test
    GET
  • Schemas
    • Schemas
      • ApiResponse
      • Category
      • Pet
      • Tag
      • Order
      • StandardizedSuccessResponse
      • StandardizedErrorResponse
      • ApiErrorCode
    • RequestBodies
      • UserArray
    • Client
    • OrderDirection
    • ApiPublicClient
    • SatInvoice
    • DateRangeFilter
    • Service
    • ListQueryParams
    • ApiPublicService
    • ClientInput
    • ServiceInput
    • PaginationMeta
    • Invoice
    • InvoiceIncomeInput
    • Payment
    • PaymentInput
    • InvoiceEgressInput
    • PaymentItem
    • InvoiceInput
    • Team
    • PaymentAllowedMethod
    • TeamInput
    • TeamSettingsInput
    • CfdiError
    • User
    • ApiPublicPaymentProcessorDetails
    • DraftInvoiceInput
    • ApiPublicPayment
    • UserInput
    • DraftInvoiceUpdateInput
    • ClientAddress
    • DraftInvoiceOutput
    • TaxSchema
    • StandardSuccessResponse
    • RequestPaymentInput
    • RegisterPaymentInput
    • ListResponse
    • ErrorResponse
    • ValidationErrorResponse
    • RefundPaymentInput
    • ApiPublicIncomeInvoice
    • UnauthorizedError
    • MarkPaymentAsPaidInput
    • ApiPublicTeam
    • NotFoundError
    • ApiPublicSearch
    • ApiPublicUser
    • InternalServerError
    • ApiPublicThirdParty
    • ApiPublicInvoiceConfig
    • ApiPublicRefund
    • TeamSettings
    • ApiPublicAutomations
    • TaxElement
    • SeriesInput
    • Series
    • ApiPublicWebhook
    • WebhookInput
    • ReceiptInput
    • WebhookUpdateInput
    • PaymentMethodEnum
    • PaymentFormEnum
    • AutomationTypeEnum
    • ItemSchema
    • SATDocument
    • UploadSupportDocumentInput
  1. Teams

Delete team

DELETE
https://api.gigstack.io/v2/teams/{id}
Schedule a team for deletion (soft delete).
The team's status is set to pending_deletion and a hard deletion is scheduled 30 days from now.
During this grace period the team is retained for recovery purposes. All members are removed from the team,
and each member's teams array is updated accordingly. A member's billingAccount is cleared when no
other team of theirs shares it.

Preconditions#

The team cannot be deleted when any of the following are true:
The team already has status = pending_deletion → 409 resource_conflict.
The team has existing invoices, payments, or receipts → 400 business_rule_violation.
The team has any active integration (completed = true) among:
stripe, mercadopago, paypal, openpay, conekta, clip, bank, shopify, whmcs, hilos
→ 400 business_rule_violation.
gigstack Connect: Delete other teams using the team parameter.

Request

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

Query Params

Responses

🟢200OK
application/json
Team scheduled for deletion
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🟠409
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.gigstack.io/v2/teams/team_1234567890?team' \
--header 'Authorization: <api-key>'
Response Response Example
200 - Example 1
{
    "message": "Team scheduled for deletion",
    "data": {
        "id": "team_1234567890",
        "status": "pending_deletion",
        "scheduled_deletion": {
            "date": 1779984000000,
            "flagged_at": 1777392000000,
            "flagged_by": "user_abc123"
        }
    }
}
Modified at 2026-04-23 18:04:40
Previous
Sign manifest document
Next
Users API Guide
Built with