Targeting and calculation

This query calculates the targeting and the cost of targeting.

URLs

POST https://api.smspartner.fr/v1/location/optin

Settings

Each API request supports the following parameters :

apiKey API key from your account. You get it in your SMS Partner account.
op Action to take:

  • Calculation: Calculate the cost and the number of contact involved in targeting
  • Price: Calculates the cost of targeting
  • Rent: Rent a contact base
parameters

sex :

Gender targeted contacts, must be:
m (unisex)
– or h (man)
– or f (woman)

mining:

Minimum age of the target must be greater than 18.

maxAge:

Maximum age of the target must be less than 99.

interest:

Main focus of the target.

subInterest (optional):

Sub category of focus.

category (optional):

Social-professional category:
102: CSP+
103: CSP-

department (optional):

List of targeted departments. eg 02.60, etc …

zipcode (optional):

List of targeted zip codes. eg 02200.60200, etc …

volumes This setting is available only if op = rent or price.

Allows you to choose a desired volume by zip code or department

_format Response format. You can choose between JSON or XML. By default, the response format is JSON.

Request

Sample query :

Replies

Errors

Error message Example :

Control code

Reply
1 The API Key is required
10 Invalid API key
200 Everything went well !