Accounts(
string Supplier,
int SupplierID,
string Customer,
int CustomerID,
string ModifiedAfter
)
Get a list of accounts by supplier or customer.
Request
Request Data:
- Identifing the Supplier:
- (string) Supplier (optional)
- (int) SupplierID (optional) – if provided, Supplier will be ignored.
- Identifing the Customer:
- (string) Customer (optional)
- (int) CustomerID (optional) – if provided, Customer will be ignored.
- ModifiedAfter (optional) – date formatted as “YYYY-MM-DD”. If provided, RPM will return only accounts modified after the provided date. (Availbale since RPM 31.0.3072)
{ "Supplier": <string>, "SupplierID": <string>, "Customer": <string>, "CustomerID": <string>, "ModifiedAfter": <string> }
Response
{ "Result": { "Accounts": [ { "Account": <string>, "AccountGroup": <string>, "AccountGroupID": <int>, "AccountID": <int>, "Added": <string>, "AssignedRep": <string>, // Since RPM 28 "AssignedRepID": <int>, // Since RPM 28 "Customer": <string>, "CustomerID": <int>, "Fields": [ { "Field": <string>, "Value": <string> }, <... More Fields> ], "Modified": <string>, "Supplier": <string>, "SupplierID": <int> } ] } }
Errors
- “Supplier not found”
- “Customer not found”