---
updatedAt: 2026-06-03T07:27:26.000Z
agentTools:
  projectIndex: https://partner.getpliant.com/llms.txt
---

# Quick Start for Travel API Consumers

This guide helps travel platforms (booking engines, TMCs, OTAs) issue virtual cards for each trip or booking. You'll learn how to create cards on-demand, set spending controls, and track transactions

## Step 1: Get your organization and cardholder IDs

Every card belongs to an organization and a cardholder. If you're using a single technical cardholder (recommended for automated integrations), fetch these IDs once and store them.

```
GET /organizations
GET /cardholders
```

***

## Step 2: Find your card configuration

Every card needs a `cardConfig` that defines its type and features. For travel, you'll typically use configurations containing `TRAVEL`; these come with pre-configured merchant restrictions (e.g.: only travel-related purchases allowed).

```
GET /cards/available-cards
```

Returns available configurations, like `PLIANT_VIRTUAL_TRAVEL`.

***

## Step 3: Issue a card

Create a virtual card instantly. In one API call, you can set everything: spend limit, validity dates, traveler name, and custom fields for your booking reference.

```
POST /cards/{cardholderId}/instant
```

```json
{
  "organizationId": "your-org-id",
  "cardConfig": "pliant_virtual_travel",
  "label": "Hotel Marriott - John Smith",
  "limit": 50000,
  "transactionLimit": 50000,
  "validFrom": "2026-03-01",
  "validTo": "2026-03-05",
  "validTimezone": "Europe/Berlin",
  "customFields": {
    "bookingRef": "BK-12345"
  }
}
```

### Key parameters explained

<Table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit` / `transactionLimit`
      </td>

      <td>
        Maximum spend in cents (€500.00 = 50000). Set both to the same value for a fixed budget.
      </td>
    </tr>

    <tr>
      <td>
        `validFrom` / `validTo`
      </td>

      <td>
        Card only works within these dates. Perfect for matching trip dates.
      </td>
    </tr>

    <tr>
      <td>
        `validTimezone`
      </td>

      <td>
        Timezone for validity dates (e.g., `Europe/Berlin`).
      </td>
    </tr>

    <tr>
      <td>
        `customFields`
      </td>

      <td>
        Your internal IDs (booking ref, cost center, etc.) — copied to every transaction.
      </td>
    </tr>

    <tr>
      <td>
        `maxTransactionCount`
      </td>

      <td>
        (Optional) Limit number of transactions. Set to `1` for single-use behavior.

        **If not set the value will default to&#x20;**`2`.
      </td>
    </tr>
  </tbody>
</Table>

***

## Step 4: Fine-tune with card controls

Travel cards come with sensible defaults, but you can add more restrictions if needed, for example:

```json
"cardControls": {
  "categories": {
    "type": "MCC",
    "values": ["3501", "3502", "7011"],
    "restriction": "ALLOWED"
  },
  "merchants": {
    "type": "MATCH_TERM",
    "values": ["MARRIOTT", "HILTON"],
    "restriction": "ALLOWED"
  }
}
```

See <Anchor target="_blank" href="/docs/card-controls-1">Card Controls</Anchor> for all options including time-based restrictions.

***

## Step 5: Get the card number (PAN & CVV)

After issuing a card, you need the actual card number to send to the merchant.

**Option A: Two calls**

Issue the <Anchor target="_blank" href="/reference/issue-card">card first</Anchor>, then fetch sensitive data:

```
GET /card-details/{cardId}
```

**Option B: One call (PCI-compliant only)**

Issue the card and get PAN/CVV in one request:

```
POST /cards/{cardholderId}/instant-pci
```

> ⚠️ **PCI-DSS required**
>
> Accessing card sensitive data requires PCI-DSS compliance. If you're not certified, use our <Anchor target="_blank" href="/docs/web-widget-meawallet">secure web widget</Anchor> instead.

***

## Step 6: Track transactions with callbacks

Subscribe to callback events to get notified when transactions happen. This is how you'll know when a hotel charges the card.

```
POST /transactions/subscription
```

```json
{
  "url": "https://your-server.com/pliant-webhook",
  "event": "TRANSACTION_CONFIRMED"
}
```

### Key events for travel

| Event                    | Description                                    |
| ------------------------ | ---------------------------------------------- |
| `TRANSACTION_AUTHORIZED` | Payment is pending (e.g.: hotel authorization) |
| `TRANSACTION_CONFIRMED`  | Payment is complete (e.g.: final charge)       |
| `TRANSACTION_UPDATED`    | Payment is cleared (BOOKED)                    |
| `CARD_DETAILS_CHANGED`   | Card status changed (terminated, locked, etc.) |

***

## Best practices

### Hotel booking with exact dates

Set `validFrom` to check-in, `validTo` to checkout + 1 day (for incidentals). Card auto-terminates after.

### Airline ticket purchase

Use `maxTransactionCount: 1` for one-time use. Set limit to exact ticket price + small buffer for fees.

### Trip cancelled? Terminate the card

Call `POST /cards/{cardId}/terminate` to immediately disable the card. No further charges possible.

***

## Reconciliation options

Match transactions back to your bookings using one of these methods:

* **Callbacks**: Real-time webhooks (recommended)
* **Transaction API**: poll `GET /transactions` and `POST /transactions/details` for the most relevant transaction details
* **Accounting Transaction API**: poll `POST /accounting/transactions` for data containing additional fields relevant for accounting
* **Monthly statements**: PDF/CSV via `GET /statements`
* **Custom CSV exports**: contact Pliant to configure exports matching your format

***

## Quick reference: essential endpoints

| Action      | Endpoint                              | Description           |
| ----------- | ------------------------------------- | --------------------- |
| Setup       | `GET /organizations`                  | Get org ID            |
|             | `GET /cardholders`                    | Get cardholder ID     |
|             | `GET /cards/available-cards`          | List card configs     |
| Issue cards | `POST /cards/{id}/instant`            | Create card instantly |
|             | `POST /cards/{id}/instant-pci`        | Create + get PAN/CVV  |
| Card data   | `GET /card-details/{cardId}`          | Get PAN & CVV         |
| Manage      | `POST /cards/{cardId}/terminate`      | Cancel card           |
|             | `PUT /cards/{cardId}/validity-period` | Extend dates          |
| Track       | `POST /transactions/subscription`     | Subscribe to webhooks |

***

## Next steps

* <Anchor target="_blank" href="/docs/card-entity">Card Entity</Anchor>: detailed card types and statuses
* <Anchor target="_blank" href="/docs/card-controls-1">Card Controls</Anchor>: all restriction options (MCCs, merchants, times)
* <Anchor target="_blank" href="/docs/web-widget-meawallet">PCI Web Widget</Anchor>: show card details without PCI compliance
* <Anchor target="_blank" href="/reference/list-transactions">Transactions API</Anchor>: query and filter transactions

***

Questions? Create a request <Anchor target="_blank" href="https://infinnity.atlassian.net/servicedesk/customer/portal/472">here</Anchor>.