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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  client: {
                      addresses: {
                          city: string
                          | null;
                          country: string | null;
                          id: string;
                          postalCode: string | null;
                          state: string | null;
                          street: string | null;
                      }[];
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  };
                  deliveryLines: (
                      {
                          finishedProduct: | {
                              clientProductCode: (...)
                              | (...);
                              code: string;
                              description: (...) | (...);
                              id: string;
                              name: string;
                          }
                          | null;
                          salesOrderLine: | {
                              clientProductCode: (...)
                              | (...);
                              deliveredQuantity: number;
                              finishedProductId: (...) | (...);
                              id: string;
                              quantity: number;
                              remainingQuantity: number;
                              totalPrice: number;
                              unitPrice: number;
                          }
                          | null;
                      } & {}
                  )[];
                  files: {
                      createdAt: Date;
                      filename: string;
                      id: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  labels: (
                      {
                          deliveryNote: | {
                              client: { addresses: ...; name: ... };
                              deliveryDate: Date;
                              id: string;
                              number: string;
                              salesOrder: (...) | (...);
                          }
                          | null;
                          finishedProduct: { code: string; id: string; name: string }
                          | null;
                      } & {}
                  )[];
                  salesOrder: | {
                      clientOrderNumber: string
                      | null;
                      currency: { code: string; id: string; symbol: string } | null;
                      id: string;
                      lines: {
                          clientProductCode: string | null;
                          finishedProductId: string | null;
                          id: string;
                      }[];
                      number: string;
                      orderDate: Date;
                      status: SalesOrderStatus;
                      totalAmount: number;
                  }
                  | null;
                  transporter: | {
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  }
                  | null;
              } & {},
          >,
      >