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

Request Information

URI Parameters

None.

Body Parameters

CreateFileRequest
NameDescriptionTypeAdditional information
ApiCode

Clé API Opti-Pro

string

None.

NoCode

Code commande

string

None.

EncodedCsvString

Fichier csv encodé

string

None.

FileImgExam

Chemin de l'image

string

None.

Request Formats

application/json, text/json

Exemple:
{
  "ApiCode": "sample string 1",
  "NoCode": "sample string 2",
  "EncodedCsvString": "sample string 3",
  "FileImgExam": "sample string 4"
}

application/xml, text/xml

Exemple:
<CreateFileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WsOptiPro">
  <ApiCode>sample string 1</ApiCode>
  <EncodedCsvString>sample string 3</EncodedCsvString>
  <FileImgExam>sample string 4</FileImgExam>
  <NoCode>sample string 2</NoCode>
</CreateFileRequest>

application/x-www-form-urlencoded

Exemple:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateFileRequest'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Exemple:
1

application/xml, text/xml

Exemple:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>