Difference between revisions of "API/Plans/GetTermsAndConditions"
From Emersion
(new page created for GetTermsAndConditions API function) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
'''Purpose ''' | '''Purpose ''' | ||
| − | Retrieve all the terms and conditions against a Package Plan ID and, optionally, against a Terms and Conditions ID. | + | Retrieve all the terms and conditions against a Package or Service Plan ID and, optionally, against a Terms and Conditions ID. |
| Line 8: | Line 8: | ||
<soapenv:Body> | <soapenv:Body> | ||
<plan:GetTermsAndConditions> | <plan:GetTermsAndConditions> | ||
| − | <plan:PackagePlanID>999999</plan:PackagePlanID> | + | <plan:ObjectMapping> |
| + | <!--You have a CHOICE of the next 2 items at this level--> | ||
| + | <plan:PackagePlanID>999999</plan:PackagePlanID> | ||
| + | <plan:ServicePlanID></plan:ServicePlanID> | ||
| + | </plan:ObjectMapping> | ||
<!--Optional:--> | <!--Optional:--> | ||
| − | <plan:DateEffective>2016- | + | <plan:DateEffective>2016-12-31</plan:DateEffective> |
<!--Optional:--> | <!--Optional:--> | ||
<plan:TermsAndConditionsID>999999</plan:TermsAndConditionsID> | <plan:TermsAndConditionsID>999999</plan:TermsAndConditionsID> | ||
</plan:GetTermsAndConditions> | </plan:GetTermsAndConditions> | ||
</soapenv:Body> | </soapenv:Body> | ||
| − | |||
'''Output''' | '''Output''' | ||
| Line 32: | Line 35: | ||
| − | '''Error | + | '''Error Strings''' |
| + | * "You cannot specify both Package and Service Plan IDs" - Both Package and Service Plan IDs are provided which is not valid | ||
* "Package Plan ID does not exist" - Package Plan ID provided does not exist in the system | * "Package Plan ID does not exist" - Package Plan ID provided does not exist in the system | ||
* "Package Plan ID does not belong to caller" - Package Plan ID does not belong to the calling customer account | * "Package Plan ID does not belong to caller" - Package Plan ID does not belong to the calling customer account | ||
| + | * "Service Plan ID does not exist" - Service Plan ID provided does not exist in the system | ||
| + | * "Service Plan ID does not belong to caller" - Service Plan ID does not belong to the calling customer account | ||
* "Invalid Effective Date" - Effective Date provided is not valid | * "Invalid Effective Date" - Effective Date provided is not valid | ||
* "Terms and Conditions ID does not exist" - Terms and Conditions ID provided does not exist in the system | * "Terms and Conditions ID does not exist" - Terms and Conditions ID provided does not exist in the system | ||
Latest revision as of 13:12, 9 June 2016
Purpose
Retrieve all the terms and conditions against a Package or Service Plan ID and, optionally, against a Terms and Conditions ID.
Inputs
<soapenv:Header/>
<soapenv:Body>
<plan:GetTermsAndConditions>
<plan:ObjectMapping>
<plan:PackagePlanID>999999</plan:PackagePlanID>
<plan:ServicePlanID></plan:ServicePlanID>
</plan:ObjectMapping>
<plan:DateEffective>2016-12-31</plan:DateEffective>
<plan:TermsAndConditionsID>999999</plan:TermsAndConditionsID>
</plan:GetTermsAndConditions>
</soapenv:Body>
Output <SOAP-ENV:Body>
<ns1:GetTermsandConditionsResponse>
<ns1:TermsandConditions>
<ns1:TermsandConditionsName>Dummy</ns1:TermsandConditionsName>
<ns1:TermsandConditionsID>999999</ns1:TermsandConditionsID>
<ns1:TermsandConditionsStatus>Dummy</ns1:TermsandConditionsStatus>
<ns1:EffectiveDate>2014-08-20</ns1:EffectiveDate>
<ns1:TermsandConditionsText>Dummy</ns1:TermsandConditionsText>
<ns1:TermsandConditionsType>Dummy</ns1:TermsandConditionsType>
</ns1:TermsandConditions>
</ns1:GetTermsandConditionsResponse>
</SOAP-ENV:Body>
Error Strings
- "You cannot specify both Package and Service Plan IDs" - Both Package and Service Plan IDs are provided which is not valid
- "Package Plan ID does not exist" - Package Plan ID provided does not exist in the system
- "Package Plan ID does not belong to caller" - Package Plan ID does not belong to the calling customer account
- "Service Plan ID does not exist" - Service Plan ID provided does not exist in the system
- "Service Plan ID does not belong to caller" - Service Plan ID does not belong to the calling customer account
- "Invalid Effective Date" - Effective Date provided is not valid
- "Terms and Conditions ID does not exist" - Terms and Conditions ID provided does not exist in the system