The tutorials in the section provide examples of creating a payment return request using the PagoNxt Payments Hub API pacs.003.001.08 message format. For each tutorial example, the following sections must be completed.
Submit the payment
This section describes how to submit a payment via a pacs.003 HTTP request to the Payments Hub API. It also illustrates a successful response.
Request
Create and send a request using the following operation:
POST https://sandbox.api.pagonxt.com/payments/pacs003/v08Headers
The request must contain the headers shown in the following table.
Table: Submit the payment - Required request headers.
Header name | Description | Required/Optional | Values |
|---|---|---|---|
X-Client-Id | Client ID | Required | <Client ID> |
sca-token |
| Required | <SCA Token> |
Request body
The request must include a JSON payload object in the request body. The JSON payload is a pacs.003 ISO message with the fitoFICstmrCdtTrf root element, and it contains the request details for submitting a payment.
The below tutorials provide some examples of payloads. For details on all the required and optional message fields, see Message field definition for pacs.003
Tutorials
Response
If the request is valid, you receive an HTTP 201 Created response, which means that the payment return request was successfully submitted. In addition, the response body returns the data JSON object, which contains payment return details. If the request is submitted again with the same message ID, you receive an HTTP 200 OK response. For further details of HTTP response codes and instructions on how to handle errors, see HTTP codes and request error handling.
Element | Description | Data type |
|---|---|---|
paymentsHubId | Payments Hub ID, which uniquely identifies your payment return request in Payments Hub. You can use it if you later need to retrieve the payment return details. | String |
paymentId | Message ID you defined in the request as the grpHdr.msgId field value | String |
status | Current status of the payment return. Since Payments Hub stores all requests for a while before performing the transaction settlement, this value is returned as PENDING. | String |
creationDateTime | Date and time of creation | String |
Example response body:
{
"data": {
"paymentsHubId": "01838244-f53a-35ff-b870-fd81c8f3b64d",
"paymentId": "MsgId-6186662747",
"status": "PENDING",
"creationDateTime": "2025-06-09T11:23:09.6006"
}
}