Click or drag to resize

ESDocumentCustomerAccountEnquiry Class

Ecommerce standards document that holds lists of invoices, transactions, sales orders, back orders, credits and payment records for customer accounts. This document can by used in many ways for enquiring about different data associated to a customer account's finances.
Inheritance Hierarchy
SystemObject
  EcommerceStandardsDocumentsESDocument
    EcommerceStandardsDocumentsESDocumentCustomerAccountEnquiry

Namespace:  EcommerceStandardsDocuments
Assembly:  EcommerceStandardsDocuments.Library (in EcommerceStandardsDocuments.Library.dll) Version: 1.4.0.0 (1.0.0.0)

The ESDocumentCustomerAccountEnquiry type exposes the following members.

Constructors
  NameDescription
Public methodESDocumentCustomerAccountEnquiry
Constructor
Top
Properties
  NameDescription
Public propertybackOrderRecords
list of Customer Account Enquiry Back Order records.
Public propertycreditRecords
list of Customer Account Enquiry Credit records.
Public propertyinvoiceRecords
list of Customer Account Enquiry Invoice records.
Public propertyorderSaleRecords
list of Customer Account Enquiry Order Sale records.
Public propertypaymentRecords
list of Customer Account Enquiry Payment records.
Public propertyquoteRecords
list of Customer Account Enquiry quote records.
Public propertytransactionRecords
list of Customer Account Enquiry Transaction records.
Top
Fields
  NameDescription
Public fieldconfigs
A dictionary of additional configurations and settings to include with each Ecommerce Standard Document. Typically documents would contain the "dataFields" key that would have a comma delimited list of record properties that are expected to contain data when reading the document's records. Any records not containing data for properties in list could then have the data set to a default when saved to a database.
(Inherited from ESDocument.)
Public fielddataTransferMode
Denotes if the data being placed into document is a complete data set, or partial data being transferred containing only data changes.
(Inherited from ESDocument.)
Public fieldmessage
Message providing details of if the data could be obtained when requesting the document. The message gives meaning to the result status.
(Inherited from ESDocument.)
Public fieldStatic memberRECORD_LINE_TYPE_INVOICE
Record Line Type - Invoice
Public fieldStatic memberRECORD_LINE_TYPE_ITEM
Record Line Type - Item
Public fieldStatic memberRECORD_LINE_TYPE_ORDER_SALE
Record Line Type - Sales Order
Public fieldStatic memberRECORD_LINE_TYPE_TEXT
Record Line Type - Text
Public fieldStatic memberRECORD_TYPE_BACKORDER
Record Type - Back Order
Public fieldStatic memberRECORD_TYPE_CREDIT
Record Type - Credit
Public fieldStatic memberRECORD_TYPE_INVOICE
Record Type - Invoice
Public fieldStatic memberRECORD_TYPE_ORDER_PURCHASE
Record Type - Purchase Order
Public fieldStatic memberRECORD_TYPE_ORDER_SALE
Record Type - Sales Order
Public fieldStatic memberRECORD_TYPE_PAYMENT
Record Type - Payment
Public fieldStatic memberRECORD_TYPE_QUOTE
Record Type - Payment
Public fieldStatic memberRECORD_TYPE_TRANSACTION
Record Type - Transaction
Public fieldresultStatus
Code that denotes if the data could be successfully obtained for the document, and if not why. See ESDocumentConstants Class for the list of status codes
(Inherited from ESDocument.)
Public fieldtotalDataRecords
The total number of records placed within document. For documents that contain multiple record lists, please check the relevant documentation to see how this number applies.
(Inherited from ESDocument.)
Public fieldversion
Version of the Ecommerce Standards Document. Verifying the version of the document is critical for systems transferring and manipulating the data.
(Inherited from ESDocument.)
Top
Examples
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of transactions for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry transaction data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 5,
    "configs": {},
    "transactionRecords":
     [
        {
            "keyTransactionID":"",
            "transactionID":"",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "currencyCode": "AUD",
            "description": "Start Balance",
            "balance": 100.00
        },
        {
            "keyTransactionID":"112",
            "transactionID":"T112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "transactionNumber": "T1113",
            "creationDate": 1449132083084,
            "transactionDate": 1449932083084,
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "debitAmount": 110.00,
            "creditAmount": 0,
            "balance": -10.00,
            "description": "Invoice",
            "language": "EN_AU",
            "currencyCode": "AUD"
        },
        {
            "keyTransactionID":"113",
            "transactionID":"T113",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "transactionNumber": "T1113",
            "creationDate": 1449132083084,
            "transactionDate": 1449932083084,
            "referenceKeyID": "12",
            "referenceType": "ORDER_SALE",
            "referenceNumber": "4324234",
            "debitAmount": 110.00,
            "creditAmount": 0,
            "balance": -220.00,
            "description": "Sales Order",
            "language": "EN_AU",
            "currencyCode": "AUD"
        },
        {
            "keyTransactionID":"114",
            "transactionID":"T114",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "transactionNumber": "T1114",
            "creationDate": 1449132083084,
            "transactionDate": 1449932083084,
            "referenceKeyID": "124",
            "referenceType": "CREDIT",
            "referenceNumber": "654654",
            "debitAmount": 0,
            "creditAmount": 330.00,
            "balance": 110.00,
            "description": "Credit applied against invoice #1234123",
            "language": "EN_AU",
            "currencyCode": "AUD"
        },
        {
            "keyTransactionID":"115",
            "transactionID":"T115",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "transactionNumber": "T1115",
            "creationDate": 1449132083084,
            "transactionDate": 1449932083084,
            "referenceKeyID": "114",
            "referenceType": "PAYMENT",
            "referenceNumber": "654645445",
            "debitAmount": 0,
            "creditAmount": 100.00,
            "balance": 210.00,
            "description": "Payment applied to the customer account",
            "language": "EN_AU",
            "currencyCode": "AUD"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of invoices for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry invoice data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "invoiceRecords":
     [
        {
            "keyInvoiceID":"111",
            "invoiceID":"INVOICE-111",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalPaid": 110.00,
            "balance": 0
        },
        {
            "keyInvoiceID":"112",
            "invoiceID":"INVOICE-112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "invoiceNumber": "1234123",
            "creationDate": 1449132083084,
            "invoiceDate": 1449932083084,
            "dueDate": 1449932083084,
            "expectedDeliveryDate": 1449982083084,
            "deliveredDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "ORDER-123",
            "referenceType": "ORDER",
            "referenceNumber": "123-1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single invoice for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry invoice detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "invoiceRecords":
     [
        {
            "keyInvoiceID":"112",
            "invoiceID":"INVOICE-112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "invoiceNumber": "1234123",
            "creationDate": 1449132083084,
            "invoiceDate": 1449932083084,
            "dueDate": 1449932083084,
            "expectedDeliveryDate": 1449982083084,
            "deliveredDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "ORDER-123",
            "referenceType": "ORDER",
            "referenceNumber": "123-1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance",
            "lines":
            [
                {
                    "keyInvoiceLineID":"11234122"
                },
                {
                    "keyInvoiceLineID":"11234123",
                    "lineItemID":"PROD1234453",
                    "lineItemCode":"PROD-123",
                    "lineType":"ITEM",
                    "description":"Tea Towels",
                    "language":"EN_AU",
                    "unit":"EACH",
                    "quantityOrdered": 22,
                    "quantityDelivered": 22,
                    "quantityBackordered": 0,
                    "priceExTax": 300.00,
                    "priceIncTax": 330.00,
                    "priceTax": 30.00,
                    "totalPriceExTax":6600.00,
                    "totalPriceIncTax": 7260.00,
                    "totalPriceTax": 660,
                    "taxCode":"GST",
                    "keyLocationID":"456",
                    "locationCode":"LCT-456",
                    "currencyCode":"AUD",
                    "referenceLineItemCode":"",
                    "referenceLineCode":""
                },
                {
                    "keyInvoiceLineID":"11234124",
                    "lineType":"TEXT",
                    "description":"Tea towels are packed into cardboard boxes"
                }
            ]
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of sales orders for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry sales order data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "orderSaleRecords":
     [
        {
            "keyOrderSaleID":"11",
            "orderID":"SALESORDER-11",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "totalExTax": 400.00,
            "totalIncTax": 440.00,
            "totalTax": 40.00,
            "totalPaid": 0,
            "balance": 440.00
        },
        {
            "keyOrderSaleID":"12",
            "orderID":"SALESORDER-12",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "orderNumber": "4324234",
            "creationDate": 1449132083084,
            "orderDate": 1449932083084,
            "dueDate": 1449932083084,
            "expectedDeliveryDate": 1449982083084,
            "deliveredDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single sales order for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry sales order detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "orderSaleRecords":
     [
        {
            "keyOrderSaleID":"112",
            "orderID":"SALESORDER-112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "orderNumber": "4324234",
            "creationDate": 1449132083084,
            "orderDate": 1449932083084,
            "dueDate": 1449932083084,
            "expectedDeliveryDate": 1449982083084,
            "deliveredDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance",
            "lines":
            [
                {
                    "keyOrderSaleLineID":"4122"
                },
                {
                    "keyOrderSaleLineID":"4123",
                    "lineItemID":"PROD1234453",
                    "lineItemCode":"PROD-123",
                    "lineType":"ITEM",
                    "description":"Tea Towels",
                    "language":"EN_AU",
                    "unit":"EACH",
                    "quantityOrdered": 22,
                    "quantityDelivered": 22,
                    "quantityBackordered": 0,
                    "priceExTax": 300.00,
                    "priceIncTax": 330.00,
                    "priceTax": 30.00,
                    "totalPriceExTax":6600.00,
                    "totalPriceIncTax": 7260.00,
                    "totalPriceTax": 660,
                    "taxCode":"GST",
                    "keyLocationID":"456",
                    "locationCode":"LCT-456",
                    "currencyCode":"AUD",
                    "referenceLineItemCode":"",
                    "referenceLineCode":""
                },
                {
                    "keyInvoiceLineID":"11234124",
                    "lineType":"TEXT",
                    "description":"Tea towels are packed into cardboard boxes"
                }
            ]
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of credits for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry credit data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "creditRecords":
     [
        {
            "keyCreditID":"123",
            "creditID":"CREDIT-123",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "totalExTax": 400.00,
            "totalIncTax": 440.00,
            "totalTax": 40.00,
            "totalPaid": 0
        },
        {
            "keyCreditID":"124",
            "creditID":"CREDIT-124",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "creditNumber": "654654",
            "creationDate": 1449132083084,
            "creditDate": 1449932083084,
            "appliedAmount": 330.00,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 330.00,
            "totalIncTax": 300.00,
            "totalTax": 30.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "language": "EN_AU",
            "comment": "Credit applied against invoice #1234123"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single credit for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry credit detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "creditRecords":
     [
        {
            "keyCreditID":"124",
            "creditID":"CREDIT-124",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "creditNumber": "654654",
            "creationDate": 1449132083084,
            "creditDate": 1449932083084,
            "appliedAmount": 330.00,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 330.00,
            "totalIncTax": 300.00,
            "totalTax": 30.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "language": "EN_AU",
            "comment": "Credit applied against invoice #1234123",
            "lines":
            [
                {
                    "keyCreditLineID":"4122"
                },
                {
                    "keyCreditLineID":"4123",
                    "lineItemID":"123123",
                    "lineItemCode":"CREDIT-123123",
                    "lineType":"ITEM",
                    "description":"Tea Towels",
                    "language":"EN_AU",
                    "referenceKeyID": "112",
                    "referenceType": "INVOICE",
                    "referenceNumber": "1234123",
                    "unit":"EACH",
                    "quantity": 1,
                    "priceExTax": 300.00,
                    "priceIncTax": 330.00,
                    "priceTax": 30.00,
                    "totalPriceExTax": 300.00,
                    "totalPriceIncTax": 330.00,
                    "totalPriceTax": 30.00,
                    "taxCode":"GST",
                    "currencyCode":"AUD"
                }
            ]
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of payments for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry payment data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "paymentRecords":
     [
        {
            "keyPaymentID":"113",
            "paymentID":"PAYMENT-123",
            "paymentNumber": "654645434",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004"
        },
        {
            "keyPaymentID":"114",
            "paymentID":"PAYMENT-124",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "paymentNumber": "654645445",
            "creationDate": 1449132083084,
            "paymentDate": 1449932083084,
            "appliedAmount": 330.00,
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "totalAmount": 100.00,
            "currencyCode": "AUD",
            "description": "",
            "language": "EN_AU",
            "comment": "Payment applied against invoice #1234123"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single payment for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry payment detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "paymentRecords":
     [
        {
            "keyPaymentID":"114",
            "paymentID":"PAYMENT-124",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "paymentNumber": "654645445",
            "creationDate": 1449132083084,
            "paymentDate": 1449932083084,
            "appliedAmount": 330.00,
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "totalAmount": 100.00,
            "currencyCode": "AUD",
            "description": "",
            "language": "EN_AU",
            "comment": "Payment applied against invoice #1234123",
            "lines":
            [
                {
                    "keyPaymentLineID":"4122"
                },
                {
                    "keyPaymentLineID":"4123",
                    "lineItemID":"5435",
                    "lineItemCode":"PAYMENT-5435",
                    "lineType":"ITEM",
                    "referenceKeyID": "112",
                    "referenceType": "INVOICE",
                    "referenceNumber": "1234123",
                    "description":"Payment for invoice #1234123",
                    "language":"EN_AU",
                    "currencyCode":"AUD",
                    "amount": 100.00
                }
            ]
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of back orders for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry back order data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "backOrderRecords":
     [
        {
            "keyBackOrderID":"11",
            "backOrderID":"SALESORDER-11",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "totalExTax": 400.00,
            "totalIncTax": 440.00,
            "totalTax": 40.00,
            "totalPaid": 0,
            "balance": 440.00
        },
        {
            "keyBackOrderID":"12",
            "backOrderID":"SALESORDER-12",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "backOrderNumber": "4324234",
            "creationDate": 1449132083084,
            "backOrderDate": 1449932083084,
            "dueDate": 1449932083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "12",
            "referenceType": "ORDER_SALE",
            "referenceNumber": "4324234",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single back order for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry back order detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "backOrderRecords":
     [
        {
            "keyBackOrderID":"112",
            "backOrderID":"BACKORDER-112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "backOrderNumber": "4324234",
            "creationDate": 1449132083084,
            "backOrderDate": 1449932083084,
            "dueDate": 1449932083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "12",
            "referenceType": "ORDER_SALE",
            "referenceNumber": "4324234",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance",
            "lines":
            [
                {
                    "keyBackOrderLineID":"4122"
                },
                {
                    "keyBackOrderLineID":"4123",
                    "lineItemID":"PROD1234453",
                    "lineItemCode":"PROD-123",
                    "lineType":"ITEM",
                    "description":"Tea Towels",
                    "language":"EN_AU",
                    "unit":"EACH",
                    "quantityOrdered": 22,
                    "quantityDelivered": 22,
                    "quantityBackordered": 0,
                    "priceExTax": 300.00,
                    "priceIncTax": 330.00,
                    "priceTax": 30.00,
                    "totalPriceExTax":6600.00,
                    "totalPriceIncTax": 7260.00,
                    "totalPriceTax": 660,
                    "taxCode":"GST",
                    "keyLocationID":"456",
                    "locationCode":"LCT-456",
                    "currencyCode":"AUD",
                    "referenceLineItemCode":"",
                    "referenceLineCode":""
                },
                {
                    "keyBackOrderLineID":"11234124",
                    "lineType":"TEXT",
                    "description":"Tea towels are packed into cardboard boxes"
                }
            ]
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, displaying a list of quotes for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry quote data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 2,
    "configs":{},
    "quoteRecords":
     [
        {
            "keyQuoteID":"11",
            "quoteID":"QUOTE-11",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "totalExTax": 400.00,
            "totalIncTax": 440.00,
            "totalTax": 40.00,
            "totalPaid": 0,
            "balance": 440.00
        },
        {
            "keyQuoteID":"12",
            "quoteID":"QUOTE-12",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "quoteNumber": "4324234",
            "creationDate": 1449132083084,
            "quoteDate": 1449932083084,
            "expiryDate": 1449932083084,
            "expectedDeliveryDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance"
        }
    ]
}
An example of the Customer Account Enqury Standards document in its JSON serialised form, containing the detail of a single quote for a customer account
{
    "version": 1.4,
    "resultStatus": 1,
    "message":"The customer account enquiry sales order detail data has been successfully obtained.",
    "dataTransferMode": "COMPLETE",
    "totalDataRecords": 1,
    "configs":{},
    "quoteRecords":
     [
        {
            "keyQuoteID":"112",
            "quoteID":"QUOTE-112",
            "keyCustomerAccountID":"222",
            "customerAccountCode":"CUST004",
            "quoteNumber": "4324234",
            "creationDate": 1449132083084,
            "quoteDate": 1449932083084,
            "dueDate": 1449932083084,
            "expiryDate": 1449982083084,
            "keyLocationID": "456",
            "locationCode": "LCT-456",
            "locationLabel": "Warehouse",
            "locationType": "WAREHOUSE",
            "referenceKeyID": "112",
            "referenceType": "INVOICE",
            "referenceNumber": "1234123",
            "customerReference": "PO-12345",
            "salesRepCode": "JD",
            "salesRepName": "John Doe",
            "deliveryContact": "Lee",
            "deliveryOrgName": "Lee's Business Pty Ltd",
            "deliveryAddress1": "22",
            "deliveryAddress2": "Bourkie Street",
            "deliveryAddress3": "Melbourne",
            "deliveryStateProvince": "Victoria",
            "deliveryCountry": "Australia",
            "deliveryCountryCodeISO2": "AU",
            "deliveryCountryCodeISO3": "AUS",
            "deliveryPostcode": "3000",
            "billingContact": "Tom",
            "billingOrgName": "Lee's Business Pty Ltd",
            "billingAddress1": "15",
            "billingAddress2": "Bourkie Street",
            "billingAddress3": "Melbourne",
            "billingStateProvince": "Victoria",
            "billingCountry": "Australia",
            "billingCountryCodeISO2": "AU",
            "billingCountryCodeISO3": "AUS",
            "billingPostcode": "3000",
            "taxNumber": "123 12332 123",
            "taxLabel": "GST",
            "taxRate": 10,
            "totalExTax": 100.00,
            "totalIncTax": 110.00,
            "totalTax": 10.00,
            "totalFreightIncTax": 11.00,
            "totalFreightExTax": 10.00,
            "totalExtraChargesIncTax": 1.10,
            "totalExtraChargesExTax": 1.00,
            "totalDiscountsIncTax": 220.00,
            "totalDiscountsExTax": 22.00,
            "totalLeviesIncTax": 22.00,
            "totalLeviesExTax": 20.00,
            "totalPaid": 50.00,
            "balance": 60.00,
            "currencyCode": "AUD",
            "totalQuantity": 3,
            "description": "",
            "freightCarrierCode": "ACME-FREIGHT-001",
            "freightCarrierName": "ACME Freight Shippers",
            "freightSystemRefCode": "SHIP-SYS",
            "freightCarrierConsignCode": "CON-23124123",
            "freightCarrierTrackingCode": "34325-25243-24343",
            "freightCarrierServiceCode": "EXPRESS-24",
            "freightCarrierAccountCode": "ACME-001",
            "language": "EN_AU",
            "comment": "Please leave goods by the back entrance",
            "lines":
            [
                {
                    "keyOrderSaleLineID":"4122"
                },
                {
                    "keyQuoteLineID":"4123",
                    "lineItemID":"PROD1234453",
                    "lineItemCode":"PROD-123",
                    "lineType":"ITEM",
                    "description":"Tea Towels",
                    "language":"EN_AU",
                    "unit":"EACH",
                    "quantityQuoted": 22,
                    "priceExTax": 300.00,
                    "priceIncTax": 330.00,
                    "priceTax": 30.00,
                    "totalPriceExTax":6600.00,
                    "totalPriceIncTax": 7260.00,
                    "totalPriceTax": 660,
                    "taxCode":"GST",
                    "keyLocationID":"456",
                    "locationCode":"LCT-456",
                    "currencyCode":"AUD",
                    "referenceLineItemCode":"",
                    "referenceLineCode":""
                },
                {
                    "keyQuoteLineID":"11234124",
                    "lineType":"TEXT",
                    "description":"Tea towels are packed into cardboard boxes"
                }
            ]
        }
    ]
}
See Also