Obciążenie profilu OneClick lub recurring Run in API Explorer
Body
Required
-
Identyfikator sklepu jako
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}$. -
Identyfikator profilu jako
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}$. -
Kwota transakcji w najmniejszej jednostce waluty np. grosze.
-
Waluta transakcji w standardzie
ISO 4217Maximum length is
3. Values arePLN,EUR,USD,GBP,CHF,SEK,HUF,CZK,BGN, orRON. -
Numer zamówienia
Maximum length is
100. Format should match the following pattern:^[A-Za-z0-9#_\-\.\\\\/ \u00C0-\u02C0]+$. -
Tytuł transakcji
Maximum length is
255. Format should match the following pattern:^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0"']+$. -
Dynamiczny adres notyfikacji, możliwość ustawienia konkretnego adresu dla pojedynczej transakcji. Adresy zawierające
localhostoraz porty zostaną odrzucone.Maximum length is
300. -
Dane do faktury wymagane przy aktywnej usłudze ING Księgowość oraz przy płatności
Split payment.Obiekt nie może być użyty, jeśli w sklepie włączona jest opłata serwisowa.
curl \
--request POST 'https://sandbox.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"
}
}
}