Overview

This API permits the activation of a service.


 To retrieve a list of service types:

  1. Create a login token via the login API call.
  2. Specify the AccountPresaleSQID or the  service identifier and service type ID.
  3. Specify the SIM number if required.
  4. Specify the Product, if required.

WSDL

https://userapi.emersion.com/Services.wsdl

Operation name


ActivateService



Business Rules

Different service types will have have different requirements.

Service Type: TelstraMarketExtender

If the Retail Service Provider only has one product where the Product type is a SIM card, and the product has a matching service type category to this service type, it will use the SIM from the inventory of this Product.  If there is more than one Product matching these conditions, you will be required to provide a Product ID in the API call.




SOAP Example


Request - SQ_ID only
<urn:ActivateService>      
<urn:loginToken>e4d723bfafeaeecc4cc91da481ad2dca896134df44a73ed225a23a5401aeefe1</urn:loginToken>
  <urn:SQ_ID>581407</urn:SQ_ID>
  <urn:sim_number>498172577</urn:sim_number>
</urn:ActivateService>

Request - With Service Identifier
<urn:ActivateService>
<urn:loginToken>e4d723bfafeaeecc4cc91da481ad2dca896134df44a73ed225a23a5401aeefe1</urn:loginToken>
  <urn:service_identifier>581407</urn:service_identifier>
  <urn:service_type_id>5702</urn:service_type_id>
  <urn:sim_number>498172577</urn:sim_number>
</urn:ActivateService>
Response
<ns1:ActiveServiceResponse>true</ns1:ActiveServiceResponse>




Field Descriptions

All field names are case sensitive. Check enumerated values in the descriptions to confirm capitalisation and spacing. See field types for additional information.

NameDescriptionRequired?Field Type

Character

limit

Values 

loginToken

The authentication token as it was returned by the Authentication/login API call.YesString64a valid session token.
sq_idThe account presale service qualification id.   This can be retrieved via one of the service provider sq calls  documented here.  This will be mandatory if a service_identifier is not provided in this call.NoInteger
5434323
service_identifierThe identifier you are trying to activate.  If sq_id is provided, this field will be mandatory.NoString
61464917053
service_type_idThe service type id associated with the service you are trying to activate. This will be mandatory if you are only providing a service identifier to activate as opposed to the sq_id.NoInteger
5702
sim_numberWhere the product_id is required and the product bears the category "SIM Card", you will be required to provide a sim_number that is in "Held" status and not locked.NoInteger
45454345445
product_idSome service types will require you to provide a product_id.  See the Business Rules in this section to see whether this applies to the service type associated with the service you are trying to activate.NoInteger
42123212

Error Handling


Error MessageDescription
Either SQ ID or Service Identifier / Service Type should be set. Both should not be set
Either SQ ID or Service Identifier / Service Type must be set.
SQ ID should not be blank
SQ ID should be numeric
SQ ID not found
Access denied for this SQ
SQ not in appropriate status for ActivationThe service qualification associated with the service should be in Fulfilment Required or Waiting on End-User status.  It may be that the original order is incomplete.  It is also possible that further configuration is required for your Retail Service Provider.  Please contact Emersion Support if you suspect this is required.
Service identifier should not be blank
Service identifier is in invalid format
When service identifier is provided, service type id must also be provided
Service type id should not be blank
Service Type ID should be numeric
Service type id should only be provided with a service identifier
Service type not found
Service type not mapped to caller
Service identifier not found in a ready-for-activation SQ against the service type
Service identifier already allocated against the same service type
SIM number should not be blank
Please provide 9 digit sim number
Product ID must be numeric
Product ID not found
Product not accessible to caller
Product does not have a service type category
Product has a different service type category
More than one products found against the service type category. Please specify a product id in your call.
No product found against the service type category.
Order not found
This Order is not yet ready for activation as it has not been finalised
Access denied for this order