Authentication Updated on 22-12-2014

There are two authentication methods

In easypay's APIs, authentication can be done by two methods: IP or Code.

Authentication by IP

Whenever we receive a call regarding you easypay's USER we check if the IP is in the authorization table. If not the request is denied.
You can add up to three IPs.
You can configure this on easypay's backoffice under "IP Configuration". For each CIN you have to specify what are the IPs authorized.
Click on the green arrow to save.

Authentication by code

Whenever we receive a call regarding you easypay's USER we check if the CODE matches the one we have on our databases. If not the request is denied.
You can configure this code on easypay's backoffice under "Code Configuration". For each CIN you have to specify a different code.
To enable CODE authentication you must select "code" on "validation" field, and click on "Guardar alterações"
Once this is done you will see a random code generated below the "validation" field.
Send that code on EVERY API call on variable "s_code".