summaryrefslogtreecommitdiff
path: root/FS/FS/API.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2020-08-12 10:45:17 -0700
committerIvan Kohler <ivan@freeside.biz>2020-08-12 10:45:17 -0700
commit59fec17626ae0cf63b9b527360a617034c9d2993 (patch)
tree53b6d5a00a50af79982f48be1abf92b7efb609cc /FS/FS/API.pm
parent9f77e815ac02d6d35973c4bfe3974f509b3aad33 (diff)
doc: return fields for customer_info, RT#84796
Diffstat (limited to 'FS/FS/API.pm')
-rw-r--r--FS/FS/API.pm98
1 files changed, 98 insertions, 0 deletions
diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index 5840fc1..91d0a9b 100644
--- a/FS/FS/API.pm
+++ b/FS/FS/API.pm
@@ -573,6 +573,104 @@ Example:
print Dumper($result);
+Returns the following fields:
+
+=over 4
+
+=item error
+
+Empty, or error message (in which case, none of the other fields will be populated)
+
+=item display_custnum
+
+Optional customer number display override - if present, use this for all UI instead of the real database custnum
+
+=item name
+
+Simple string for customer identification (from first, last, company)
+
+=item balance
+
+=item status
+
+=item statuscolor
+
+=item first
+
+=item last
+
+=item company
+
+=item daytime
+
+=item night
+
+=item mobile
+
+=item fax
+
+=item agentnum
+
+Agent (Company)
+
+=item salesnum
+
+Sales person
+
+=item refnum
+
+Advertising channel
+
+=item classnum
+
+Customer class
+
+=item usernum
+
+Employee (initial customer insert)
+
+=item referral_custnum
+
+Referring customer
+
+=item address1
+
+=item address2
+
+=item city
+
+=item county
+
+=item state
+
+=item zip
+
+=item country
+
+=item ship_address1
+
+=item ship_address2
+
+=item ship_city
+
+=item ship_county
+
+=item ship_state
+
+=item ship_zip
+
+=item ship_country
+
+=item invoicing_list
+
+Comma-separated list of email addresses
+
+=item postal_invoicing
+
+0 or 1
+
+=back
+
=cut
sub customer_info {