Account( string Supplier, int SupplierID, string Account, int AccountID )
Get account information.
Request
Request Data:
- Identifing the Supplier:
- (string) Supplier (optional)
- (int) SupplierID (optional) – if provided, Supplier will be ignored
- Identifing the Customer:
- (string) Account (optional)
- (int) AccountID (optional) – if provided, Account and Supplier information will be ignored.
{ "Supplier": <string>, "SupplierID": <string>, "Account": <string>, "AccountID": <string> }
Response
{ "Result": { "Account": <string>, "AccountGroup": <string>, "AccountGroupID": <int>, "AccountID": <int>, "Added": "<Date>", "Customer": <string>, "CustomerID": <int>, "Fields": [<fields>], "Modified": "<Date>", "Address": <string>, // Since RPM26: the primary location's address line "City": <string>, // Since RPM26: the primary location's city "StateProvince": <string>, // Since RPM26: the primary location's state or province "Country": <string>, // Since RPM26: the primary location's country "ZipPostalCode": <string>, // Since RPM26: the primary location's zip/postal code "Reps": [ { "Agency": <string>, "AgencyID": <int>, "AssignmentCodes": [<int>], // Assignment Code IDs "Rep": <string>, "RepID": <int> }, <more reps...> ], "Supplier": <string>, "SupplierID": <int> } }
Errors
- “Supplier not found”
- “Account not found”
Notes
- The AssignmentCodes for each Reps provided by this endpoint is a list of string containing the codes. This is different when calling the Rep endpoint which return a more complex structure.