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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  client: | {
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                      type: string;
                  }
                  | null;
                  createdBy: { email: string; id: string; name: string | null }
                  | null;
                  currency:
                      | { code: string; id: string; name: string; symbol: string }
                      | null;
                  files: {
                      createdAt: Date;
                      filename: string;
                      id: string;
                      key: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  finishedProduct: | {
                      code: string;
                      id: string;
                      index: string
                      | null;
                      name: string;
                      referenceNumber: string | null;
                  }
                  | null;
                  lead: | {
                      code: string;
                      companyName: string
                      | null;
                      email: string | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  }
                  | null;
                  lines: (
                      {
                          finishedProduct: | {
                              code: string;
                              description: (...)
                              | (...);
                              id: string;
                              name: string;
                          }
                          | null;
                          tax: { code: string; id: string; name: string; rate: number }
                          | null;
                          unitOfMeasure:
                              | { code: string; id: string; name: string; symbol: (...)
                              | (...) }
                              | null;
                      } & {}
                  )[];
                  opportunity: | {
                      id: string;
                      name: string;
                      number: string;
                      stage: BusinessOpportunityStage;
                      status: OpportunityStatus;
                  }
                  | null;
                  seriesPriceTiers: {}[];
              } & {},
          >,
      >

      /api/sales/offers/{id}: delete: tags: [Sales, Offers] summary: Supprime un devis description: Supprime un devis 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'