TAG LINE
TAG LINE
SMALL TITLE

State

(API Version v6)


What can you do with State?

  • GET State/
    Retrieve all of the State objects.

  • GET State/Paged
    Retrieve all of the State objects in a paged fashion.

  • GET State/{id}
    Retrieve an instance of the State object by its ID.


Properties

Property Details
identity
READ-ONLY
"identity": 13
Type: Number
This is the unique numeric identifier for the State
countryId
"countryId": 24
Type: Number
Unique identifier for the associated Country object.
countryName
"countryName": "Sample Name"
Type: String
The name of the object associated with the countryId property.
name
"name": "Hello World"
Type: String
sortOrder
"sortOrder": 10
Type: Number
code
"code": "Hello World"
Type: String
isVisible
"isVisible": true
Type: Boolean
ownerId
READ-ONLY
"ownerId": 19
Type: Number
Unique identifier for the associated Owner object.
ownerName
READ-ONLY
"ownerName": "Sample Name"
Type: String
The name of the object associated with the ownerId property.


End Points

GETState/
Retrieve all of the State objects.
Retrieve all of the State objects.
GET State/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "countryId": 10,
            "countryName": "Sample Text Data",
            "name": "Sample Text Data",
            "sortOrder": 13,
            "code": "Sample Text Data",
            "isVisible": true,
            "ownerId": 9,
            "ownerName": "Sample Text Data"
        }
    ]
}
GETState/Paged
Retrieve all of the State objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the State objects in a paged fashion.
GET State/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "countryId": 14,
                "countryName": "Sample Text Data",
                "name": "Sample Text Data",
                "sortOrder": 10,
                "code": "Sample Text Data",
                "isVisible": true,
                "ownerId": 5,
                "ownerName": "Sample Text Data"
            }
        ]
    }
}
GETState/{id}
Retrieve an instance of the State object by its ID.
{id}Unique identifier for the State object.
Retrieve an instance of the State object by its ID.
GET State/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "countryId": 23,
        "countryName": "Sample Text Data",
        "name": "Sample Text Data",
        "sortOrder": 14,
        "code": "Sample Text Data",
        "isVisible": true,
        "ownerId": 13,
        "ownerName": "Sample Text Data"
    }
}