TAG LINE
TAG LINE
SMALL TITLE

Account / SharePlan

(API Version v8)


A Share Plan assigned to an Account. A Share Plan is a way of pooling usage across multiple Services and Packages. This entity is essentially a linking object between a defined Share Plan and an Account.


What can you do with AccountSharePlan?


Properties

Property Details
identity
READ-ONLY
"identity": 2
Type: Number
This is the unique numeric identifier for the AccountSharePlan
usageBucketSharePlanId
"usageBucketSharePlanId": 21
Type: Number
Unique identifier for the associated UsageBucketSharePlan object.
usageBucketSharePlanName
"usageBucketSharePlanName": "Sample Name"
Type: String
The name of the object associated with the usageBucketSharePlanId property.
usageBucketShareLevelId
"usageBucketShareLevelId": 0
Type: Number
Unique identifier for the associated UsageBucketShareLevel object.
usageBucketShareLevelName
"usageBucketShareLevelName": "Sample Name"
Type: String
The name of the object associated with the usageBucketShareLevelId property.
accountId
"accountId": 11
Type: Number
Unique identifier for the associated Account object.
accountName
"accountName": "Sample Name"
Type: String
The name of the object associated with the accountId property.
accountServiceId
"accountServiceId": "Hello World"
Type: String
Unique identifier for the associated AccountService object.
accountServiceName
"accountServiceName": "Sample Name"
Type: String
The name of the object associated with the accountServiceId property.
isAvailable
READ-ONLY
"isAvailable": true
Type: Boolean
If the Share Plan is active.
sharePlanAccountPackageId
"sharePlanAccountPackageId": "Hello World"
Type: String
Unique identifier for the associated AccountPackage object.
sharePlanAccountPackageName
"sharePlanAccountPackageName": "Sample Name"
Type: String
The name of the object associated with the sharePlanAccountPackageId property.
sellingAccountPackageId
"sellingAccountPackageId": "Hello World"
Type: String
Unique identifier for the associated AccountPackage object.
sellingAccountPackageName
"sellingAccountPackageName": "Sample Name"
Type: String
The name of the object associated with the sellingAccountPackageId property.
bucketPriorityTieBreaker
"bucketPriorityTieBreaker": 26
Type: Number


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. Below you will find the child objects that can be updated as part of PATCH operations for the AccountSharePlan object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

DELETEAccount/SharePlan/{id}
Delete an instance of the AccountSharePlan object. Upon successful delete, this API will return a record of all of the related objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system.
{id}Unique identifier for the AccountSharePlan object.
Delete an instance of the AccountSharePlan object.
DELETE Account/SharePlan/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "delete",
    "results": {
        "totalCount": 4,
        "items": [
            {
                "identity": 1,
                "action": "deleted",
                "dtoTypeKey": "accountSharePlan"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETAccount/SharePlan/
Retrieve all of the AccountSharePlan objects.
Retrieve all of the AccountSharePlan objects.
GET Account/SharePlan/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "usageBucketSharePlanId": 8,
            "usageBucketSharePlanName": "Sample Text Data",
            "usageBucketShareLevelId": 25,
            "usageBucketShareLevelName": "Sample Text Data",
            "accountId": 21,
            "accountName": "Sample Text Data",
            "accountServiceId": "Sample Text Data",
            "accountServiceName": "Sample Text Data",
            "isAvailable": true,
            "sharePlanAccountPackageId": "Sample Text Data",
            "sharePlanAccountPackageName": "Sample Text Data",
            "sellingAccountPackageId": "Sample Text Data",
            "sellingAccountPackageName": "Sample Text Data",
            "bucketPriorityTieBreaker": 25
        }
    ]
}
GETAccount/SharePlan/Paged
Retrieve all of the AccountSharePlan 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 AccountSharePlan objects in a paged fashion.
GET Account/SharePlan/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,
                "usageBucketSharePlanId": 3,
                "usageBucketSharePlanName": "Sample Text Data",
                "usageBucketShareLevelId": 3,
                "usageBucketShareLevelName": "Sample Text Data",
                "accountId": 26,
                "accountName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "isAvailable": true,
                "sharePlanAccountPackageId": "Sample Text Data",
                "sharePlanAccountPackageName": "Sample Text Data",
                "sellingAccountPackageId": "Sample Text Data",
                "sellingAccountPackageName": "Sample Text Data",
                "bucketPriorityTieBreaker": 25
            }
        ]
    }
}
GETAccount/SharePlan/{accountSharePlanId}/UsageBucket/{usageBucketId}/Notification
Retrieve all of the AccountSharePlan objects.
Retrieve all of the AccountSharePlan objects.
GET Account/SharePlan/{accountSharePlanId}/UsageBucket/{usageBucketId}/Notification
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "usageBucketSharePlanId": 4,
            "usageBucketSharePlanName": "Sample Text Data",
            "usageBucketShareLevelId": 10,
            "usageBucketShareLevelName": "Sample Text Data",
            "accountId": 16,
            "accountName": "Sample Text Data",
            "accountServiceId": "Sample Text Data",
            "accountServiceName": "Sample Text Data",
            "isAvailable": true,
            "sharePlanAccountPackageId": "Sample Text Data",
            "sharePlanAccountPackageName": "Sample Text Data",
            "sellingAccountPackageId": "Sample Text Data",
            "sellingAccountPackageName": "Sample Text Data",
            "bucketPriorityTieBreaker": 24
        }
    ]
}
GETAccount/SharePlan/{id}
Retrieve an instance of the AccountSharePlan object by its ID.
{id}Unique identifier for the AccountSharePlan object.
Retrieve an instance of the AccountSharePlan object by its ID.
GET Account/SharePlan/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageBucketSharePlanId": 25,
        "usageBucketSharePlanName": "Sample Text Data",
        "usageBucketShareLevelId": 0,
        "usageBucketShareLevelName": "Sample Text Data",
        "accountId": 27,
        "accountName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "isAvailable": true,
        "sharePlanAccountPackageId": "Sample Text Data",
        "sharePlanAccountPackageName": "Sample Text Data",
        "sellingAccountPackageId": "Sample Text Data",
        "sellingAccountPackageName": "Sample Text Data",
        "bucketPriorityTieBreaker": 27
    }
}
GETAccount/SharePlan/{id}/Detail
Retrieve deep detail of the AccountSharePlan object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
{id}Unique identifier for the AccountSharePlan object.
Retrieve deep detail of the AccountSharePlan object by its ID.
GET Account/SharePlan/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageBucketSharePlanId": 22,
        "usageBucketSharePlanName": "Sample Text Data",
        "usageBucketShareLevelId": 10,
        "usageBucketShareLevelName": "Sample Text Data",
        "accountId": 19,
        "accountName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "isAvailable": true,
        "sharePlanAccountPackageId": "Sample Text Data",
        "sharePlanAccountPackageName": "Sample Text Data",
        "sellingAccountPackageId": "Sample Text Data",
        "sellingAccountPackageName": "Sample Text Data",
        "bucketPriorityTieBreaker": 26,
        "details": {
            "participation": [
                {
                    "identity": 38,
                    "accountSharePlanId": 20,
                    "serviceId": 78,
                    "serviceName": "Sample Text Data",
                    "packageId": 49,
                    "packageName": "Sample Text Data",
                    "dataParticipatingLimit": 98.06,
                    "dataUsageUnitId": 4,
                    "dataUsageUnitName": "Sample Text Data",
                    "timeParticipatingLimit": 17.49,
                    "timeUsageUnitId": 55,
                    "timeUsageUnitName": "Sample Text Data",
                    "countParticipatingLimit": 38.68,
                    "countUsageUnitId": 78,
                    "countUsageUnitName": "Sample Text Data",
                    "moneyParticipatingLimit": 45.14,
                    "moneyUsageUnitId": 5,
                    "moneyUsageUnitName": "Sample Text Data",
                    "quantity": 68
                }
            ],
            "accountServiceUsageBuckets": [
                {
                    "identity": 45,
                    "usageBucketId": 83,
                    "usageBucketName": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "refillFrequency": 80,
                    "refillFrequencyTypeId": 40,
                    "refillFrequencyTypeName": "Sample Text Data",
                    "effective": "2021-04-26T15:25:27.587Z",
                    "effectiveCancel": "2021-04-26T15:25:27.587Z",
                    "prorate": true,
                    "isInfiniteLastTier": true,
                    "isThresholdPerAccountService": true,
                    "usageBucketRefillTypeId": 20,
                    "usageBucketRefillTypeName": "Sample Text Data",
                    "expireAfterFrequency": 67,
                    "expireAfterFrequencyTypeId": 66,
                    "expireAfterFrequencyTypeName": "Sample Text Data",
                    "expireAfterRecurrence": 68,
                    "accountPackageActivation": true,
                    "isSharedAcrossPackage": true,
                    "overageUsageRatePlanId": 22,
                    "overageUsageRatePlanName": "Sample Text Data",
                    "details": {
                        "tiers": [
                            {
                                "identity": 77,
                                "usageBucketTierId": 4,
                                "accountServiceUsageBucketId": 43,
                                "threshold": 41.07,
                                "flatCharge": 5.51,
                                "usageUnitId": 70,
                                "usageUnitName": "Sample Text Data",
                                "money": 1.8
                            }
                        ],
                        "contributions": [
                            {
                                "identity": 14,
                                "accountSharePlanParticipationId": 38,
                                "accountServiceUsageBucketId": 69,
                                "isContributing": true,
                                "contributingAmount": 28.32,
                                "contributingUsageUnitId": 35,
                                "contributingUsageUnitName": "Sample Text Data"
                            }
                        ]
                    }
                }
            ],
            "sellingAccountPackage": {
                "accountId": 94,
                "accountName": "Sample Text Data",
                "created": "2021-04-26T15:25:27.587Z",
                "nextBill": "2021-04-26T15:25:27.587Z",
                "name": "Sample Text Data",
                "lastStatusChanged": "2021-04-26T15:25:27.587Z",
                "effective": "2021-04-26T15:25:27.587Z",
                "updated": "2021-04-26T15:25:27.587Z",
                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                "packageFrequencyId": 81,
                "packageFrequencyName": "Sample Text Data",
                "createdByUserId": 0,
                "createdByUserName": "Sample Text Data",
                "billDay": 20,
                "updatedByUserId": 88,
                "updatedByUserName": "Sample Text Data",
                "usageBillDay": 64,
                "activation": "2021-04-26T15:25:27.587Z",
                "finalBill": "2021-04-26T15:25:27.587Z",
                "lastBilled": "2021-04-26T15:25:27.587Z",
                "accountSharePlanId": 96,
                "lastUsageBilled": "2021-04-26T15:25:27.587Z",
                "accountProductCodeId": 74,
                "accountProductCodeName": "Sample Text Data",
                "packageCategoryId": 33,
                "packageCategoryName": "Sample Text Data",
                "chargeRecurringIfUsage": true,
                "updatedByPortalUserId": 6,
                "updatedByPortalUserName": "Sample Text Data",
                "pendingBillDay": 43,
                "pendingUsageBillDay": 50,
                "billCancelOptionTypeId": 25,
                "billCancelOptionTypeName": "Sample Text Data",
                "waiveEarlyTerminationFee": true,
                "billingActivationTypeId": 11,
                "billingActivationTypeName": "Sample Text Data",
                "quantity": 8,
                "isQuantityAllowed": true,
                "priceBookId": 29,
                "priceBookName": "Sample Text Data",
                "accountContractId": 16,
                "accountContractName": "Sample Text Data",
                "taxAddressId": 8,
                "taxAddressName": "Sample Text Data",
                "billedThrough": "2021-04-26T15:25:27.587Z",
                "usageBilledThrough": "2021-04-26T15:25:27.587Z",
                "details": {
                    "accountServices": [
                        {
                            "serviceId": 83,
                            "serviceName": "Sample Text Data",
                            "accountId": 9,
                            "accountName": "Sample Text Data",
                            "created": "2021-04-26T15:25:27.587Z",
                            "accountPackageName": "Sample Text Data",
                            "name": "Sample Text Data",
                            "amount": 6.25,
                            "updated": "2021-04-26T15:25:27.587Z",
                            "effective": "2021-04-26T15:25:27.587Z",
                            "posted": "2021-04-26T15:25:27.587Z",
                            "createdByUserId": 13,
                            "createdByUserName": "Sample Text Data",
                            "updatedByUserId": 76,
                            "updatedByUserName": "Sample Text Data",
                            "effectiveCancel": "2021-04-26T15:25:27.587Z",
                            "usageNextBill": "2021-04-26T15:25:27.587Z",
                            "usageFinalBill": "2021-04-26T15:25:27.587Z",
                            "finalBill": "2021-04-26T15:25:27.587Z",
                            "lastBilled": "2021-04-26T15:25:27.587Z",
                            "lastUsageBilled": "2021-04-26T15:25:27.587Z",
                            "addOnPackageFrequencyId": 23,
                            "addOnPackageFrequencyName": "Sample Text Data",
                            "billCancelOptionTypeId": 46,
                            "billCancelOptionTypeName": "Sample Text Data",
                            "isTaxInclusive": true,
                            "serviceTaxCategoryId": 80,
                            "serviceTaxCategoryName": "Sample Text Data",
                            "details": {
                                "temporalData": [
                                    {
                                        "accountServiceName": "Sample Text Data",
                                        "serviceStatusTypeId": 55,
                                        "serviceStatusTypeName": "Sample Text Data",
                                        "udrUsageIdentifier": "Sample Text Data",
                                        "start": "2021-04-26T15:25:27.587Z",
                                        "end": "2021-04-26T15:25:27.587Z",
                                        "updated": "2021-04-26T15:25:27.587Z"
                                    }
                                ],
                                "accountServiceUsageBuckets": [
                                    {
                                        "identity": 19,
                                        "usageBucketId": 84,
                                        "usageBucketName": "Sample Text Data",
                                        "accountServiceName": "Sample Text Data",
                                        "refillFrequency": 70,
                                        "refillFrequencyTypeId": 95,
                                        "refillFrequencyTypeName": "Sample Text Data",
                                        "effective": "2021-04-26T15:25:27.587Z",
                                        "effectiveCancel": "2021-04-26T15:25:27.587Z",
                                        "prorate": true,
                                        "isInfiniteLastTier": true,
                                        "isThresholdPerAccountService": true,
                                        "usageBucketRefillTypeId": 28,
                                        "usageBucketRefillTypeName": "Sample Text Data",
                                        "expireAfterFrequency": 26,
                                        "expireAfterFrequencyTypeId": 95,
                                        "expireAfterFrequencyTypeName": "Sample Text Data",
                                        "expireAfterRecurrence": 21,
                                        "accountPackageActivation": true,
                                        "isSharedAcrossPackage": true,
                                        "overageUsageRatePlanId": 77,
                                        "overageUsageRatePlanName": "Sample Text Data",
                                        "details": {
                                            "tiers": [
                                                {
                                                    "identity": 99,
                                                    "usageBucketTierId": 88,
                                                    "accountServiceUsageBucketId": 0,
                                                    "threshold": 71.87,
                                                    "flatCharge": 95.32,
                                                    "usageUnitId": 96,
                                                    "usageUnitName": "Sample Text Data",
                                                    "money": 3.98
                                                }
                                            ],
                                            "contributions": [
                                                {
                                                    "identity": 21,
                                                    "accountSharePlanParticipationId": 32,
                                                    "accountServiceUsageBucketId": 82,
                                                    "isContributing": true,
                                                    "contributingAmount": 17.89,
                                                    "contributingUsageUnitId": 63,
                                                    "contributingUsageUnitName": "Sample Text Data"
                                                }
                                            ]
                                        }
                                    }
                                ],
                                "discountTracking": [
                                    {
                                        "identity": 17,
                                        "accountServiceName": "Sample Text Data",
                                        "accountPackageServiceDiscountId": 23,
                                        "frequency": 32,
                                        "frequencyTypeId": 74,
                                        "frequencyTypeName": "Sample Text Data",
                                        "start": "2021-04-26T15:25:27.587Z",
                                        "lastProcessed": "2021-04-26T15:25:27.587Z",
                                        "finalized": "2021-04-26T15:25:27.587Z"
                                    }
                                ],
                                "discountPromoCodes": [
                                    {
                                        "identity": 19,
                                        "name": "Sample Text Data",
                                        "start": "2021-04-26T15:25:27.587Z",
                                        "generalLedgerId": 96,
                                        "isFreeTrial": true,
                                        "isNegativeAllowed": true
                                    }
                                ]
                            }
                        }
                    ],
                    "currentRatePlan": {
                        "identity": 23,
                        "name": "Sample Text Data",
                        "displayName": "Sample Text Data",
                        "start": "2021-04-26T15:25:27.587Z"
                    },
                    "transitionPrices": [
                        {
                            "identity": 19,
                            "accountPackageName": "Sample Text Data",
                            "packageServicePricePlanId": 40,
                            "serviceTransitionId": 42,
                            "serviceTransitionName": "Sample Text Data",
                            "amount": 40.39,
                            "chargeServiceId": 42,
                            "chargeServiceName": "Sample Text Data",
                            "penaltyCharge": 42
                        }
                    ],
                    "nonRecurringPrices": [
                        {
                            "identity": 62,
                            "accountPackageName": "Sample Text Data",
                            "packageServicePricePlanId": 2,
                            "pricePlanTierTypeId": 12,
                            "pricePlanTierTypeName": "Sample Text Data",
                            "amount": 33.26,
                            "details": {
                                "tiers": [
                                    {
                                        "identity": 24,
                                        "accountPackageNonRecurringPriceId": 38,
                                        "amount": 71.64,
                                        "threshold": 8
                                    }
                                ]
                            }
                        }
                    ],
                    "recurringPrices": [
                        {
                            "identity": 50,
                            "accountPackageName": "Sample Text Data",
                            "packageServicePricePlanId": 79,
                            "serviceStatusTypeId": 8,
                            "serviceStatusTypeName": "Sample Text Data",
                            "amount": 44.51,
                            "pricePlanTierTypeId": 27,
                            "pricePlanTierTypeName": "Sample Text Data",
                            "details": {
                                "identity": 47,
                                "accountPackageRecurringPriceId": 70,
                                "threshold": 30,
                                "amount": 5.24
                            }
                        }
                    ],
                    "serviceDiscounts": [
                        {
                            "identity": 16,
                            "accountPackageName": "Sample Text Data",
                            "serviceId": 83,
                            "serviceName": "Sample Text Data",
                            "start": "2021-04-26T15:25:27.587Z",
                            "packageServiceDiscountId": 27,
                            "generalLedgerId": 3,
                            "generalLedgerName": "Sample Text Data",
                            "discountName": "Sample Text Data",
                            "isProrated": true,
                            "isFreeTrial": true,
                            "isNegativeAllowed": true,
                            "details": {
                                "identity": 48,
                                "accountPackageServiceDiscountId": 11,
                                "accountPackageServiceDiscountName": "Sample Text Data",
                                "serviceStatusTypeId": 13,
                                "serviceStatusTypeName": "Sample Text Data",
                                "discountPromoCodeId": 0,
                                "discountPromoCodeName": "Sample Text Data",
                                "discountId": 31,
                                "details": {
                                    "discountAmounts": [
                                        {
                                            "identity": 32,
                                            "discountId": 1,
                                            "discountTypeId": 98,
                                            "discountTypeName": "Sample Text Data",
                                            "frequency": 94,
                                            "frequencyTypeId": 13,
                                            "frequencyTypeName": "Sample Text Data",
                                            "amount": 87.38,
                                            "appliedOrder": 66
                                        }
                                    ]
                                }
                            }
                        }
                    ],
                    "temporalData": [
                        {
                            "accountPackageName": "Sample Text Data",
                            "accountPackageStatusTypeId": 52,
                            "accountPackageStatusTypeName": "Sample Text Data",
                            "start": "2021-04-26T15:25:27.587Z",
                            "end": "2021-04-26T15:25:27.587Z",
                            "updated": "2021-04-26T15:25:27.587Z"
                        }
                    ],
                    "latestPackageTerm": {
                        "accountPackageName": "Sample Text Data",
                        "termId": 49,
                        "name": "Sample Text Data",
                        "isActive": true,
                        "frequency": 57,
                        "frequencyTypeId": 6,
                        "frequencyTypeName": "Sample Text Data",
                        "penaltyServiceId": 96,
                        "penaltyServiceName": "Sample Text Data",
                        "chargeRemainder": true,
                        "termPenaltyAmount": 58.91,
                        "contractStart": "2021-04-26T15:25:27.587Z",
                        "termRenewalTypeId": 44,
                        "renewTermId": 40,
                        "renewTermStart": "2021-04-26T15:25:27.587Z",
                        "contractEnd": "2021-04-26T15:25:27.587Z"
                    },
                    "packageTerms": [
                        {
                            "accountPackageName": "Sample Text Data",
                            "termId": 47,
                            "termName": "Sample Text Data",
                            "termStart": "2021-04-26T15:25:27.587Z",
                            "termRenewalTypeId": 53,
                            "termRenewalTypeName": "Sample Text Data",
                            "renewTermId": 15,
                            "renewTermName": "Sample Text Data",
                            "renewTermStart": "2021-04-26T15:25:27.587Z",
                            "endDate": "2021-04-26T15:25:27.587Z"
                        }
                    ],
                    "taxAddress": {
                        "identity": 56,
                        "name": "Sample Text Data",
                        "isShared": true,
                        "accountId": 10,
                        "accountName": "Sample Text Data",
                        "addressId": 17,
                        "created": "2021-04-26T15:25:27.587Z",
                        "updated": "2021-04-26T15:25:27.587Z",
                        "saveTaxAddressOnInvoicer": true,
                        "address1": "Sample Text Data",
                        "address2": "Sample Text Data",
                        "stateId": 58,
                        "stateName": "Sample Text Data",
                        "stateCode": "Sample Text Data",
                        "countryId": 49,
                        "countryName": "Sample Text Data",
                        "countryCode": "Sample Text Data",
                        "zipCode": "Sample Text Data",
                        "cityName": "Sample Text Data",
                        "taxJurisdictionCodeUpdated": "2021-04-26T15:25:27.587Z",
                        "isIncorporated": true
                    }
                }
            },
            "addOnAccountPackages": [
                {
                    "accountId": 94,
                    "accountName": "Sample Text Data",
                    "created": "2021-04-26T15:25:27.587Z",
                    "nextBill": "2021-04-26T15:25:27.587Z",
                    "name": "Sample Text Data",
                    "lastStatusChanged": "2021-04-26T15:25:27.587Z",
                    "effective": "2021-04-26T15:25:27.587Z",
                    "updated": "2021-04-26T15:25:27.587Z",
                    "effectiveCancel": "2021-04-26T15:25:27.587Z",
                    "packageFrequencyId": 68,
                    "packageFrequencyName": "Sample Text Data",
                    "createdByUserId": 7,
                    "createdByUserName": "Sample Text Data",
                    "billDay": 44,
                    "updatedByUserId": 13,
                    "updatedByUserName": "Sample Text Data",
                    "usageBillDay": 92,
                    "activation": "2021-04-26T15:25:27.587Z",
                    "finalBill": "2021-04-26T15:25:27.587Z",
                    "lastBilled": "2021-04-26T15:25:27.587Z",
                    "accountSharePlanId": 28,
                    "lastUsageBilled": "2021-04-26T15:25:27.587Z",
                    "accountProductCodeId": 46,
                    "accountProductCodeName": "Sample Text Data",
                    "packageCategoryId": 11,
                    "packageCategoryName": "Sample Text Data",
                    "chargeRecurringIfUsage": true,
                    "updatedByPortalUserId": 38,
                    "updatedByPortalUserName": "Sample Text Data",
                    "pendingBillDay": 49,
                    "pendingUsageBillDay": 55,
                    "billCancelOptionTypeId": 87,
                    "billCancelOptionTypeName": "Sample Text Data",
                    "waiveEarlyTerminationFee": true,
                    "billingActivationTypeId": 63,
                    "billingActivationTypeName": "Sample Text Data",
                    "quantity": 61,
                    "isQuantityAllowed": true,
                    "priceBookId": 90,
                    "priceBookName": "Sample Text Data",
                    "accountContractId": 91,
                    "accountContractName": "Sample Text Data",
                    "taxAddressId": 35,
                    "taxAddressName": "Sample Text Data",
                    "billedThrough": "2021-04-26T15:25:27.587Z",
                    "usageBilledThrough": "2021-04-26T15:25:27.587Z",
                    "details": {
                        "accountServices": [
                            {
                                "serviceId": 49,
                                "serviceName": "Sample Text Data",
                                "accountId": 85,
                                "accountName": "Sample Text Data",
                                "created": "2021-04-26T15:25:27.587Z",
                                "accountPackageName": "Sample Text Data",
                                "name": "Sample Text Data",
                                "amount": 84.65,
                                "updated": "2021-04-26T15:25:27.587Z",
                                "effective": "2021-04-26T15:25:27.587Z",
                                "posted": "2021-04-26T15:25:27.587Z",
                                "createdByUserId": 76,
                                "createdByUserName": "Sample Text Data",
                                "updatedByUserId": 23,
                                "updatedByUserName": "Sample Text Data",
                                "effectiveCancel": "2021-04-26T15:25:27.587Z",
                                "usageNextBill": "2021-04-26T15:25:27.587Z",
                                "usageFinalBill": "2021-04-26T15:25:27.587Z",
                                "finalBill": "2021-04-26T15:25:27.587Z",
                                "lastBilled": "2021-04-26T15:25:27.587Z",
                                "lastUsageBilled": "2021-04-26T15:25:27.587Z",
                                "addOnPackageFrequencyId": 1,
                                "addOnPackageFrequencyName": "Sample Text Data",
                                "billCancelOptionTypeId": 72,
                                "billCancelOptionTypeName": "Sample Text Data",
                                "isTaxInclusive": true,
                                "serviceTaxCategoryId": 86,
                                "serviceTaxCategoryName": "Sample Text Data",
                                "details": {
                                    "temporalData": [
                                        {
                                            "accountServiceName": "Sample Text Data",
                                            "serviceStatusTypeId": 69,
                                            "serviceStatusTypeName": "Sample Text Data",
                                            "udrUsageIdentifier": "Sample Text Data",
                                            "start": "2021-04-26T15:25:27.587Z",
                                            "end": "2021-04-26T15:25:27.587Z",
                                            "updated": "2021-04-26T15:25:27.587Z"
                                        }
                                    ],
                                    "accountServiceUsageBuckets": [
                                        {
                                            "identity": 92,
                                            "usageBucketId": 25,
                                            "usageBucketName": "Sample Text Data",
                                            "accountServiceName": "Sample Text Data",
                                            "refillFrequency": 15,
                                            "refillFrequencyTypeId": 70,
                                            "refillFrequencyTypeName": "Sample Text Data",
                                            "effective": "2021-04-26T15:25:27.587Z",
                                            "effectiveCancel": "2021-04-26T15:25:27.587Z",
                                            "prorate": true,
                                            "isInfiniteLastTier": true,
                                            "isThresholdPerAccountService": true,
                                            "usageBucketRefillTypeId": 72,
                                            "usageBucketRefillTypeName": "Sample Text Data",
                                            "expireAfterFrequency": 8,
                                            "expireAfterFrequencyTypeId": 19,
                                            "expireAfterFrequencyTypeName": "Sample Text Data",
                                            "expireAfterRecurrence": 19,
                                            "accountPackageActivation": true,
                                            "isSharedAcrossPackage": true,
                                            "overageUsageRatePlanId": 48,
                                            "overageUsageRatePlanName": "Sample Text Data",
                                            "details": {
                                                "tiers": [
                                                    {
                                                        "identity": 94,
                                                        "usageBucketTierId": 41,
                                                        "accountServiceUsageBucketId": 98,
                                                        "threshold": 85.36,
                                                        "flatCharge": 18,
                                                        "usageUnitId": 32,
                                                        "usageUnitName": "Sample Text Data",
                                                        "money": 8.34
                                                    }
                                                ],
                                                "contributions": [
                                                    {
                                                        "identity": 3,
                                                        "accountSharePlanParticipationId": 3,
                                                        "accountServiceUsageBucketId": 59,
                                                        "isContributing": true,
                                                        "contributingAmount": 27.12,
                                                        "contributingUsageUnitId": 48,
                                                        "contributingUsageUnitName": "Sample Text Data"
                                                    }
                                                ]
                                            }
                                        }
                                    ],
                                    "discountTracking": [
                                        {
                                            "identity": 64,
                                            "accountServiceName": "Sample Text Data",
                                            "accountPackageServiceDiscountId": 2,
                                            "frequency": 40,
                                            "frequencyTypeId": 41,
                                            "frequencyTypeName": "Sample Text Data",
                                            "start": "2021-04-26T15:25:27.587Z",
                                            "lastProcessed": "2021-04-26T15:25:27.587Z",
                                            "finalized": "2021-04-26T15:25:27.587Z"
                                        }
                                    ],
                                    "discountPromoCodes": [
                                        {
                                            "identity": 61,
                                            "name": "Sample Text Data",
                                            "start": "2021-04-26T15:25:27.587Z",
                                            "generalLedgerId": 60,
                                            "isFreeTrial": true,
                                            "isNegativeAllowed": true
                                        }
                                    ]
                                }
                            }
                        ],
                        "currentRatePlan": {
                            "identity": 64,
                            "name": "Sample Text Data",
                            "displayName": "Sample Text Data",
                            "start": "2021-04-26T15:25:27.587Z"
                        },
                        "transitionPrices": [
                            {
                                "identity": 63,
                                "accountPackageName": "Sample Text Data",
                                "packageServicePricePlanId": 36,
                                "serviceTransitionId": 1,
                                "serviceTransitionName": "Sample Text Data",
                                "amount": 83.77,
                                "chargeServiceId": 47,
                                "chargeServiceName": "Sample Text Data",
                                "penaltyCharge": 75.64
                            }
                        ],
                        "nonRecurringPrices": [
                            {
                                "identity": 31,
                                "accountPackageName": "Sample Text Data",
                                "packageServicePricePlanId": 8,
                                "pricePlanTierTypeId": 33,
                                "pricePlanTierTypeName": "Sample Text Data",
                                "amount": 45.15,
                                "details": {
                                    "tiers": [
                                        {
                                            "identity": 56,
                                            "accountPackageNonRecurringPriceId": 52,
                                            "amount": 87.37,
                                            "threshold": 79
                                        }
                                    ]
                                }
                            }
                        ],
                        "recurringPrices": [
                            {
                                "identity": 86,
                                "accountPackageName": "Sample Text Data",
                                "packageServicePricePlanId": 8,
                                "serviceStatusTypeId": 17,
                                "serviceStatusTypeName": "Sample Text Data",
                                "amount": 51.76,
                                "pricePlanTierTypeId": 52,
                                "pricePlanTierTypeName": "Sample Text Data",
                                "details": {
                                    "identity": 49,
                                    "accountPackageRecurringPriceId": 75,
                                    "threshold": 35,
                                    "amount": 65.05
                                }
                            }
                        ],
                        "serviceDiscounts": [
                            {
                                "identity": 68,
                                "accountPackageName": "Sample Text Data",
                                "serviceId": 81,
                                "serviceName": "Sample Text Data",
                                "start": "2021-04-26T15:25:27.587Z",
                                "packageServiceDiscountId": 90,
                                "generalLedgerId": 75,
                                "generalLedgerName": "Sample Text Data",
                                "discountName": "Sample Text Data",
                                "isProrated": true,
                                "isFreeTrial": true,
                                "isNegativeAllowed": true,
                                "details": {
                                    "identity": 61,
                                    "accountPackageServiceDiscountId": 69,
                                    "accountPackageServiceDiscountName": "Sample Text Data",
                                    "serviceStatusTypeId": 75,
                                    "serviceStatusTypeName": "Sample Text Data",
                                    "discountPromoCodeId": 7,
                                    "discountPromoCodeName": "Sample Text Data",
                                    "discountId": 35,
                                    "details": {
                                        "discountAmounts": [
                                            {
                                                "identity": 12,
                                                "discountId": 52,
                                                "discountTypeId": 49,
                                                "discountTypeName": "Sample Text Data",
                                                "frequency": 13,
                                                "frequencyTypeId": 30,
                                                "frequencyTypeName": "Sample Text Data",
                                                "amount": 53.36,
                                                "appliedOrder": 79
                                            }
                                        ]
                                    }
                                }
                            }
                        ],
                        "temporalData": [
                            {
                                "accountPackageName": "Sample Text Data",
                                "accountPackageStatusTypeId": 11,
                                "accountPackageStatusTypeName": "Sample Text Data",
                                "start": "2021-04-26T15:25:27.587Z",
                                "end": "2021-04-26T15:25:27.587Z",
                                "updated": "2021-04-26T15:25:27.587Z"
                            }
                        ],
                        "latestPackageTerm": {
                            "accountPackageName": "Sample Text Data",
                            "termId": 40,
                            "name": "Sample Text Data",
                            "isActive": true,
                            "frequency": 51,
                            "frequencyTypeId": 26,
                            "frequencyTypeName": "Sample Text Data",
                            "penaltyServiceId": 77,
                            "penaltyServiceName": "Sample Text Data",
                            "chargeRemainder": true,
                            "termPenaltyAmount": 95.26,
                            "contractStart": "2021-04-26T15:25:27.587Z",
                            "termRenewalTypeId": 2,
                            "renewTermId": 64,
                            "renewTermStart": "2021-04-26T15:25:27.587Z",
                            "contractEnd": "2021-04-26T15:25:27.587Z"
                        },
                        "packageTerms": [
                            {
                                "accountPackageName": "Sample Text Data",
                                "termId": 79,
                                "termName": "Sample Text Data",
                                "termStart": "2021-04-26T15:25:27.587Z",
                                "termRenewalTypeId": 59,
                                "termRenewalTypeName": "Sample Text Data",
                                "renewTermId": 22,
                                "renewTermName": "Sample Text Data",
                                "renewTermStart": "2021-04-26T15:25:27.587Z",
                                "endDate": "2021-04-26T15:25:27.587Z"
                            }
                        ],
                        "taxAddress": {
                            "identity": 97,
                            "name": "Sample Text Data",
                            "isShared": true,
                            "accountId": 45,
                            "accountName": "Sample Text Data",
                            "addressId": 32,
                            "created": "2021-04-26T15:25:27.587Z",
                            "updated": "2021-04-26T15:25:27.587Z",
                            "saveTaxAddressOnInvoicer": true,
                            "address1": "Sample Text Data",
                            "address2": "Sample Text Data",
                            "stateId": 11,
                            "stateName": "Sample Text Data",
                            "stateCode": "Sample Text Data",
                            "countryId": 28,
                            "countryName": "Sample Text Data",
                            "countryCode": "Sample Text Data",
                            "zipCode": "Sample Text Data",
                            "cityName": "Sample Text Data",
                            "taxJurisdictionCodeUpdated": "2021-04-26T15:25:27.587Z",
                            "isIncorporated": true
                        }
                    }
                }
            ]
        }
    }
}
PATCHAccount/SharePlan/{id}
Update or Add the AccountSharePlan object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array.
{id}Unique identifier for the AccountSharePlan object.
Update or Add the AccountSharePlan object and optionally make changes to any child objects.
PATCH Account/SharePlan/{id}

{
    "details": {},
    "accountSharePlans": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "usageBucketSharePlanId": 4,
                "usageBucketShareLevelId": 26,
                "accountId": 5,
                "accountServiceId": "Sample Text Data",
                "sharePlanAccountPackageId": "Sample Text Data",
                "sellingAccountPackageId": "Sample Text Data",
                "bucketPriorityTieBreaker": 13
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "patch",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "action": "created",
                "dtoTypeKey": "accountSharePlan",
                "instance": {
                    "identity": 1,
                    "usageBucketSharePlanId": 10,
                    "usageBucketSharePlanName": "Sample Text Data",
                    "usageBucketShareLevelId": 24,
                    "usageBucketShareLevelName": "Sample Text Data",
                    "accountId": 16,
                    "accountName": "Sample Text Data",
                    "accountServiceId": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "isAvailable": true,
                    "sharePlanAccountPackageId": "Sample Text Data",
                    "sharePlanAccountPackageName": "Sample Text Data",
                    "sellingAccountPackageId": "Sample Text Data",
                    "sellingAccountPackageName": "Sample Text Data",
                    "bucketPriorityTieBreaker": 6
                }
            }
        ]
    }
}
POSTAccount/SharePlan/{id}/AddOn
A user friendly way to create an Account Share Plan Add On. Sample shows adding a recurring Account Share Plan Add On with a price override.
{id}Unique identifier for the AccountSharePlan object.
A user friendly way to create an Account Share Plan Add On.
POST Account/SharePlan/{id}/AddOn

{
  "packageName": "Share Plan Add On Package",
  "packageFrequencyName": "Share Plan Add On Package Frequency",
  "effective": "2023-01-01",
  "recurringPriceOverride": {
    "instance": {
      "serviceName": "Share Plan Add On Service",
      "amount": "999"
    }      
  }
}
View Sample Response
HTTP/1.1 200 OK
{
  "trackingId": "d090d5a4-8b75-4068-a43c-f3b79fae5de9",
  "type": "create",
  "results": {
    "totalCount": 7,
    "items": [
      {
        "identity": 3177,
        "action": "created",
        "dtoTypeKey": "accountPackage",
        "instance": {
          "identity": 3177,
          "accountId": 10000003,
          "accountName": "Dan Steele",
          "created": "2023-06-23T18:36:48.073Z",
          "nextBill": "2023-01-01T00:00:00Z",
          "name": "Share Plan Add On Package (8E0F041F)",
          "effective": "2023-01-01T00:00:00Z",
          "packageFrequencyId": 1147,
          "packageFrequencyName": "Share Plan Add On Package Frequency",
          "createdByUserId": 8000,
          "createdByUserName": "LogiSense Support",
          "accountSharePlanId": 2,
          "packageCategoryId": 4,
          "packageCategoryName": "Share Plan Add-on",
          "chargeRecurringIfUsage": false,
          "waiveEarlyTerminationFee": false,
          "quantity": 1,
          "isQuantityAllowed": false,
          "priceBookId": 1,
          "priceBookName": "Standard Price Book"
        }
      },
      {
        "identity": 20125,
        "action": "created",
        "dtoTypeKey": "accountService",
        "instance": {
          "identity": 20125,
          "serviceId": 1196,
          "serviceName": "Share Plan Add On Service",
          "accountId": 10000003,
          "accountName": "Dan Steele",
          "created": "2023-06-23T18:36:48.073Z",
          "accountPackageId": 3177,
          "accountPackageName": "Share Plan Add On Package (8E0F041F)",
          "name": "Share Plan Add On Service (B9852F7C)",
          "createdByUserId": 8000,
          "createdByUserName": "LogiSense Support",
          "usageNextBill": "2023-02-01T00:00:00Z",
          "isTaxInclusive": false
        }
      },
      {
        "identity": 9,
        "action": "created",
        "dtoTypeKey": "accountServiceUsageBucket",
        "instance": {
          "identity": 9,
          "usageBucketId": 1,
          "usageBucketName": "Internet Data",
          "accountServiceId": 20125,
          "accountServiceName": "Share Plan Add On Service (B9852F7C)",
          "refillFrequency": 3,
          "refillFrequencyTypeId": 3,
          "refillFrequencyTypeName": "Month",
          "prorate": true,
          "isInfiniteLastTier": false,
          "isThresholdPerAccountService": false,
          "usageBucketRefillTypeId": 6,
          "usageBucketRefillTypeName": "Recurring with rollover",
          "expireAfterRecurrence": 5,
          "accountPackageActivation": false,
          "isSharedAcrossPackage": false,
          "overageUsageRatePlanId": null,
          "overageUsageRatePlanName": null
        }
      },
      {
        "identity": 11,
        "action": "created",
        "dtoTypeKey": "accountServiceUsageBucketTier",
        "instance": {
          "identity": 11,
          "usageBucketTierId": 201,
          "accountServiceUsageBucketId": 9,
          "threshold": 500.00000000000,
          "flatCharge": 0.00000000000,
          "usageUnitId": 8,
          "usageUnitName": "GB"
        }
      },
      {
        "identity": 385,
        "action": "created",
        "dtoTypeKey": "accountServiceTemporal",
        "instance": {
          "identity": 385,
          "accountServiceId": 20125,
          "accountServiceName": "Share Plan Add On Service (B9852F7C)",
          "serviceStatusTypeId": 12,
          "serviceStatusTypeName": "Active"
        }
      },
      {
        "identity": 103,
        "action": "created",
        "dtoTypeKey": "accountPackageRecurringPrice",
        "instance": {
          "identity": 103,
          "accountPackageId": 3177,
          "accountPackageName": "Share Plan Add On Package (8E0F041F)",
          "packageServicePricePlanId": 3074,
          "serviceStatusTypeId": 12,
          "serviceStatusTypeName": "Active",
          "amount": 999.00000000000,
          "pricePlanTierTypeId": 2,
          "pricePlanTierTypeName": "Not Tiered"
        }
      },
      {
        "identity": 239,
        "action": "created",
        "dtoTypeKey": "accountPackageTemporal",
        "instance": {
          "identity": 239,
          "accountPackageId": 3177,
          "accountPackageName": "Share Plan Add On Package (8E0F041F)",
          "accountPackageStatusTypeId": 99,
          "accountPackageStatusTypeName": "Active"
        }
      }
    ]
  }
}
PUTAccount/SharePlan/ForAccount/{id}/Rank
Re-arrange the order of Account Share Plan Add On. When a Service / Package is part of multiple AccountSharePlans, the bucketing engine needs to know the priority of the associated buckets. The Rank defined based on the order of the AccountSharePlan will be used to identify the priority. This API is expecting all the AccountSharePlan ids of the account to be passed in order of priority.
{id}Unique identifier for the AccountSharePlan object.
Re-arrange the order of Account Share Plan Add On.
PUT Account/SharePlan/ForAccount/{id}/Rank

[
  13,
  20,
  12,
  41
]
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketSharePlanId": 14,
                "usageBucketSharePlanName": "Sample Text Data",
                "usageBucketShareLevelId": 10,
                "usageBucketShareLevelName": "Sample Text Data",
                "accountId": 5,
                "accountName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "isAvailable": true,
                "sharePlanAccountPackageId": "Sample Text Data",
                "sharePlanAccountPackageName": "Sample Text Data",
                "sellingAccountPackageId": "Sample Text Data",
                "sellingAccountPackageName": "Sample Text Data",
                "bucketPriorityTieBreaker": 12
            }
        ]
    }
}
PUTAccount/SharePlan/{id}
Update an existing instance of the AccountSharePlan object.
Update an existing instance of the AccountSharePlan object.
PUT Account/SharePlan/{id}

{
    "identity": 1,
    "usageBucketSharePlanId": 22,
    "usageBucketShareLevelId": 24,
    "accountId": 6,
    "accountServiceId": "Sample Text Data",
    "sharePlanAccountPackageId": "Sample Text Data",
    "sellingAccountPackageId": "Sample Text Data",
    "bucketPriorityTieBreaker": 16
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBucketSharePlanId": 14,
                "usageBucketSharePlanName": "Sample Text Data",
                "usageBucketShareLevelId": 20,
                "usageBucketShareLevelName": "Sample Text Data",
                "accountId": 15,
                "accountName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "isAvailable": true,
                "sharePlanAccountPackageId": "Sample Text Data",
                "sharePlanAccountPackageName": "Sample Text Data",
                "sellingAccountPackageId": "Sample Text Data",
                "sellingAccountPackageName": "Sample Text Data",
                "bucketPriorityTieBreaker": 18
            }
        ]
    }
}