TAG LINE
TAG LINE
SMALL TITLE

Discount Type

(API Version v10)


This system defined entity represents a list of different types of discounts. For example percentage or fixed.


What can you do with DiscountType?


Properties

Property Details
identity
READ-ONLY
"identity": 26
Type: Number
This is the unique numeric identifier for the DiscountType
name
READ-ONLY
"name": "Percentage"
Type: String
The system defined Discount Type.
sortOrder
READ-ONLY
"sortOrder": 11
Type: Number
Unused


End Points

GETDiscountType/
Retrieve all of the DiscountType objects.
Retrieve all of the DiscountType objects.
GET DiscountType/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "name": "Percentage",
            "sortOrder": 23
        }
    ]
}
GETDiscountType/Paged
Retrieve all of the DiscountType 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 DiscountType objects in a paged fashion.
GET DiscountType/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,
                "name": "Percentage",
                "sortOrder": 2
            }
        ]
    }
}
GETDiscountType/{id}
Retrieve an instance of the DiscountType object by its ID.
{id}Unique identifier for the DiscountType object.
Retrieve an instance of the DiscountType object by its ID.
GET DiscountType/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "name": "Percentage",
        "sortOrder": 18
    }
}