TAG LINE
SMALL TITLE

Account / Package / Service / Discount

(API Version v1)


What can you do with AccountPackageServiceDiscount?


Properties

Property Details
id
"id": 17
Type: Number
This is the unique numeric identifier for the AccountPackageServiceDiscount
accountPackageId
"accountPackageId": "Hello World"
Type: String
Unique identifier for the associated AccountPackage object.
serviceId
"serviceId": 5
Type: Number
Unique identifier for the associated Service object.
discountTypeId
"discountTypeId": 2
Type: Number
Unique identifier for the associated DiscountType object.
start
"start": "2005-04-11T14:56:24"
Type: Date
frequency
"frequency": 18
Type: Number
frequencyTypeId
"frequencyTypeId": 3
Type: Number
Unique identifier for the associated FrequencyType object.


Update Request Filters

When updating an object you use the update request header with the list of properties to update. Then you need only supply the new values in the body of your request. Please note, this header can only be used with PUT or PATCH requests.

Field List:

  • accountPackageId
  • serviceId
  • discountTypeId
  • start
  • frequency
  • frequencyTypeId

Patch Types

The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.

PATCH operations can be used as a standard API call or nested within the envelope of a DataFlow. Below you will find the child objects that can be updated as part of PATCH operations for the AccountPackageServiceDiscount object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

GETapi/v1/Account/Package/Service/Discount
Retrieve all of the AccountPackageServiceDiscount objects.
GETapi/v1/Account/Package/Service/Discount/Paged
Retreive all of the AccountPackageServiceDiscount objects in a paged fashion.
GETapi/v1/Account/Package/Service/Discount/{id:int}
Retrieve an instance of the AccountPackageServiceDiscount object by it's ID.
{id:int}Unique identifier for the AccountPackageServiceDiscount object.