POST
/
customers
/
{customer_id}
/
mandates
curl --request POST \
  --url https://sandbox.hyperswitch.io/customers/{customer_id}/mandates \
  --header 'api-key: <api-key>'
[
  {
    "mandate_id": "<string>",
    "status": "active",
    "payment_method_id": "<string>",
    "payment_method": "<string>",
    "payment_method_type": "<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>",
      "card_isin": "<string>",
      "card_issuer": "<string>",
      "card_network": "Visa",
      "card_type": "<string>",
      "nick_name": "<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
header
required

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.

Response

200
application/json
List of retrieved mandates for a customer

The response is of type object[].