Accounts

Accounts(
	string Supplier,
	int SupplierID,
	string Customer,
	int CustomerID
)

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.
{
    "Supplier": <string>,
    "SupplierID": <string>,
    "Customer": <string>,
    "CustomerID": <string>
}

Response

{
    "Result": {
        "Accounts": [
            {
                "Account": <string>,
                "AccountGroup": <string>,
                "AccountGroupID": <int>,
                "AccountID": <int>,
                "Added": <string>,
                "Customer": <string>,
                "CustomerID": <int>,
                "Fields": [
                    {
                        "Field": <string>,
                        "Value": <string>
                    },
                    <... More Fields>
                ],
                "Modified": <string>,
                "Supplier": <string>,
                "SupplierID": <int>
            }
        ]
    }
}

Errors

  • “Supplier not found”
  • “Customer not found”
%d bloggers like this: