adding more REST-like API for maestro here too
[freeside.git] / httemplate / misc / maestro-customer_status.html
diff --git a/httemplate/misc/maestro-customer_status.html b/httemplate/misc/maestro-customer_status.html
new file mode 100644 (file)
index 0000000..0c45bcd
--- /dev/null
@@ -0,0 +1,16 @@
+<% objToJson( $return ) %>
+<%init>
+
+my $return;
+
+my($query) = $cgi->keywords;
+if ( $query =~ /^(\d+)$/ ) {
+
+  use FS::Maestro;
+  $return = FS::Maestro::customer_status($1);
+
+} else {
+  $return = { 'error' => 'No custnum' };
+}
+
+</%init>