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

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

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  lines: (
                      {
                          purchaseOrderLine: {
                              rawMaterial: { code: ...; id: ...; name: ...; unitOfMeasure: ... };
                          } & {};
                      } & {}
                  )[];
                  purchaseOrder: {
                      currency: { code: string; id: string; symbol: string }
                      | null;
                      expectedDate: Date | null;
                      id: string;
                      number: string;
                      orderDate: Date;
                      status: string;
                      supplier: {
                          addresses: {
                              city: string | null;
                              country: string | null;
                              street: string | null;
                          }[];
                          code: string;
                          email: string
                          | null;
                          id: string;
                          name: string;
                          phone: string | null;
                      };
                      totalAmount: number;
                  };
              } & {},
          >,
      >