Value Type
LongValue
Wrapper type for long integer values
Wraps primitive:
longLongValue
A wrapper type that encapsulates a long (64-bit integer) value in API requests and responses.
Overview
LongValue is used in the Acumatica API to wrap 64-bit integer properties. This type is used for fields that may contain very large numbers.
JSON Structure
{
"value": 9223372036854775807
}
Examples
Reading a LongValue
{
"RecordID": {
"value": 1234567890123
}
}
Setting a LongValue
{
"RecordID": {
"value": 9876543210987
}
}
Properties
| Property | Type | Description |
|---|---|---|
| value | long | 64-bit signed integer |
| error | string | Error message describing validation or processing issues with this field |
Error Handling
All value wrapper types inherit an error property that contains a description when there is an issue with the field. Always check this property when processing API responses.
Value Range
- Minimum: -9,223,372,036,854,775,808
- Maximum: 9,223,372,036,854,775,807
Common Fields Using LongValue
- Large record identifiers
- Timestamp values (as ticks)
- Large counter or sequence fields