-
-
Save carneirocorp/1b54375be99e56f930d60ffde5c6cb0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finalidade: pagamento | |
===================== | |
POST /api/pdv/payment | |
Payload: | |
{ | |
orderId: number, | |
finalPrice: number, | |
comments: string, | |
} | |
Retorno: | |
Sucesso | |
HTTP 200 | |
body | |
{ | |
message: string /* Descrição do sucesso de negócio */ | |
data: null, | |
} | |
Falha orderId não encontrado: | |
HTTP 404 | |
body | |
{ | |
message: string /* Descrição do erro de negócio */ | |
data: null, | |
} | |
Falha aplicação outros: | |
HTTP 500 | |
body | |
{ | |
message: string /* Descrição do erro de negócio */ | |
data: {}, /* Objeto de exceção detalhado, para fim de log */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment