summaryrefslogtreecommitdiff
path: root/FS/FS/API.pm
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2015-02-09 10:56:43 -0600
committerJeremy Davis <jeremyd@freeside.biz>2015-02-09 10:56:43 -0600
commit16542dcb6b35c8cf7f436f87adb2cfdb0e32f4fc (patch)
tree60ef60b743df167ac89ae3f9e2f5ce156485f41b /FS/FS/API.pm
parentbb3b0a3d1854fdf8e6de9038cea3f73ac4f9d817 (diff)
Ticket #33252 API update
Diffstat (limited to 'FS/FS/API.pm')
-rw-r--r--FS/FS/API.pm22
1 files changed, 13 insertions, 9 deletions
diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index 30efa9c..5b56539 100644
--- a/FS/FS/API.pm
+++ b/FS/FS/API.pm
@@ -430,32 +430,36 @@ sub new_customer {
}
=item update_customer
-
-Updates an existing customer. Takes a hash reference as parameter with the foll$
+Updates an existing customer. Passing an empty value clears that field, while NOT passing that key/value at all leaves it alone.
+Takes a hash reference as parameter with the following keys:
=over 4
=item secret
-API Secret
+API Secret (required)
+
+=item custnum
+
+Customer number (required)
=item first
-first name (required)
+first name
=item last
-last name (required)
+last name
=item company
Company name
-=item address1 (required)
+=item address1
Address line one
-=item city (required)
+=item city
City
@@ -463,11 +467,11 @@ City
County
-=item state (required)
+=item state
State
-=item zip (required)
+=item zip
Zip or postal code