OneClick or recurring profile debiting Run in API Explorer
Body
Required
-
Shop identifier as
UUID v4Maximum length is
36. Format should match the following pattern:^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$. -
Payment profile identifier as
UUID v4Maximum length is
36. Format should match the following pattern:^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$. -
The transaction amount in the smallest currency unit, e.g. pennies.
-
Transaction currency in the ISO 4217 standard
Maximum length is
3. Values arePLN,EUR,USD,GBP,CHF,SEK,HUF,CZK,BGN, orRON. -
Order ID
Maximum length is
100. Format should match the following pattern:^[A-Za-z0-9#_\-\.\\\\/ \u00C0-\u02C0]+$. -
Transaction title
Maximum length is
255. Format should match the following pattern:^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0"']+$. -
Dynamic notification address, possibility to set a specific address for a single transaction. Addresses containing
localhostand ports will be rejected.Maximum length is
300. -
Invoice details required for the active service ING Księgowość and for
Split payment.
curl \
--request POST 'https://api.imoje.pl/v1/merchant/{merchantId}/transaction/profile' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"title":"yourTitle","amount":1000,"orderId":"yourOrderId","currency":"PLN","serviceId":"ab16c18c-e83b-424f-80c9-f839ed23181f","paymentProfileId":"39ac1087-e632-41ff-acb8-8d661068a9d5"}'
{
"title": "yourTitle",
"amount": 1000,
"orderId": "yourOrderId",
"currency": "PLN",
"serviceId": "ab16c18c-e83b-424f-80c9-f839ed23181f",
"paymentProfileId": "39ac1087-e632-41ff-acb8-8d661068a9d5"
}
{
"transaction": {
"id": "440c5518-daf2-46e3-b7b6-22a0734648b2",
"type": "sale",
"title": "Card profile debiting",
"amount": 1000,
"source": "api",
"status": "pending",
"created": 1735686000,
"orderId": "Card profile debiting",
"payment": {
"id": "440c5518-daf2-46e3-b7b6-22a0734648b2",
"status": "pending"
},
"currency": "PLN",
"modified": 1735686000,
"serviceId": "e2bb5020-a185-4f44-ba99-8f2aeb0e3be7",
"paymentMethod": "card",
"paymentProfile": {
"id": "46f095b4-be6f-4ea0-8052-475ac8fbf218",
"year": "2029",
"month": "12",
"profile": "ONE_CLICK",
"isActive": 1,
"lastName": "Doe",
"firstName": "John",
"merchantMid": "rgfnb43ub57pry2nuc13",
"maskedNumber": "****1111",
"organization": "MASTERCARD",
"merchantCustomerId": "yourMerchantCustomerId"
},
"notificationUrl": "https://asdgs.requestcatcher.com/",
"paymentMethodCode": "oneclick"
}
}
{
"apiErrorResponse": {
"code": "TRX-ERROR-120301",
"errors": [],
"message": "Payment profile inactive.",
"instance": {
"title": "yourTitle",
"amount": 1000,
"orderId": "yourOrderId",
"currency": "PLN",
"serviceId": "ab16c18c-e83b-424f-80c9-f839ed23181f",
"paymentProfileId": "39ac1087-e632-41ff-acb8-8d661068a9d5"
}
}
}