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