This section describes how to retrieve the payment refund details via a pacs.028 HTTP request to the PagoNxt Payments Hub API. To send this request, you need to provide the Payments Hub ID.
Request
Create and send a request using the following operation:
GET https://sandbox.api.pagonxt.com/payments/pacs028/v01/{paymentsHubId}Headers
The request must contain the headers shown in the following table.
Header name | Description | Required/ Optional | Values |
|---|---|---|---|
X-Client-Id | Client ID | Required | <Client ID> |
Parameters
The request must contain the path parameter shown in the following table.
Parameter type | Parameter name | Description | Data format | Required/ Optional |
|---|---|---|---|---|
Path | paymentsHubId | Payments Hub ID related to the payment refund whose details you want to retrieve. This is the value you received when you originally submitted the payment refund request. | String | Required |
Response
If the request is valid, you receive an HTTP 200 OK response, which means that the payment refund details were successfully retrieved. For further details of HTTP response codes and instructions on how to handle errors, see HTTP codes and request error handling .
In addition to the response code, the response body returns the fIToFIPmtRvsl JSON object, which contains a pacs.007 ISO message. This message contains different elements depending on which payment scheme was used in the original transaction.
Response body
The following tutorials provide specific examples of the pacs.028 message per scheme