POST /dict/refunds
devolutionRequest.ind.writeeRequest
- Example
{
"refund": {
"refundAmount": 100,
"refundDetails": "houve fraude confirmada na transação.",
"refundReason": "fraud",
"transactionId": "e9999901012341234123412345678900"
}
}
Responses
The responses below represent Success(201) from the consumption.
- 🟢 201
- 🔴 400
- 🔴 401
- 🔴 403
- 🔴 500
- 🔴 503
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"refund": {
"contestedParticipant": "99999010",
"creationTime": "2020-01-17t10:00:00.000z",
"id": "91d65e98-97c0-4b0f-b577-73625da1f9fc",
"lastModified": "2020-01-17t10:00:00.000z",
"refundAmount": 200,
"refundDetails": "transação feita através de qr code falso em boleto",
"refundReason": "fraud",
"requestingParticipant": "99999011",
"status": "open",
"transactionId": "e9999901012341234123412345678900"
},
"responseTime": 0
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Could not parse request body",
"status": 400,
"title": "Bad Request",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/BadRequest"
},
"responseTime": 0
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Participant is not authenticated",
"status": 401,
"title": "Unauthorized"
},
"responseTime": 0
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Participant is not allowed to access this resource",
"status": 403,
"title": "Forbidden"
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Our service is currently experiencing an issue. We apologize for the inconvenience and are working to resolve it as soon as possible.",
"status": 500,
"title": "Internal Server Error"
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"detail": "Service is under scheduled maintenance",
"status": 503,
"title": "Service Unavailable",
"type": "https://dict.pi.rsfn.net.br/api/v2/error/ServiceUnavailable"
}
}