Assurance Moto Location courte durée (MOTO LCD)

API change history

Notre produit Moto Location courte durée permet une couverture large, non seulement du véhicule mais également du conducteur et de ses équipements.

/getPrice

Requête REST de tarification

Try it

Request URL

Request headers

(optional)
string

Code Partenariat La Parisienne Assurances

(optional)
string
Media type of the body sent to the API.
string
Subscription key which provides access to this API. Found in your Profile.

Request body

{
  "DateEffet": "22/1/2018",
  "Fractionnement": "Journée",
  "NbUnites": "1",
  "LatitudeCommercialeDemandee": "0%",
  "DateNaissanceConducteur": "1/1/1990",
  "DatePermisMOTO": "1/1/2015",
  "TypePermisMOTO": "A",
  "DatePermisAUTO": "1/1/2015",
  "CrmMOTO": "100",
  "CrmAUTO": "100",
  "AntecedentsAssurance": "Pas d'antécédent",
  "RAG": "Aucun",
  "MotifResiliationPrecedentAssureur": "Aucun",
  "IdVehicule": "YA04011",
  "DateMiseCirculation": "1/1/2013",
  "Usage": "Privé avec trajet",
  "CodePostalResidence": "75001",
  "CommuneResidence": "PARIS-1ER-ARRONDISSEMENT",
  "CodePostalTravail": "75001",
  "CommuneTravail": "PARIS-1ER-ARRONDISSEMENT",
  "36NbSinistresRCDOMResponsable": "0",
  "36NbSinistresRCDOMNonResponsable": "0",
  "36NbSinistresBrisDeGlace": "0",
  "36NbSinistresVol": "0",
  "AUTO36NbSinistresMaterielResponsable": "0",
  "AUTO36NbSinistresMaterielNonResponsable": "0",
  "MOTO36NbSinistresMaterielResponsable": "0",
  "MOTO36NbSinistresMaterielNonResponsable": "0",
  "AUTO36NbSinistresCorporelResponsable": "0",
  "AUTO36NbSinistresCorporelNonResponsable": "0",
  "MOTO36NbSinistresCorporelResponsable": "0",
  "MOTO36NbSinistresCorporelNonResponsable": "0",
  "OptionProtectionPiloteRenforcee": "Non",
  "OptionAccessoires1500": "Oui",
  "OptionAccessoires3000": "Non",
  "OptionAccessoires5000": "Non",
  "OptionEquipements1500": "Oui",
  "OptionEquipements3000": "Non",
  "OptionRachatDeFranchise": "Non"
}
{
  "type": "object",
  "properties": {
    "DateEffet": {
      "description": "Date de début d'effet du contrat (JJ/MM/AAAA)",
      "type": "string",
      "default": "22/1/2018"
    },
    "Fractionnement": {
      "description": "Type de fractionnement de la prime",
      "type": "string",
      "default": "Journée",
      "enum": [
        "Semaines",
        "Journée",
        "Heure",
        "Minute"
      ]
    },
    "NbUnites": {
      "description": "Nombre d'unité de souscription (journée ou autre selon l'unité choisie)",
      "type": "string",
      "default": "1"
    },
    "LatitudeCommercialeDemandee": {
      "description": "Coefficient Réduction Majoration du tarif. Geste commercial accordé par le distributeur. Un accord préalable de la part de LPA est obligatoire. Ex : on attend -0,10 pour 10% de réduction ou 0,05 pour 5% de majoration.",
      "type": "string",
      "default": "0%",
      "enum": [
        "-15%",
        "-10%",
        "-5%",
        "0%",
        "5%",
        "10%",
        "15%"
      ]
    },
    "DateNaissanceConducteur": {
      "description": "Date de naissance du conducteur (JJ/MM/AAAA)",
      "type": "string",
      "default": "1/1/1990"
    },
    "DatePermisMOTO": {
      "description": "Date d'obtention du permis moto (JJ/MM/AAAA)",
      "type": "string",
      "default": "1/1/2015"
    },
    "TypePermisMOTO": {
      "description": "Type de permis moto",
      "type": "string",
      "default": "A",
      "enum": [
        "A",
        "A1",
        "A2",
        "B",
        "BSR / AM"
      ]
    },
    "DatePermisAUTO": {
      "description": "Date d'obtention du permis auto (JJ/MM/AAAA)",
      "type": "string",
      "default": "1/1/2015"
    },
    "CrmMOTO": {
      "description": "Coefficient de majoration/réduction (CRM) en moto",
      "type": "string",
      "default": "100"
    },
    "CrmAUTO": {
      "description": "Coefficient de majoration/réduction (CRM) en auto",
      "type": "string",
      "default": "100"
    },
    "AntecedentsAssurance": {
      "description": "Antécédents d'assurance",
      "type": "string",
      "default": "Pas d'antécédent",
      "enum": [
        "Pas d'antécédent",
        "Moins de 12 mois d'assurance au cours des 36 derniers mois",
        "Moins de 24 mois d'assurance au cours des 36 derniers mois",
        "Au moins 24 mois d'assurance au cours des 36 derniers mois",
        "36 mois d'assurance au cours des 36 derniers mois"
      ]
    },
    "RAG": {
      "description": "Critères d'aggravation du risque",
      "type": "string",
      "default": "Aucun",
      "enum": [
        "Aucun",
        "Condamnation sous Alcool/Stup",
        "Délit de fuite",
        "RNPP",
        "Fausse décla",
        "Suspension"
      ]
    },
    "MotifResiliationPrecedentAssureur": {
      "description": "Motif de résiliation du précédent assureur",
      "type": "string",
      "default": "Aucun",
      "enum": [
        "Aucun",
        "Non Paiement de prime",
        "Sinistre",
        "Autre aggavation",
        "Autre résiliation initiative assureur à l’échéance",
        "Fausse déclaration",
        "Nullité",
        "Sanctions pénales"
      ]
    },
    "IdVehicule": {
      "description": "Identifiant(code SRA) unique d'un véhicule selon le référentiel officiel issu de Asso.Sra.fr",
      "type": "string",
      "default": "YA04011"
    },
    "DateMiseCirculation": {
      "description": "Date de première mise en circulation du véhicule (JJ/MM/AAAA)",
      "type": "string",
      "default": "1/1/2013"
    },
    "Usage": {
      "description": "Type d'usage du véhicule",
      "type": "string",
      "default": "Privé avec trajet",
      "enum": [
        "Privé sans trajet",
        "Privé avec trajet",
        "Professionnel",
        "Tournées"
      ]
    },
    "CodePostalResidence": {
      "description": "Code postal (adresse lieux de résidence) du bien à assurer. Attention le premier zéro à gauche est significatif : \"01\" pour l'AIN",
      "type": "string",
      "default": "75001"
    },
    "CommuneResidence": {
      "description": "Commune rattachée au code postal (adresse lieux de résidence) du bien à assurer. Liste restriente de valeurs autorisées fournies par LPA sur la base du code postal.",
      "type": "string",
      "default": "PARIS-1ER-ARRONDISSEMENT"
    },
    "CodePostalTravail": {
      "description": "Code postal (adresse lieux du travail) du bien à assurer. Attention le premier zéro à gauche est significatif : \"01\" pour l'AIN",
      "type": "string",
      "default": "75001"
    },
    "CommuneTravail": {
      "description": "Commune rattachée au code postal (adresse lieux du travail) du bien à assurer. Liste restriente de valeurs autorisées fournies par LPA sur la base du code postal.",
      "type": "string",
      "default": "PARIS-1ER-ARRONDISSEMENT"
    },
    "36NbSinistresRCDOMResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres RCDOM responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "36NbSinistresRCDOMNonResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres RCDOM non responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "36NbSinistresBrisDeGlace": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres BDG (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "36NbSinistresVol": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres vol (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "AUTO36NbSinistresMaterielResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres AUTO matériel responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "AUTO36NbSinistresMaterielNonResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres AUTO matériel non responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "MOTO36NbSinistresMaterielResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres MOTO matériel responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "MOTO36NbSinistresMaterielNonResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres MOTO matériel non responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "AUTO36NbSinistresCorporelResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres AUTO corporel responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "AUTO36NbSinistresCorporelNonResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres AUTO corporel non responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "MOTO36NbSinistresCorporelResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres MOTO corporel responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "MOTO36NbSinistresCorporelNonResponsable": {
      "description": "Au cours des 36 derniers mois. Nombre de sinistres MOTO corporel non responsable (0-9)",
      "type": "string",
      "default": "0",
      "enum": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ]
    },
    "OptionProtectionPiloteRenforcee": {
      "description": "Option protection du pilote renforcée",
      "type": "string",
      "default": "Non",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionAccessoires1500": {
      "description": "Option accessoires 1500 €",
      "type": "string",
      "default": "Oui",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionAccessoires3000": {
      "description": "Option accessoires 3000 €",
      "type": "string",
      "default": "Non",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionAccessoires5000": {
      "description": "Option accessoires 5000 €",
      "type": "string",
      "default": "Non",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionEquipements1500": {
      "description": "Option équipements 1500 €",
      "type": "string",
      "default": "Oui",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionEquipements3000": {
      "description": "Option équipements 3000 €",
      "type": "string",
      "default": "Non",
      "enum": [
        "Non",
        "Oui"
      ]
    },
    "OptionRachatDeFranchise": {
      "description": "Option rachat de franchise",
      "type": "string",
      "default": "Non",
      "enum": [
        "Non",
        "Oui"
      ]
    }
  },
  "required": [
    "DateEffet",
    "Fractionnement",
    "NbUnites",
    "DateNaissanceConducteur",
    "DatePermisMOTO",
    "TypePermisMOTO",
    "DatePermisAUTO",
    "CrmMOTO",
    "CrmAUTO",
    "AntecedentsAssurance",
    "RAG",
    "MotifResiliationPrecedentAssureur",
    "IdVehicule",
    "DateMiseCirculation",
    "Usage",
    "CodePostalResidence",
    "CommuneResidence",
    "CodePostalTravail",
    "CommuneTravail"
  ]
}

Response 200

{
  "QuoteReference": "00000000-0000-0000-0000-000000000000",
  "statusCode": 200,
  "message": "OK",
  "MontantTotalPrimeHT": "7.82",
  "MontantTotalCommissions": "0.00",
  "MontantTotalCommissionsBPO": "0.00",
  "MontantTotalCommissionsIPaaS": "0.00",
  "MontantTotalCommissionsDistribution": "0.00",
  "MontantTaxes": "1.49",
  "MontantTotalPrimeTTC": "9.31",
  "Garanties": [
    {
      "CodeGarantie": "RCX",
      "MontantPrimeHT": "1.11",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.39",
      "MontantPrimeTTC": "1.50",
      "Plafond": "Mat : 5 000 000 €",
      "Franchise": "Prêt de guidon : 900 € (novice : 1 500 €)"
    },
    {
      "CodeGarantie": "DRX",
      "MontantPrimeHT": "0.74",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.07",
      "MontantPrimeTTC": "0.81",
      "Plafond": "4 600 € HT",
      "Franchise": "Seuil : 305 €"
    },
    {
      "CodeGarantie": "ASS",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "Selon Convention d'assistance",
      "Franchise": "Selon Convention d'assistance"
    },
    {
      "CodeGarantie": "PROPIL",
      "MontantPrimeHT": "0.55",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.05",
      "MontantPrimeTTC": "0.60",
      "Plafond": "200 000 €",
      "Franchise": "10% d’AIPP"
    },
    {
      "CodeGarantie": "PROPIL",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "500 000 €",
      "Franchise": "10% d’AIPP"
    },
    {
      "CodeGarantie": "VLX",
      "MontantPrimeHT": "2.82",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.51",
      "MontantPrimeTTC": "3.33",
      "Plafond": "Valeur éco (limite 50 000 €)",
      "Franchise": "940.00"
    },
    {
      "CodeGarantie": "INC",
      "MontantPrimeHT": "0.13",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.02",
      "MontantPrimeTTC": "0.15",
      "Plafond": "Valeur éco (limite 50 000 €)",
      "Franchise": "940.00"
    },
    {
      "CodeGarantie": "CATNAT",
      "MontantPrimeHT": "0.18",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.03",
      "MontantPrimeTTC": "0.21",
      "Plafond": "Valeur éco (limite 50 000 €)",
      "Franchise": "Selon règlementation en vigeur"
    },
    {
      "CodeGarantie": "CATEC",
      "MontantPrimeHT": "0.04",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.01",
      "MontantPrimeTTC": "0.05",
      "Plafond": "Valeur éco (limite 50 000 €)",
      "Franchise": "0€"
    },
    {
      "CodeGarantie": "CASQ",
      "MontantPrimeHT": "0.19",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.03",
      "MontantPrimeTTC": "0.22",
      "Plafond": "330 €",
      "Franchise": "Selon la limite indiquée aux Conditions générales"
    },
    {
      "CodeGarantie": "DOM",
      "MontantPrimeHT": "1.07",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.19",
      "MontantPrimeTTC": "1.26",
      "Plafond": "Valeur éco (limite 50 000 €)",
      "Franchise": "820.00"
    },
    {
      "CodeGarantie": "BOPT",
      "MontantPrimeHT": "0.03",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.01",
      "MontantPrimeTTC": "0.04",
      "Plafond": "Valeur de remplacement",
      "Franchise": "30 € en cas de remplacement"
    },
    {
      "CodeGarantie": "ACCESS",
      "MontantPrimeHT": "0.48",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.09",
      "MontantPrimeTTC": "0.57",
      "Plafond": "1 500 €",
      "Franchise": "10% dans la limite de 150 €"
    },
    {
      "CodeGarantie": "ACCESS",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "3 000 €",
      "Franchise": "10% dans la limite de 150 €"
    },
    {
      "CodeGarantie": "ACCESS",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "5 000 €",
      "Franchise": "10% dans la limite de 150 €"
    },
    {
      "CodeGarantie": "EQUIMOT",
      "MontantPrimeHT": "0.48",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.09",
      "MontantPrimeTTC": "0.57",
      "Plafond": "1 500 €",
      "Franchise": "10% dans la limite de 150 €"
    },
    {
      "CodeGarantie": "EQUIMOT",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "3 000 €",
      "Franchise": "10% dans la limite de 150 €"
    },
    {
      "CodeGarantie": "RFRA",
      "MontantPrimeHT": "0.00",
      "MontantTotalCommissions": "0.00",
      "MontantTotalTaxes": "0.00",
      "MontantPrimeTTC": "0.00",
      "Plafond": "Montant de la franchise",
      "Franchise": "0€"
    }
  ]
}

Response 400

{
  "statusCode": 400,
  "message": "Bad request"
}

Response 401

{
  "statusCode": 401,
  "message": "Unauthorized, please provide a valid PartnershipCode."
}

Response 524

{
  "statusCode": 524,
  "message": "A Timeout Occurred, please retry"
}

Code samples

@ECHO OFF

curl -v -X POST "https://api.la-parisienne.fr/MOTO_LCD/getPrice"
-H "PartnershipCode: "
-H "Content-Type: application/json"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("PartnershipCode", "");
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            var uri = "https://api.la-parisienne.fr/MOTO_LCD/getPrice?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.la-parisienne.fr/MOTO_LCD/getPrice");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("PartnershipCode", "");
            request.setHeader("Content-Type", "application/json");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://api.la-parisienne.fr/MOTO_LCD/getPrice?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("PartnershipCode","");
                xhrObj.setRequestHeader("Content-Type","application/json");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.la-parisienne.fr/MOTO_LCD/getPrice";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"" forHTTPHeaderField:@"PartnershipCode"];
    [_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.la-parisienne.fr/MOTO_LCD/getPrice');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'PartnershipCode' => '',
    'Content-Type' => 'application/json',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'PartnershipCode': '',
    'Content-Type': 'application/json',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('api.la-parisienne.fr')
    conn.request("POST", "/MOTO_LCD/getPrice?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'PartnershipCode': '',
    'Content-Type': 'application/json',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('api.la-parisienne.fr')
    conn.request("POST", "/MOTO_LCD/getPrice?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.la-parisienne.fr/MOTO_LCD/getPrice')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['PartnershipCode'] = ''
# Request headers
request['Content-Type'] = 'application/json'
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body