v1

latestOpenAPI 3.0.3Apache License Version 2.02026-07-2631211285.4 KB
Refund Services

Get Refund

Service to get a previously generated refund.

get/v1/payment/orders/{order_id}/refunds/{refund_id}

Path parameters

order_idstring required

Order ID returned by create payment service

refund_idstring required

Refund ID returned by create refund service

Headers

Content-Typestring required

The Media type of the body of the request. Default value for payment provider protocol is application/json

Acceptstring required

Acceptable media type(s) for the response. Default value for payment provider protocol is application/json

Response

Refund information

order_idstring required

Order ID returned by create payment service

codestring

Standardized error code (applies only for error cases)

messagestring

Message associated with the error code (applies only for error cases)

Example response

{
  "amount": {
    "currency_code": "BRL",
    "value": 100.56
  },
  "status": {
    "error": {
      "code": "G01",
      "message": "Gateway, payment method not supported"
    }
  },
  "order_id": "9dd3f765-a51a-49d8-b6af-a51d5a0b3f7f"
}