GET
/
mandates
/
{mandate_id}
curl --request GET \
  --url https://sandbox.hyperswitch.io/mandates/{mandate_id} \
  --header 'api-key: <api-key>'
{
  "mandate_id": "<string>",
  "status": "active",
  "payment_method_id": "<string>",
  "payment_method": "<string>",
  "card": {
    "last4_digits": "<string>",
    "card_exp_month": "<string>",
    "card_exp_year": "<string>",
    "card_holder_name": "<string>",
    "card_token": "<string>",
    "scheme": "<string>",
    "issuer_country": "<string>",
    "card_fingerprint": "<string>"
  },
  "customer_acceptance": {
    "acceptance_type": "online",
    "accepted_at": "2022-09-10T10:11:12Z",
    "online": {
      "ip_address": "123.32.25.123",
      "user_agent": "<string>"
    }
  }
}

Authorizations

api-key
string
headerrequired

Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Path Parameters

mandate_id
string
required

The identifier for mandate

Response

200 - application/json
mandate_id
string
required

The identifier for mandate

status
enum<string>
required

The status of the mandate, which indicates whether it can be used to initiate a payment.

Available options:
active,
inactive,
pending,
revoked
payment_method_id
string
required

The identifier for payment method

payment_method
string
required

The payment method

card
object
customer_acceptance
object