__

device/contracts

Returns contract pricing summary for a product from a given product id.

REST URL:

http://api.powerupmobile.com/device/contracts/id

Format

xml, json, jsonp

HTTP Method

GET

Resource

The product id must be provided at the end of the URL:
i.e. device/contracts/684

The recommended way to lookup values is using the products methods, i.e. products/category.

Parameters

api_key (required)
The API key. (More Info)

api_sig (required)
The generated request signature. (More info)

format (optional)
The desired response format. Value can be xml, json or jsonp. Defaults to xml. jsonp responds with a callback function named jsonPowApi.

Errors

10: Incorrect Signature
The API Key and/or the generated request signature are incorrect or are no longer valid.

20: Incorrect Number of Parameters
The minimum number of required parameters have not been provided.

30: Format Incorrect
The format requested is not supported.

41: No Numeric ID
The product id has not been provided or is not numeric.

50: No API Key
The api_key parameter and value are not in the request.

60: No Signature
The api_sig parameter and value are not in the request.

Example Request

http://api.powerupmobile.com/device/contracts/684/? api_key=q7jImKi89lYMo7TG&format=json&api_sig=ce67c6187000fcf69af2fcb67887f6b2448ed35649d955769b1dd19c853c9fd9

__