ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  addresses: {
                      city: string
                      | null;
                      country: string | null;
                      id: string;
                      isDefault: boolean;
                      name: string | null;
                      postalCode: string | null;
                      state: string | null;
                      street: string | null;
                      type: string;
                  }[];
                  businessOpportunities: {
                      createdAt: Date;
                      expectedRevenue: number
                      | null;
                      id: string;
                      name: string;
                      number: string;
                      stage: BusinessOpportunityStage;
                      status: OpportunityStatus;
                  }[];
                  contacts: {
                      email: string
                      | null;
                      firstName: string;
                      id: string;
                      isDefault: boolean;
                      lastName: string;
                      mobile: string | null;
                      phone: string | null;
                      position: string | null;
                  }[];
                  currency: | { code: string; id: string; name: string; symbol: string }
                  | null;
                  legalIdentifiers: {
                      country: string | null;
                      id: string;
                      isActive: boolean;
                      type: string;
                      value: string;
                  }[];
                  parentClient: { code: string; id: string; name: string }
                  | null;
                  salesperson: { email: string; id: string; name: string | null } | null;
                  createdAt: string;
                  updatedAt: string;
              },
          >,
      >

      /api/sales/clients/{id}: delete: tags: [Sales, Clients] summary: Supprime un client description: Supprime un client parameters: - in: path name: id required: true schema: type: string description: Identifiant de la ressource responses: 200: description: Supprimé avec succès content: application/json: schema: type: object 404: description: Ressource non trouvée content: application/json: schema: $ref: '#/components/schemas/Error' 401: description: Non autorisé content: application/json: schema: $ref: '#/components/schemas/Error' 500: description: Erreur serveur content: application/json: schema: $ref: '#/components/schemas/Error'