Lunette

APIDescription
POST InscriptLunette

Create a glasses order from the Smart Kiosk. Recevoir les infos de prescription ,monture, lentille et succursale et retourner une valeur de statut

Paramètres reçus

- Clé de l'API

- Code client lunetterie

- Code succursale

- Prescription

o Sphère(OD / OS)

o Cylindre(OD / OS)

o Axe(OD / OS)

o Addition(OD / OS)

o Vertex(OD / OS)

o Acuité visuelle (OD/OS)

o Prisme 1 (OD/OS)

o Base prisme 1 (OD/OS)

o Prisme 2 (OD/OS)

o Base prisme 2 (OD/OS)

o Balance(OD / OS)

o Image prescription (pour imagerie)

- Code monture fournisseur

- Code lentille Opti-Pro

1 Returned value (integer) :

0 - Successful Order

1 - Store Id invalid

2 - Store connection error

3 - Client Id invalid

4 - Frame Id invalid

5 - Lens Id invalid

6 - Error saving the exam

7 - Error when registering the order

8 - Non-existent resource code when saving the imagery

9 - Imaging Type not found

10 - Error saving the imaging

11 - Invalid API Key

12 - Invalid CSV file

POST: wsoptipro/InscriptLunette

POST CreateGlassesFileGG

Create a glasses order from Glasses Gallery. Receieve prescription,frames,lens and store infos from a CSV file encoded in Base64. The webservice returns a single status value

Received parameters

- API Key

- Order id

- String of the encoded CSV file

1 Returned value (integer) :

0 - Successful Order

1 - Store Id invalid

2 - Store connection error

3 - Client Id invalid

4 - Frame Id invalid

5 - Lens Id invalid

6 - Error saving the exam

7 - Error when registering the order

8 - Non-existent resource code when saving the imagery

9 - Imaging Type not found

10 - Error saving the imaging

11 - Invalid API Key

12 - Invalid CSV file

POST: wsoptipro/CreateGlassesFileGG

POST CreateGlassesFilePA

Create an order from the shopping cart. Receieve prescription,frames,lens and store infos from a CSV file encoded in Base64. The webservice returns a single status value

Received parameters

- API Key

- Order id (filename)

- String of the encoded CSV file

1 Returned value (integer) :

0 - Successful Order

1 - Store Id invalid

2 - Store connection error

3 - Client Id invalid

4 - Frame Id invalid

5 - Lens Id invalid

6 - Error saving the exam

7 - Error when registering the order

8 - Non-existent resource code when saving the imagery

9 - Imaging Type not found

11 - Invalid API Key

12 - Invalid CSV file

POST:/CreateGlassesFilePA

POST GetQteInvMonture

Fonctions qui recoit le code de la monture et retourne la quantité disponible en inventaire. Si erreur la fonction retourne -999

Paramètres reçus

- Clé de l'API

- Code monture fournisseur

1 Returned value (integer) :

If successful Qty in stock

if error code -999 is returned

POST: /GetQteInvMonture

POST GetCatMontures

Fonction de récupération du catalogue de montures. Si erreur la fonction retourne une string vide

Paramètres reçus

- Clé de l'API

1 Returned value (string) :

If successful Base64 encoded CSV file containing the Frames catalog

if error empty string is returned

POST: /GetCatMontures

POST GetLstRV

Fonction de récupération des rendez-vous à confirmer pour une journée donnée. Si Succès: Un tableau contenant la liste des rendez-vous. Si Erreur: tableau vide

Paramètres reçus

- Clé de l'API

- Date(Format yyyy-MM-dd) pour laquelle les rendez-vous à confirmer doivent être retournés

1 Returned value (string) :

If successful an Array of all the appointment for that date

if error empty Array is returned

POST: /GetLstRV

POST SetPresenceRV

Fonction de définition de la présence d'un client à son rendez-vous. Si Succès: 0 Inscription réussie. Si Erreur: Id de plage horaire invalide

Paramètres reçus

- Clé de l'API

- Id du RV à confirmer

1 Returned value (integer) :

If successful returns 0

if error returns 1

POST: /SetPresenceRV