In this document:
The considered APS type (download
)
extends the Resource APS type(s) and looks as follows:
{
"name": "InternalApiManager",
"id": "http://com.odin.marketing/discountmanager/internalapi/1.5",
"apsVersion": "2.0",
"implements": [
"http://aps-standard.org/types/core/resource/1.0"
],
"access": {
"global": true
},
"operations": {
"getAddedPlansToPromotion": {
"path": "/promotions/{promoId}/addedPlans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"promoId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedResourcesToPromotion": {
"path": "/promotions/{promoId}/addedResources",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"promoId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedPlansToGroup": {
"path": "/productGroups/{groupId}/addedPlans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailablePlansForGroup": {
"path": "/productGroups/{groupId}/availablePlans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedPlanPeriodsToGroup": {
"path": "/productGroups/{groupId}/addedPlanPeriods",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedResourcesToGroup": {
"path": "/productGroups/{groupId}/addedResources",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailableResourcesForGroup": {
"path": "/productGroups/{groupId}/availableResources",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedResourceRatesToGroup": {
"path": "/productGroups/{groupId}/addedResourceRates",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"groupId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedAccounts": {
"path": "/discounts/{discountId}/addedAccounts",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailableAccounts": {
"path": "/discounts/{discountId}/availableAccounts",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedCustomerClasses": {
"path": "/discounts/{discountId}/addedCustomerClasses",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailableCustomerClasses": {
"path": "/discounts/{discountId}/availableCustomerClasses",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedPlansToDiscount": {
"path": "/discounts/{discountId}/addedPlans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailablePlansForDiscount": {
"path": "/discounts/{discountId}/availablePlans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedPlansPeriodsToDiscount": {
"path": "/discounts/{discountId}/addedPlanPeriods",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedResourcesToDiscount": {
"path": "/discounts/{discountId}/addedResources",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailableResourcesForDiscount": {
"path": "/discounts/{discountId}/availableResources",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAddedResourceRatesToDiscount": {
"path": "/discounts/{discountId}/addedResourceRates",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"discountId": {
"kind": "path",
"type": "string"
}
}
},
"getAvailablePlans": {
"path": "/productCatalog/plans",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
}
},
"getPlanPeriods": {
"path": "/productCatalog/plans/{planId}/planPeriods",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"planId": {
"kind": "path",
"type": "integer"
}
}
},
"getAvailableServicePlansForPromotionByParentPlan": {
"path": "/productCatalog/availableServicePlansForPromotionByParentPlan",
"verb": "GET",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"promotionId": {
"kind": "query",
"type": "string"
}
}
},
"getResources": {
"path": "/productCatalog/resources",
"verb": "POST",
"response": {
"type": "array"
},
"errorResponse": {
"type": "object"
},
"parameters": {
"resourcesFilter": {
"kind": "body",
"type": "ResourcesFilterDTO"
}
}
}
},
"structures": {
"MultiLanguageStringDTO": {
"type": "object"
},
"Period": {
"type": "object",
"properties": {
"unit": {
"type": "string",
"enum": [
"DAYS",
"MONTHS",
"YEARS"
]
},
"duration": {
"type": "integer"
}
}
},
"PromotedPlanViewDTO": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"promotedPlanId": {
"type": "string",
"required": true
},
"planId": {
"type": "string",
"required": true
},
"name": {
"type": "MultiLanguageStringDTO"
},
"period": {
"type": "Period"
},
"promotionPeriod": {
"type": "Period"
},
"limitPerParentSubscription": {
"type": "integer"
},
"setupFee": {
"type": "PromotionFeeDTO",
"required": true
},
"recurringFee": {
"type": "PromotionFeeDTO",
"required": true
},
"renewalFee": {
"type": "PromotionFeeDTO",
"required": true
},
"transferFee": {
"type": "PromotionFeeDTO",
"required": true
}
}
},
"PromotedResourceViewDTO": {
"type": "object",
"properties": {
"period": {
"type": "Period"
},
"planName": {
"type": "MultiLanguageStringDTO"
},
"setupFee": {
"type": "PromotionFeeDTO",
"required": true
},
"recurringFee": {
"type": "PromotionFeeDTO",
"required": true
},
"overuseFee": {
"type": "PromotionFeeDTO",
"required": true
},
"planId": {
"type": "string",
"required": true
},
"resourceId": {
"type": "string",
"required": true
}
}
},
"PlanViewDTO": {
"type": "object"
},
"PlanPeriodViewDTO": {
"type": "object"
},
"ResourceViewDTO": {
"type": "object"
},
"ResourceRateViewDTO": {
"type": "object"
}
}
}
OPERATION |
VERB |
PATH |
RETURNS |
Description |
---|---|---|---|---|
GET |
/promotions/{promoId}/addedPlans |
|||
GET |
/promotions/{promoId}/addedResources |
|||
GET |
/productGroups/{groupId}/addedPlans |
|||
GET |
/productGroups/{groupId}/availablePlans |
|||
GET |
/productGroups/{groupId}/addedPlanPeriods |
|||
GET |
/productGroups/{groupId}/addedResources |
|||
GET |
/productGroups/{groupId}/availableResources |
|||
GET |
/productGroups/{groupId}/addedResourceRates |
|||
GET |
/discounts/{discountId}/addedAccounts |
|||
GET |
/discounts/{discountId}/availableAccounts |
|||
GET |
/discounts/{discountId}/addedCustomerClasses |
|||
GET |
/discounts/{discountId}/availableCustomerClasses |
|||
GET |
/discounts/{discountId}/addedPlans |
|||
GET |
/discounts/{discountId}/availablePlans |
|||
GET |
/discounts/{discountId}/addedPlanPeriods |
|||
GET |
/discounts/{discountId}/addedResources |
|||
GET |
/discounts/{discountId}/availableResources |
|||
GET |
/discounts/{discountId}/addedResourceRates |
|||
GET |
/productCatalog/plans |
|||
GET |
/productCatalog/plans/{planId}/planPeriods |
|||
GET |
/productCatalog/availableServicePlansForPromotionByParentPlan |
|||
POST |
/productCatalog/resources |
HTTP Request
GET /aps/2/resources/{aps-id}/promotions/{promoId}/addedPlans
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
promoId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/promotions/{promoId}/addedResources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
promoId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/addedPlans
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/availablePlans
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/addedPlanPeriods
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/addedResources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/availableResources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productGroups/{groupId}/addedResourceRates
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
groupId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedAccounts
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/availableAccounts
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedCustomerClasses
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/availableCustomerClasses
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedPlans
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/availablePlans
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedPlanPeriods
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedResources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/availableResources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/discounts/{discountId}/addedResourceRates
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
discountId |
String |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productCatalog/plans
Description
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productCatalog/plans/{planId}/planPeriods
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
planId |
Integer |
Returns
HTTP Request
GET /aps/2/resources/{aps-id}/productCatalog/availableServicePlansForPromotionByParentPlan
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
promotionId |
String |
Returns
HTTP Request
POST /aps/2/resources/{aps-id}/productCatalog/resources
Description
Parameters
PARAMETER |
TYPE |
DESCRIPTION |
---|---|---|
resourcesFilter |
ResourcesFilterDTO |
Returns
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
unit |
Enum |
Not Required |
||
duration |
Integer |
Not Required |
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
id |
String |
Not Required |
||
promotedPlanId |
String |
Required |
||
planId |
String |
Required |
||
name |
Not Required |
|||
period |
Not Required |
|||
promotionPeriod |
Not Required |
|||
limitPerParentSubscription |
Integer |
Not Required |
||
setupFee |
PromotionFeeDTO |
Required |
||
recurringFee |
PromotionFeeDTO |
Required |
||
renewalFee |
PromotionFeeDTO |
Required |
||
transferFee |
PromotionFeeDTO |
Required |
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
period |
Not Required |
|||
planName |
Not Required |
|||
setupFee |
PromotionFeeDTO |
Required |
||
recurringFee |
PromotionFeeDTO |
Required |
||
overuseFee |
PromotionFeeDTO |
Required |
||
planId |
String |
Required |
||
resourceId |
String |
Required |
Since the considered APS type contains custom operations, refer to Custom Operations for the general explanation of their structure and examples of operation calls.