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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  _count: {
                      childSuppliers: number;
                      files: number;
                      purchaseOrders: number;
                      rawMaterials: number;
                      supplierInvoices: number;
                  };
                  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;
                  }[];
                  buyer: { email: string; id: string; name: string | null }
                  | null;
                  childSuppliers: {
                      code: string;
                      id: string;
                      isActive: boolean;
                      name: string;
                      type: string;
                  }[];
                  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;
                  files: {
                      createdAt: Date;
                      filename: string;
                      id: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  legalIdentifiers: {
                      country: string
                      | null;
                      id: string;
                      isActive: boolean;
                      type: string;
                      value: string;
                  }[];
                  parentSupplier: { code: string; id: string; name: string }
                  | null;
                  purchaseOrders: {
                      id: string;
                      number: string;
                      orderDate: Date;
                      status: string;
                      totalAmount: number;
                  }[];
                  rawMaterials: {
                      code: string;
                      id: string;
                      name: string;
                      sellingPrice: number;
                  }[];
                  supplierInvoices: {
                      id: string;
                      invoiceDate: Date;
                      isPaid: boolean;
                      number: string;
                      status: string;
                      totalAmount: number;
                  }[];
              } & {},
          >,
      >