GET /{merchantId}/profile/cid/{cid}

Path parameters

  • merchantId string Required

    Identyfikator klienta

  • cid string Required

    Identyfikator klienta.

    Maximum length is 36. Format should match the following pattern: ^[A-Za-z0-9\x2D]+$.

Responses

  • 200 application/json

    Zapytanie wykonane poprawnie

    Hide response attribute Show response attribute object
    • paymentProfiles array[object]

      Lista profili kartowych

      Hide paymentProfiles attributes Show paymentProfiles attributes object

      Dane profilu kartowego

      • id string(uuid)

        Identyfikator profilu jako 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

        Identyfikator klienta

      • merchantCustomerId string

        Identyfikator płatnika

      • firstName string

        Imię płatnika

      • lastName string

        Nazwisko płatnika

      • email string

        Adres e-mail płatnika w formacie zgodnym ze standardem RFC 5322 oraz RFC 6531.

      • maskedNumber string

        Częściowo zamaskowany numer karty płatnika

      • month string

        Ważność karty płatniczej - miesiąc

      • year string

        Ważność karty płatniczej - rok

      • organization string

        Organizacja karty płatniczej

      • isActive integer

        Status aktywności profilu kartowego. 1 - aktywny, 0 - nieaktywny

        Values are 0 or 1.

      • profile string

        Typ profilu kartowego.

        Values are ONE_CLICK or RECURRING.

      • firstTransactionId string

        Zewnętrzny identyfikator transakcji rejestrującej. Wymagany przy obciążaniu karty w płatnościach OneClick i rekurencyjnej bez profilu.

GET /{merchantId}/profile/cid/{cid}
curl \
 --request GET 'https://sandbox.api.imoje.pl/v1/merchant/{merchantId}/profile/cid/{cid}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "paymentProfiles": [
    {
      "id": "46f095b4-be6f-4ea0-8052-475ac8fbf218",
      "year": "2029",
      "email": "john.doe@example.com",
      "month": "12",
      "profile": "ONE_CLICK",
      "isActive": 1,
      "lastName": "Doe",
      "firstName": "John",
      "merchantMid": "rgfnb43ub57pry2nuc13",
      "maskedNumber": "****1111",
      "organization": "MASTERCARD",
      "firstTransactionId": "MCC1111111111",
      "merchantCustomerId": "yourMerchantCustomerId"
    }
  ]
}