ATM Payment
The process works as follows:
- Generate ATM reference;
- The user pays the reference at the ATM/online banking;
- SIBS communicates the confirmation to PayPay;
- PayPay notifies the payment status;
The following flow illustrates how ATM payment works:

1. Generate ATM reference
- Request
- Response
POST /payments/references
{
"type": "payment",
"amount": 100,
"callbackUrl": "https://teste.pt", // Opcional se usar webhooks
"availableMethods": [
{
"code": "MB"
}
],
"validDate": {
"start": "2022-04-01T14:45:56+00:00",
"end": "2022-04-30T23:59:59+01:00"
}
}
{
"apiVersion": "1.4.0",
"date": "2022-03-09T14:45:56+00:00",
"success": true,
"data": {
"id": "50438",
"type": "payment",
"referenceDetails": {
"entity": "12797",
"reference": "002492617"
},
"stateDetails": {
"state": "pending"
},
"amount": 100,
"createdAt": "2022-03-09T14:45:56+00:00",
"updatedAt": "2022-03-09T14:45:56+00:00",
"validDate": {
"start": "2022-04-01T14:45:56+00:00",
"end": "2022-04-30T23:59:59+01:00"
},
"availableMethods": [
{
"code": "MB",
"type": "REALTIME",
"name": "Multibanco"
}
]
}
}
2. The user pays the reference
If a callback URL or webhook is specified, a notification will be sent.3. Check the payment status
GET /payments/{id}
{
"apiVersion": "1.4.0",
"date": "2022-03-09T14:45:56+00:00",
"success": true,
"data": {
"id": "50438",
"type": "payment",
"referenceDetails": {
"entity": "12797",
"reference": "002492617"
},
"stateDetails": {
"state": "confirmed",
"createdAt": "2021-10-07T18:07:46+01:00"
},
"amount": 100,
"createdAt": "2022-03-09T14:45:56+00:00",
"updatedAt": "2022-03-09T14:45:56+00:00",
"validDate": {
"start": "2022-04-01T14:45:56+00:00",
"end": "2022-04-30T23:59:59+01:00"
},
"availableMethods": [
{
"code": "MB",
"type": "REALTIME",
"name": "Multibanco"
}
]
}
}