Service ID
- Retrieving transaction details
simpay-api (1.0.0)
https://docs.simpay.pl/_mock/en/apis/
https://api.simpay.pl/
Transaction description given by the partner, presented on the payment gateway
In this field you can send the channel ID, then the payer will be redirected directly to the page of the given channel For example, if you enter blik
, you will be redirected directly to the BLIK payment gateway. In this case, it is necessary to send antifraud.useragent
and customer.ip
.
Array with payment channel IDs that will be displayed to the payer on the gateway after redirection to the transaction url
A list of available channels along with their IDs can be obtained here Retrieving a list of channels for the service
Object in which we can define which channel types should be available on the payment gateway
- Mock server
https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions
https://api.simpay.pl/payment/{serviceId}/transactions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 1,
"currency": "PLN",
"description": "string",
"control": "string",
"customer": {
"name": "string",
"email": "user@example.com",
"ip": "string",
"countryCode": "PL"
},
"antifraud": {
"useragent": "string",
"steamid": 0,
"mcusername": "string",
"mcid": "string"
},
"billing": {
"name": "string",
"surname": "string",
"street": "string",
"building": "string",
"flat": "string",
"city": "string",
"region": "string",
"postalCode": "string",
"country": "string",
"company": "string"
},
"shipping": {
"name": "string",
"surname": "string",
"street": "string",
"building": "string",
"flat": "string",
"city": "string",
"region": "string",
"postalCode": "string",
"country": "string",
"company": "string"
},
"cart": [
{
"name": "string",
"quantity": 1,
"price": 0.01,
"producer": "string",
"category": "string",
"code": "string"
}
],
"returns": {
"success": "string",
"failure": "string"
},
"directChannel": "string",
"channels": [
"string"
],
"channelTypes": {
"blik": true,
"transfer": true,
"cards": true,
"ewallets": true,
"paypal": true,
"paysafe": true,
"latam": true
},
"referer": "string"
}'
{ "success": true, "data": { "transactionId": "1d87a1b3-18f8-4146-bcb1-c0c9f293b04f", "redirectUrl": "https://pay.simpay.pl/1d87a1b3-18f8-4146-bcb1-c0c9f293b04f" } }
- Mock server
https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions/{transactionId}
https://api.simpay.pl/payment/{serviceId}/transactions/{transactionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions/{transactionId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Transaction ID
Transaction identifier shared with the payer
Transaction status
Commission currency (PLN/EUR)
{ "success": true, "data": { "id": "328bd42d-d08b-43f6-9463-869e5bd32b4", "payer_transaction_id": "477YDX14", "status": "transaction_paid", "amount": { … }, "channel": "nest", "control": null, "description": null, "redirect": { … }, "customer": { … }, "billing": { … }, "shipping": { … }, "cart": null, "paid_at": "2023-12-07T05:21:50+01:00", "expires_at": null, "created_at": "2023-12-07T05:20:30+01:00", "updated_at": "2023-12-07T05:21:50+01:00" } }
- Mock server
https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions/{transactionId}/refunds
https://api.simpay.pl/payment/{serviceId}/transactions/{transactionId}/refunds
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.simpay.pl/_mock/en/apis/payment/{serviceId}/transactions/{transactionId}/refunds' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "success": true, "data": [ { … } ] }