API - coding convention

Within the API we use a series of Coding Conventions that help maintain a more robust application and a consistent language. On this page you will find all the information about it.

Currencies

We always use euro cents to transmit economic values. This means that if our API returns:

amount: 1234

the value of amount is € 12.34.

Similarly, when you have to transmit data to our API you will have to use values expressed in cents of €.

Protocols

All API calls use the HTTP / 1.1 protocol. Here is an example of dialogue with our API:

				
					http --json GET https://api.sandbox.soisy.it/api/shops/{shopId}/loan-quotes\?amount\=50000\&instalments\=6 "X-Auth-token: {X-Auth-Token}"
GET /api/shops/{shopId}/loan-quotes?amount=50000&instalments=6 HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Type: application/json
Host: api.sandbox.soisy.it
X-Auth-token: {X-Auth-Token}
				
			

Ciao!

Siamo on line dal lunedì al venerdì dalle 9.30 alle 12.30 e dalle 14.30 alle 17.30

Scrivici in questi orari, grazie!