Get Card Inquiry

get/api/inquiries/{inquiryId}

Retrieves a specific inquiry for the given id.

Inquiries are used to perform pre-payment checks. Depending on the type, the inquiries purpose can be to validate there are no active blocks on a card or cardholder, or to check their available balance.

Request

Path Parameters

  • inquiryIdstringrequired

    Primary identifier of the inquiry to fetch

Response

Successful operation.

Body application/json

  • idstringrequired

    Inquiry identifier.

  • typestringrequired

    The type of inquiry.

    This set is non-exhaustive and may grow over time, so consumers should tolerate unrecognised values. The current values are account-status-inquiry and balance-inquiry.

    Balance inquiries are not currently supported and are always declined with the result code transaction-not-permitted-to-cardholder.

  • livenessstringrequired
    Allowed values:livetest

    The resource liveness mode.

  • declineReasonstring

    Reason the inquiry was declined only if applicable.

  • resultobject

    Outcome of the inquiry. Present once a result has been recorded.

    • acceptedbooleanrequired

      Indicates whether the inquiry was accepted.

    • codestringrequired

      The result code for the inquiry.

    • messagestring

      A human-readable description of the result.

  • merchantobject

    Merchant descriptor. Present when the underlying network message carries merchant details.

    • idstring

      The merchant identifier from the payment network.

    • namestring

      The merchant's name.

    • terminalIdstring

      The merchant's payment terminal identifier.

    • categoryCodestring

      The merchant's ISO-18245 category code.

    • citystring

      The merchant's city name.

    • countryCodestring

      The merchant's ISO-3166-1 Alpha-2 country code.

  • cardobjectrequired

    The card the inquiry relates to.

    • idstringrequired

      Card identifier.

  • cardholderobjectrequired

    The cardholder the inquiry relates to.

    • idstringrequired

      Cardholder account identifier.

  • createdAtstring<date-time>required

    ISO 8601 timestamp of when the inquiry was recorded.

  • modifiedAtstring<date-time>required

    ISO 8601 timestamp of when the inquiry was last modified.