Customer Header Record
This documentation defines the Customer Header Record (ARCUSTHD) schema fields.
Please Note This documentation defines the most relevant fields. Treat the response from the View Table Schema (
XMGETFMT) endpoint as the authoritative field list for any specific site.
Date formats
NTD is a timestamp format used by DICE. NTD dates are used when defining time frames within endpoint calls. See the Date Format documentation for information on converting NTD to UNIX and vice versa if needed.
Field definitions
| # | Name | Description | Length | Padding Type |
|---|---|---|---|---|
| 1 | AR_NUMBER | The unique accounting identifier assigned to the customer. | 10 | Pad with trailing spaces. |
| 2 | BRANCH_ID | The ID of the branch the customer belongs to. | 3 | Pad with trailing spaces. |
| 3 | OPEN_ORDER_AMT | The sum total of the customer’s current outstanding balance. | 6 | Pad with trailing spaces. |
| 4 | CURRENT_BALANCE | The sum total of the customer’s open invoice amounts. | 6 | Pad with trailing spaces. |
| 5 | PERIOD1_BALANCE | The sum total of open invoices dated during the first billing period. | 6 | Pad with trailing spaces. |
| 6 | PERIOD2_BALANCE | The sum total of open invoices dated during the second billing period. | 6 | Pad with trailing spaces. |
| 7 | PERIOD3_BALANCE | The sum total of open invoices dated during the third billing period. | 6 | Pad with trailing spaces. |
| 8 | PERIOD4_BALANCE | The sum total of open invoices dated during the fourth billing period. | 6 | Pad with trailing spaces. |
| 9 | PASTDO_BALANCE | The sum total of the customer’s past due balance. | 6 | Pad with trailing spaces. |
| 10 | PASTDO1_BALANCE | The sum total of the customer’s past due balance applied to the first billing period. | 6 | Pad with trailing spaces. |
| 11 | PASTDO2_BALANCE | The sum total of the customer’s past due balance applied to the second billing period. | 6 | Pad with trailing spaces. |
| 12 | PASTDO3_BALANCE | The sum total of the customer’s past due balance applied to the third billing period. | 6 | Pad with trailing spaces. |
| 13 | PASTDO4_BALANCE | The sum total of the customer’s past due balance applied to the fourth billing period. | 6 | Pad with trailing spaces. |
| 14 | MSR_AMOUNT | The sum total of the customer’s open invoices dated later than the fourth billing period. | 6 | Pad with trailing spaces. |
| 15 | NTD_REAGE_DATE | NTD date on which this customer should be re-aged to calculate the above dollar fields. | 6 | Pad with trailing spaces. |
| 16 | CUSTOMER_TYPE | The type code assigned to the customer to determine which customer group they belong to. | 6 | Pad with trailing spaces. |
| 17 | ASSIGN_OPR | The collection operator assigned to the customer. | 3 | Pad with trailing spaces. |
| 18 | ACTIVE | Determines if the customer is active within the system. Accepts: Y or N. | 1 | Pad with trailing spaces. |
| 19 | DISCONTINUANCE | If applicable, determines the reason the customer has been slated for deactivation. | 1 | Pad with trailing spaces. |
| 20 | NTD_DISC_DATE | If applicable, the NTD date the customer will become inactive within the system. | 6 | Pad with trailing spaces. |
| 21 | CYCLE_BILL | The cycle code that groups customers by their billing schedule. | 2 | Pad with trailing spaces. |
| 22 | BILLING_STATUS | Determines if the customer has recurring lines. R: Yes, the customer has recurring lines. N: No, the customer does not have recurring lines. | 1 | Pad with trailing spaces. |
| 23 | RATE_INHIBIT | Determines if the customer should not receive rate increases. Accepts: Y or N. | 1 | Pad with trailing spaces. |
| 24 | CREDIT_CODE | The customer’s credit rating. | 6 | Pad with trailing spaces. |
| 25 | NTD_OLDEST_INVOICE | The NTD date of the customer’s oldest open invoice. | 6 | Pad with trailing spaces. |
| 26 | TOTAL_INVOICES_PAID | The total number of invoices the customer has paid in full. | 3 | Pad with trailing spaces. |
| 27 | TOTAL_DAYS_TO_PAY | The average number of days it takes the customer to pay invoices after they are issued. | 4 | Pad with trailing spaces. |
| 28 | REASON_CODE | The default reason used to describe why rate changes are made on this customer. | 1 | Pad with trailing spaces. |
| 29 | NTD_OLDEST_CHARGE | The NTD date of the customer’s oldest positive invoice. | 6 | Pad with trailing spaces. |
Example request
curl --request GET \
--url 'https://global-rest.ci.matrixmcloud.com/rest/rest.php?dataSource=dice&*view=arcusthd&*limit=1&*blanks=all' \
--header 'X-DICE-APPKEY: {{X-DICE-APPKEY}}' \
--header 'X-DICE-USERNAME: {{X-DICE-USERNAME}}' \
--header 'X-DICE-DATE: {{X-DICE-DATE}}' \
--header 'X-DICE-NONCE: {{X-DICE-NONCE}}' \
--header 'X-DICE-DIGEST: {{X-DICE-DIGEST}}' \
--header 'Accept: application/json' \
Example response
{
"ARCUSTHD": [
{
"AR_NUMBER": "0000000010",
"BRANCH_ID": "PRO",
"OPEN_ORDER_AMT": 728.48,
"CURRENT_BALANCE": 0,
"PERIOD1_BALANCE": 0,
"PERIOD2_BALANCE": 0,
"PERIOD3_BALANCE": 29.68,
"PERIOD4_BALANCE": 698.8,
"PASTDO_BALANCE": 0,
"PASTDO1_BALANCE": 0,
"PASTDO2_BALANCE": 0,
"PASTDO3_BALANCE": 29.68,
"PASTDO4_BALANCE": 698.8,
"MSR_AMOUNT": 29.94,
"NTD_REAGE_DATE": "739404",
"CUSTOMER_TYPE": "RES",
"ASSIGN_OPR": "",
"ACTIVE": "Y",
"DISCONTINUANCE": "",
"NTD_DISC_DATE": "",
"CYCLE_BILL": "00",
"BILLING_STATUS": "R",
"RATE_INHIBIT": "",
"CREDIT_CODE": "GOOD",
"NTD_OLDEST_INVOICE": "735510",
"TOTAL_INVOICES_PAID": 2,
"TOTAL_DAYS_TO_PAY": 198,
"REASON_CODE": "",
"NTD_OLDEST_CHARGE": "735510"
}
],
"totalRecords": 1
}