POST /{merchantId}/transaction/profile

Path parameters

  • merchantId string Required

    Merchant identifier

application/json

Body Required

  • serviceId string(uuid) Required

    Shop identifier as UUID v4

    Maximum 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}$.

  • paymentProfileId string(uuid) Required

    Payment profile identifier as UUID v4

    Maximum 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}$.

  • amount integer Required

    The transaction amount in the smallest currency unit, e.g. pennies.

  • currency string Required

    Transaction currency in the ISO 4217 standard

    Maximum length is 3. Values are PLN, EUR, USD, GBP, CHF, SEK, HUF, CZK, BGN, or RON.

  • orderId string Required

    Order ID

    Maximum length is 100. Format should match the following pattern: ^[A-Za-z0-9#_\-\.\\\\/ \u00C0-\u02C0]+$.

  • title string

    Transaction title

    Maximum length is 255. Format should match the following pattern: ^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0"']+$.

  • notificationUrl string(uri)

    Dynamic notification address, possibility to set a specific address for a single transaction. Addresses containing localhost and ports will be rejected.

    Maximum length is 300.

  • data object
    Hide data attribute Show data attribute object
    • multipayout array[object] Required

      Information about the account numbers to which the funds from the transaction are to be paid.
      The active multipayout function is required.

      Hide multipayout attributes Show multipayout attributes object
      • ban string Required

        Bank account number

        Minimum length is 26, maximum length is 26. Format should match the following pattern: ^[0-9]{26}$.

      • amount integer Required

        The transaction amount in the smallest currency unit, e.g. pennies.

      • label string Required

        Recipent name

        Maximum length is 70. Format should match the following pattern: ^[A-Za-z0-9\-\,\. \u00C0-\u02C0"']+$.

      • title string

        Transfer title.
        Its presence causes the transaction to be separated in the recipient's account. Specifying a parameter for one element requires it to be provided for the others.

        Maximum length is 105. Format should match the following pattern: ^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0"']+$.

  • invoice object

    Invoice details required for the active service ING Księgowość and for Split payment.

    Hide invoice attributes Show invoice attributes object
    • buyer object Required

      Buyer data

      Hide buyer attributes Show buyer attributes object
      • type string Required

        Buyer type. Takes the value PERSON individual recipient or COMPANY company

        Values are PERSON or COMPANY.

      • email string(email) Required

        E-mail address in a format compliant with the RFC 5322 and RFC 6531 standards

        Maximum length is 200.

      • fullName string Required

        Buyer's name and surname/company name

        Maximum length is 200. Format should match the following pattern: ^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0\u0400-\u04FF"']+$.

      • street string Required

        Street

        Maximum length is 200. Format should match the following pattern: ^[0-9a-zA-Z\s\-#.'"&,_/\u00C0-\u02C0]*$`.

      • city string Required

        City

        Maximum length is 100. Format should match the following pattern: ^[0-9a-zA-Z\s\-#.'"&,_/\u00C0-\u02C0]*$`.

      • postalCode string Required

        Postal code

        Maximum length is 30.

      • countryCodeAlpha2 string Required

        Alpha2 country code

        Maximum length is 2.

      • idCountryCodeAlpha2 string

        Country code identifier Alpha2. Required for the VAT_ID value of the idType parameter.

        Maximum length is 2.

      • idType string

        Identification number type. Required for the COMPANY value of the type parameter. Takes the value ID for PESEL or VAT_ID for NIP.

        Values are ID or VAT_ID.

      • idNumber string

        Tax Identification Number or Personal Identification Number. Required for the COMPANY value for the type parameter.

        Maximum length is 30.

    • positions array[object] Required

      List of products

      Hide positions attributes Show positions attributes object
      • name string Required

        Product name

      • code string Required

        Product code

      • quantity number Required

        Quantity. The minimum value is 0.

      • unit string Required

        Unit

      • grossAmount integer Required

        Gross unit value

      • taxStake string Required

        Tax stake

        Values are TAX_23, TAX_22, TAX_8, TAX_7, TAX_5, TAX_3, TAX_0, TAX_EXEMPT, TAX_NOT_LIABLE, TAX_REVERSE_CHARGE, or TAX_EXCLUDING.

      • discountAmount integer

        Discount amount

      • taxAmount integer

        Tax value in pence. Required only for Split Payment.

    • issueInvoice boolean

      Automatic invoice dispatch

    • basisForVatExemption object

      Basis for tax exemption

      Hide basisForVatExemption attributes Show basisForVatExemption attributes object
      • type string Required

        Values are DENTAL_TECHNICAN_SERVICES, DOCTOR_DENTIST_SERVICES, PHYSIOTHERAPY_SERVICES, NURSING_SERVICES, PSYCHOLOGICAL_SERVICES, MEDICAL_TRANSPORT_SERVICES, CARE_SERVICES, TUTORING, TEACHING_FOREIGN_LANGUAGES, ARTISTS, RENTING_PROPERTY, INSURANCE_SERVICES, CREDITS_AND_LOANS_SERVICES, GUARANTIEES, SPECIAL_CONDITIONS_FOR_EXEMPTION, UE_TRANSACTIONS, SUBJECTIVE_EXEMPTIONS, OTHER, or OTHER_OBJECTIVE_EXEMPTIONS.

      • text string

        Description. This parameter is required when the value OTHER is specified in the type parameter.

    • invoiceId string

      Invoice number. Required only for Split Payment.

Responses

  • 200 application/json

    Request executed correctly

    Hide response attribute Show response attribute object
    • transaction object
      Hide transaction attributes Show transaction attributes object
      • id string(uuid)

        Transaction identifier as UUID v4

        Maximum 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}$.

      • type string

        Transaction type

        Values are sale or refund.

      • status string

        Status

        Values are new, pending, settled, authorized, rejected, cancelled, or error.

      • source string

        Transaction source

        Values are web or api.

      • created integer | null

        Creation date as timestamp

      • modified integer | null

        Modification date as timestamp

      • notificationUrl string(uri)

        Dynamic notification address, possibility to set a specific address for a single transaction. Addresses containing localhost and ports will be rejected.

        Maximum length is 300.

      • serviceId string(uuid)

        Shop identifier as UUID v4

        Maximum 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}$.

      • amount integer

        The transaction amount in the smallest currency unit, e.g. pennies.

      • currency string

        Transaction currency in the ISO 4217 standard

        Maximum length is 3. Values are PLN, EUR, USD, GBP, CHF, SEK, HUF, CZK, BGN, or RON.

      • title string

        Transaction title

        Maximum length is 255. Format should match the following pattern: ^[A-Za-z0-9#&_\-\,\.\\\\/ \u00C0-\u02C0"']+$.

      • orderId string

        Order ID

        Maximum length is 100. Format should match the following pattern: ^[A-Za-z0-9#_\-\.\\\\/ \u00C0-\u02C0]+$.

      • paymentMethod string

        Payment method description

        Values are blik, pbl, ing, card, wallet, imoje_paylater, wt, or imoje_installments.

      • paymentMethodCode string

        Payment method code

        Values are blik, imoje_twisto, paypo, blik_paylater, pragma_go, gpay, applepay, visa_mobile, paypal, ecom3ds, oneclick, recurring, ing, mtransfer, bzwbk, pekao24, inteligo, ipko, getin, noble, creditagricole, alior, millennium, citi, bos, bnpparibas, pocztowy, plusbank, bs, bspb, nest, pbs, cs, mp, kb, rf, pg, pf, cb, uc, posta, sporo, tatra, viamo, vub, wt, wt_split, inbank, or inbank_0.

      • payment object
        Hide payment attributes Show payment attributes object
        • id string(uuid)

          Payment link identifier as UUID v4

          Maximum 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}$.

        • status string

          Status

          Values are new, pending, settled, authorized, rejected, cancelled, or error.

      • paymentProfile object

        Card profile data

        Hide paymentProfile attributes Show paymentProfile attributes object
        • id string(uuid)

          Payment profile identifier as UUID v4

          Maximum 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}$.

        • merchantMid string

          Merchant identifier

        • merchantCustomerId string

          Customer identifier

        • firstName string

          Fisrt name of the payment card holder

        • lastName string

          Last name of the payment card holder

        • maskedNumber string

          Partially masked payment card number

        • month string

          Card validity - month

        • year string

          Card validity - year

        • organization string

          Payment card organisation

        • isActive integer

          Card profile activity status. 1 - active, 0 - inactive

          Values are 0 or 1.

        • profile string

          Card profile type

          Values are ONE_CLICK or RECURRING.

  • 400 application/json

    Profil jest nieaktywny

    Hide response attribute Show response attribute object
    • apiErrorResponse object

      Error details

      Hide apiErrorResponse attributes Show apiErrorResponse attributes object
      • code string

        Error code

      • message string

        Error message

      • instance object

        Body of the HTTP request sent to imoje.

      • errors array[object]

        List of errors

        Hide errors attributes Show errors attributes object
        • property string

          Location of the error

        • message string

          Cause of error

POST /{merchantId}/transaction/profile
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"}'
Request example
{
  "title": "yourTitle",
  "amount": 1000,
  "orderId": "yourOrderId",
  "currency": "PLN",
  "serviceId": "ab16c18c-e83b-424f-80c9-f839ed23181f",
  "paymentProfileId": "39ac1087-e632-41ff-acb8-8d661068a9d5"
}
Response examples (200)
{
  "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"
  }
}
Response examples (400)
{
  "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"
    }
  }
}