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

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  offers: (
                      {
                          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;
                          }[];
                          lead: | {
                              code: string;
                              companyName: string
                              | null;
                              email: string | null;
                              id: string;
                              name: string;
                              phone: string | null;
                          }
                          | null;
                          lines: ({ finishedProduct: (...) | (...); tax: (...) | (...) } & {})[];
                          opportunity:
                              | {
                                  adv: { email: ...; id: ...; name: ... }
                                  | null;
                                  id: string;
                                  keyAccountManager: { email: ...; id: ...; name: ... } | null;
                                  name: string;
                                  number: string;
                              }
                              | null;
                          seriesPriceTiers: {
                              id: string;
                              notes: string
                              | null;
                              price: number;
                              quantity: number;
                              sequence: number;
                          }[];
                      } & {}
                  )[];
                  pagination: {
                      page: number;
                      limit: number;
                      total: number;
                      totalPages: number;
                  };
              },
          >,
      >

      /api/sales/offers: post: tags: [Sales, Offers] summary: Crée un nouveau devis description: Crée un nouveau devis requestBody: required: true content: application/json: schema: type: object responses: 201: description: Créé avec succès content: application/json: schema: type: object 400: description: Données invalides 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'