---
updatedAt: 2025-07-28T16:35:37.000Z
agentTools:
  projectIndex: https://docs.multisafepay.com/llms.txt
---

# Verify a card with Zero Authorization

```shell Shell
curl --request POST \
     --url 'https://testapi.multisafepay.com/v1/json/orders?api_key=<<websiteApiKey>>' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
  "type": "redirect",
  "gateway": "MASTERCARD",
  "order_id": "my-zero-authorization-test",
  "currency": "EUR",
  "amount": 0,
  "description": "Zero Authorization test",
  "payment_options": {
    "notification_method": "POST",
    "notification_url": "https://www.example.com/webhooks/payment",
    "redirect_url": "https://www.example.com/order/success",
    "cancel_url": "https://www.example.com/order/failed"
  },
  "recurring_model": "unscheduled",
  "customer": {
    "reference": "customer-001"
  }
}
'
```

```json Response Example
{
  "success": true,
  "data": {
    "order_id": "my-zero-authorization-test",
    "payment_url": "https://testpayv2.multisafepay.com/connect/<<sessionId>>/?lang=nl_NL",
    "session_id": "<<sessionId>>"
  }
}
```

# Create a card order

<!-- shell@7-10,12-18 -->

Create an order (see [recipe](https://docs.multisafepay.com/recipes/create-a-payment-pagelink)) and fill in the required parameters.

- Set `type` (string) to `redirect`.
- Set `gateway` to either:
    - `MAESTRO`
    - `MASTERCARD`
    - `VISA`

# Set the amount to 0

<!-- shell@11 -->

We validate the cardholder data without charging the customer.

# Optionally, create a token

<!-- shell@19-22 -->

1. Store the cardholder data as a token for recurring payments.

2. Set `recurring_model` to:
    - `cardOnFile`: The customer selects stored details for faster checkout.
    - `subscription`: You use the token to collect payments at specific intervals, e.g. weekly, monthly.
    - `unscheduled`: You use the token for event-triggered payments, e.g. mobile top-up when no credit left on phone.

For more information, see [Recurring payments](https://docs.multisafepay.com/docs/recurring-payments).