Pobranie danych linku płatności Run in API Explorer
Ask AI
GET
/{merchantId}/payment/{paymentId}
curl \
--request GET 'https://sandbox.api.imoje.pl/v1/merchant/{merchantId}/payment/{paymentId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "c7c8c9fd-4239-44a7-8c66-63f79226c13e",
"url": "https://paywall.imoje.pl/s/ev3rBoIc3v",
"simp": "",
"title": "yourTitle",
"amount": 100,
"isUsed": true,
"status": "settled",
"usedAt": 1735686000,
"created": 1735686000,
"orderId": "yourOrderId",
"validTo": null,
"currency": "PLN",
"customer": {
"email": "john.doe@example.com",
"phone": "+48501501501",
"locale": "pl",
"lastName": "Doe",
"firstName": "John"
},
"isActive": true,
"modified": 1735686000,
"returnUrl": "https://yourshopdomain.com/return",
"serviceId": "2a249f52-d29c-46e7-9575-e65a889c7d38",
"isGenerated": false,
"transactions": [
{
"id": "c7c8c9fd-4239-44a7-8c66-63f79226c13e",
"type": "sale",
"title": "yourTitle",
"amount": 100,
"source": "web",
"status": "settled",
"created": 1735686000,
"orderId": "yourOrderId",
"payment": {
"id": "c7c8c9fd-4239-44a7-8c66-63f79226c13e",
"status": "settled"
},
"currency": "PLN",
"modified": 1735686000,
"serviceId": "2a249f52-d29c-46e7-9575-e65a889c7d38",
"paymentMethod": "blik",
"notificationUrl": "https://yourshopdomain.com/notification",
"paymentMethodCode": "blik"
}
],
"notificationUrl": "https://yourshopdomain.com/notification",
"confirmVisitedAt": 1735686000,
"failureReturnUrl": "https://yourshopdomain.com/failure",
"isConfirmVisited": true,
"successReturnUrl": "https://yourshopdomain.com/success"
}