Skip to content
Vinícius edited this page May 7, 2018 · 5 revisions

Welcome to the level_service wiki!

POST /purchase - Registra uma nova compra

head {

token (string),
storeid (string),
cellphone (string),
value (double),
discount (double)

} return (

200, 
400, //invalid format (cellphone, value, discount), insufficient credits
401, //invalid token
404, //store not found
500

)

GET /credit - Retorna a quantidade de créditos que o usuário tem

head {

token (string),
storeid (string),
cellphone (string)

} return (

200, 
401, //invalid token
404, //store not found
500

) 200 - (

double

)

Clone this wiki locally