---
updatedAt: 2026-04-21T09:28:39.000Z
agentTools:
  projectIndex: https://customer-api.getpliant.com/llms.txt
---

# Transaction Details

> 🔒 **Required scope:** `spend:read`
>
> The API credential calling this endpoint must be granted the `spend` category with `read` or `read & write` access.
> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.
> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.

Returns all transaction details for the given IDs. You can also request transaction details per card(s), cardholder(s) or organization(s). 
The API returns all transaction details to the given input which can be found in the system. So you can also combine the different input fields (OR relation). 
Be aware that the usage of card, [cardholder](/docs/cardholder-entity) or organizations IDs most likely add multiple transaction details themselves. 
Also cardholders can be part of multiple organizations, thus when searching via [cardholder](/docs/cardholder-entity) IDs, it might return more data than it would for just one organization this [cardholder](/docs/cardholder-entity) is part of. 
At least one parameter has to be set.

**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:
- we removed the following data from the response body: `merchantId` (field), `merchantName` (field)
- we added the following data to the response body: `merchantData` (object), `merchantRawData` (object), `authCode` (field)


# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "name": "API Support",
      "email": "support@getpliant.com",
      "url": "https://www.getpliant.com"
    },
    "title": "Pliant Customer API",
    "description": "Pliant Customer API",
    "version": "2.1.0",
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/license/MIT"
    }
  },
  "servers": [
    {
      "url": "https://partner-api.getpliant.com/api",
      "description": "Pliant Production Server"
    },
    {
      "url": "https://sandbox.partner-api.getpliant.com/api",
      "description": "Pliant Sandbox Server"
    },
    {
      "url": "https://pci-api.getpliant.com",
      "description": "PCI Vault Production Server"
    },
    {
      "url": "https://pci-sandbox.partner-api.getpliant.com",
      "description": "PCI Vault Sandbox Server"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "java",
      "kotlin"
    ],
    "headers": [
      {
        "key": "Pliant-API-Version",
        "value": "2.1.0"
      }
    ]
  },
  "tags": [
    {
      "name": "Card Accounts",
      "description": "This tag is for operations related to card accounts"
    },
    {
      "name": "Cards",
      "description": "This tag is for operations related to cards"
    },
    {
      "name": "Transactions",
      "description": "This tag is for operations related to transactions"
    }
  ],
  "paths": {
    "/card-accounts/{cardAccountId}/deactivate": {
      "post": {
        "summary": "Deactivate Card Account",
        "description": "> 🔒 **Required scope:** `financial-accounts:write`\n>\n> The API credential calling this endpoint must be granted the `financial-accounts` category with `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nDeactivates a card account. The organization ownership is automatically determined from the card account. A card account with `status` `SUPERSEDED` cannot be deactivated, since it is already in a terminal state.\n",
        "x-required-scopes": [
          "financial-accounts:write"
        ],
        "tags": [
          "Card Accounts"
        ],
        "operationId": "deactivate-card-account",
        "parameters": [
          {
            "name": "cardAccountId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the card account to deactivate.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Card account successfully deactivated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts/post/responses/201/content/application~1json/schema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Cannot deactivate the default card account.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorCode": {
                      "type": "string",
                      "description": "The error code"
                    },
                    "exceptionId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The id of the exception that was thrown"
                    },
                    "message": {
                      "type": "string",
                      "description": "The cause of the error or further explanations on the error"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1cards/post/responses/404"
          },
          "429": {
            "$ref": "#/paths/~1cards/get/responses/429"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    },
    "/cards": {
      "get": {
        "summary": "List Cards",
        "description": "> 🔒 **Required scope:** `cards:read`\n>\n> The API credential calling this endpoint must be granted the `cards` category with `read` or `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nReturns a list of cards. You can use the `limit`, `page`, `sortBy` and `sortDirection` parameters to filter and sort the results.\n\n**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:\n- changed the enumeration for the status field in the response body\n",
        "x-required-scopes": [
          "cards:read"
        ],
        "tags": [
          "Cards"
        ],
        "operationId": "get-cards",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "description": "The ID of the organization to filter by.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true
          },
          {
            "name": "cardAccountId",
            "in": "query",
            "description": "The ID of the card account to filter by. A card always carries the card account it is currently assigned to. Once a card has been reassigned (see the `CARD_REASSIGNED` callback), it is only returned for its new card account, not for the superseded one.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "A list of statuses of cards to filter by.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "PENDING_ACTIVATION",
                  "PENDING_ISSUANCE",
                  "PENDING_REGISTRATION",
                  "REQUEST_APPROVED",
                  "REQUESTED",
                  "REQUEST_CANCELLED",
                  "REQUEST_REJECTED",
                  "ACTIVE",
                  "LOCKED",
                  "LOCKED_PIN",
                  "EXPIRED",
                  "TERMINATED",
                  "TERMINATED_LOST",
                  "TERMINATED_STOLEN"
                ]
              }
            }
          },
          {
            "name": "cardholderId",
            "in": "query",
            "description": "The ID of the [cardholder](/docs/cardholder-entity) to filter by.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "type",
            "in": "query",
            "deprecated": true,
            "description": "**DEPRECATED**: Use `cardConfig` parameter instead. A list of types of cards to filter by.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "VIRTUAL",
                  "SINGLE_USE",
                  "TRAVEL",
                  "PHYSICAL",
                  "BLACK"
                ]
              }
            }
          },
          {
            "name": "cardConfig",
            "in": "query",
            "description": "Filter by exact card configuration (e.g., PLIANT_PHYSICAL, PLIANT_VIRTUAL_TRAVEL, PLIANT_SINGLE_USE). Can be specified multiple times for filtering by multiple configurations.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "The `from` date to filter by as zero-offset UTC time. The date boundary is inclusive. Meaning we compare with `>=`.",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2024-07-19T15:00:00.000000Z"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "The `to` date to filter by as zero-offset UTC time. The date boundary is inclusive. Meaning we compare with `<=`.",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2024-07-19T15:00:00.000000Z"
            }
          },
          {
            "name": "byDateField",
            "in": "query",
            "description": "The date field to filter by if `fromDate` and `toDate` are present.",
            "schema": {
              "type": "string",
              "nullable": true,
              "enum": [
                "createdAt",
                "updatedAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of items to return per page. The default value if not provided is 100, the maximum allowed value is 1000.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page number to return, starting with 0, this counts up to the total number of pages. The total number of pages is determined by the total number of records divided by the limit.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "The field to sort by.",
            "schema": {
              "type": "string",
              "enum": [
                "organizationId",
                "status",
                "cardholderId",
                "updatedAt"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "The direction to sort by.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "cardId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of the card."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of the organization."
                          },
                          "cardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of the card account."
                          },
                          "cardholderId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of the cardholder."
                          },
                          "type": {
                            "type": "string",
                            "deprecated": true,
                            "nullable": true,
                            "description": "Deprecated, please use `cardConfig` instead.\n`VIRTUAL` - Virtual credit card\n`SINGLE_USE` - One-time virtual credit card (only one authorization allowed per card)\n`PHYSICAL` - Physical credit card\n`BLACK` - Physical black premium credit card\n`TRAVEL` - Virtual cards used specifically in travel industry related use cases\n",
                            "enum": [
                              "VIRTUAL",
                              "SINGLE_USE",
                              "PHYSICAL",
                              "BLACK",
                              "TRAVEL"
                            ]
                          },
                          "cardConfig": {
                            "type": "string",
                            "description": "The Pliant card configuration of this card. This describes all feature of this card in one single configuration, e.g. the type of the card and also the design of the card etc. It replaces the deprecated card `type`. Please refer to the [guide section](/docs/card-entity) to learn more about possible values."
                          },
                          "platformFee": {
                            "type": "boolean",
                            "description": "Whether the card is used for the internal Pliant platform fee or not."
                          },
                          "cardDesignId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of the card design used for this specific card."
                          },
                          "cardDesignLogoName": {
                            "type": "string",
                            "nullable": true,
                            "description": "The name of the card design used for this specific card."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "The date-time when card was created."
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "The date-time when card was updated."
                          }
                        }
                      }
                    },
                    "hasNextPage": {
                      "type": "boolean",
                      "description": "Indicates whether there is a next page available."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. The API consumer sent a malformed request which could not be processed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. The API consumer is not authorized to access the requested resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. The API consumer is not allowed to access the requested resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests. The API consumer has sent too many requests in a given amount of time. Please check our [API guidelines](/docs/pliant-api-guidelines#api-rate-limits).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Detailed description of the error and breached rate limit."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error. The request was not completed due to an internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Issue Card with Cardholder",
        "description": "> 🔒 **Required scopes:** `cards:write`, `members:write`\n>\n> The API credential calling this endpoint must be granted:\n> - the `cards` category with `read & write` access\n> - the `members` category with `read & write` access, only when the request creates a new cardholder through the `cardholder` object instead of passing a `cardholderId`\n>\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without these scopes receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nIssue a new credit card for an existing or a new cardholder. A detailed explanation of different types and statuses can be found in our [guides](/docs/card-entity) section. Hint: you can also [replace](./replace-card) an existing card instead.\nIf the cardholder is in the invited state at the time of issuing the card, we will park the card issuing request and automatically issue the card once the cardholder is active.\nPlease be aware that card issuing is (as many other processes in Pliant's API) an [asynchronous process](/docs/core-concepts#mutating-data-happens-asynchronously). This means you need to rely on the callback for the card being active, before you can start using it.\n",
        "x-required-scopes": [
          "cards:write",
          "members:write"
        ],
        "tags": [
          "Cards"
        ],
        "operationId": "issue-card-with-cardholder",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "required": [
                      "organizationId",
                      "limit",
                      "transactionLimit",
                      "cardConfig"
                    ],
                    "properties": {
                      "cardholderId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "description": "The id of the [cardholder](/docs/cardholder-entity) to issue the card for. This cardholder needs to have a phone number, otherwise 3DS security mechanism during a purchase will not work. If not provided, you must provide a `cardholder` object to create a new cardholder as part of the card issuing process."
                      },
                      "organizationId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "The ID of the organization to issue the card for."
                      },
                      "cardAccountId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "The ID of the [card account](/docs/card-account) to issue the card for. If not provided, the card will be issued for the default [card account](/docs/card-account) of the organization. If the given card account has `status` `SUPERSEDED`, the request is transparently resolved to its successor (`supersededBy`) and the response carries the id of that successor card account."
                      },
                      "cardConfig": {
                        "type": "string",
                        "description": "The Pliant card configuration of this card.\nThis describes all features of this card in one single configuration, e.g. the type of the card and also the design of the card etc.\nPlease refer to the [guide section](/docs/card-entity) to learn more about possible values.\n"
                      },
                      "cardDesignId": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "description": "The unique identifier of the card design used for this card.\nThis field can only be set when creating virtual cards.\nAvailable designs for a card config can be retrieved via the [available cards endpoint](/reference/get-available-cards).\n"
                      },
                      "label": {
                        "type": "string",
                        "description": "Mandatory only for virtual cards with a `cardConfig` containing `VIRTUAL` or `TRAVEL`, the maximum length is 40 characters.",
                        "maxLength": 40,
                        "nullable": true
                      },
                      "purpose": {
                        "type": "string",
                        "description": "Mandatory only for virtual cards with `cardConfig` ending with `SINGLE_USE`",
                        "maxLength": 200
                      },
                      "validityPeriod": {
                        "type": "number",
                        "description": "Number of months when card expires.\n- Mandatory for `cardConfig` containing `VIRTUAL` and `TRAVEL`\n- For `cardConfig` ending with `PHYSICAL` or `BLACK`: set to 36 months automatically\n- For `cardConfig` ending with `SINGLE_USE`: set to 12 months automatically\n- For `cardConfig` containing `INSURANCE`:\n  - Physical insurance: set to 24 months automatically\n  - Virtual insurance (excluding single-use): validated from enum, defaults to 36 months\n  - Single-use insurance: set to 12 months automatically\nFor cards with fixed validity periods, user input is ignored.\n",
                        "enum": [
                          3,
                          6,
                          9,
                          12,
                          18,
                          24,
                          30,
                          36
                        ]
                      },
                      "validFrom": {
                        "type": "string",
                        "format": "date",
                        "nullable": true,
                        "description": "Optional field to describe a fixed date range in which the card is usable for purchases, replaces the `validityPeriod` if used. Outside of this date range, the card cannot be used for any purchases, only for zero-amount card-checks, and is shown with `status` `PENDING`. If not provided, the card is active immediately. Date needs to be provided as `yyyy-mm-dd` and is treated inclusive, meaning the provided date is already a valid day to use the card. If used, the parallel usage of card controls regarding `dates` and/or `times` is not allowed and the `validityPeriod` will be set to 36 months automatically. The earliest possible date is the current date. The `validFrom` date needs to be before the `validTo` date. The fields `validFrom`, `validTo` and `validTimezone` need to be used together, if used at all. This field can be [updated later](/reference/update-card-validity-period). This field must be `null` when issuing benefit cards."
                      },
                      "validTo": {
                        "type": "string",
                        "format": "date",
                        "nullable": true,
                        "description": "Optional field to describe a fixed date range in which the card is usable for purchases, replaces the `validityPeriod` if used. After the specified date, the card is automatically terminated. If not provided, the card is active until the `validityPeriod` ends. Date needs to be provided as `yyyy-mm-dd` and is treated inclusive, meaning the card will be terminated one day after this date. If used, the parallel usage of card controls regarding `dates` and/or `times` is not allowed and the `validityPeriod` will be set to 36 months automatically. The earliest possible date is the current date. The latest possible date is the end date of the `validityPeriod`. The fields `validFrom`, `validTo` and `validTimezone` need to be used together, if used at all. This field can be [updated later](/reference/update-card-validity-period). This field must be `null` when issuing benefit cards."
                      },
                      "validTimezone": {
                        "type": "string",
                        "description": "Optional field to describe the timezone for the `validFrom` and `validTo` fields. This field is mandatory if `validFrom` and `validTo` fields are used. A list of valid timezones can be found in our [guide section](/docs/card-controls-1). This field can be [updated later](/reference/update-card-validity-period). This field must be `null` when issuing benefit cards.",
                        "example": "Europe/Berlin"
                      },
                      "maxTransactionCount": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 999999999,
                        "description": ":exclamation: IMPORTANT: if the `cardConfig` is `TRAVEL` and this field is not set, the **default value will be `5`**.\nOptional field to describe the maximum number of transactions within the range of `1..999999999` that can be performed with this card.\nIf not provided, the card can be used for an unlimited number of transactions until the card expires.\n"
                      },
                      "limit": {
                        "type": "object",
                        "description": "The limit of the card. The limit renews according to the `limitRenewFrequency` or never, if `limitRenewFrequency` is set to `TOTAL`. This limit can later be adjusted via the [update limit endpoint](/reference/update-card-limit). The limit can be up to the organization's overall limit. For instance an organization with a limit of 1,000,000 EUR can have a card with a limit up to 1,000,000 EUR. It is also possible to have more than one card with the maximum limit. For example you can have two cards each with a limit of 1,000,000 EUR. The card limits are not added up on creation, only the transactions happening on the card are added up and checked against the organization's overall limit. The limit must be `0` (of the card's currency) when issuing benefit cards.",
                        "properties": {
                          "value": {
                            "type": "number",
                            "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                          },
                          "currency": {
                            "type": "string",
                            "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro. This has to match the currency of the respective [card account](/docs/card-account)!"
                          }
                        }
                      },
                      "limitRenewFrequency": {
                        "type": "string",
                        "enum": [
                          "DAILY",
                          "WEEKLY",
                          "MONTHLY",
                          "QUARTERLY",
                          "ANNUAL",
                          "TOTAL"
                        ],
                        "description": "The frequency of the card limit renewal.\n* `DAILY` - The card limit is renewed every day\n* `WEEKLY` - The card limit is renewed every week\n* `MONTHLY` - The card limit is renewed every calendar month, this is the default setting.\n* `QUARTERLY` - The card limit is renewed every calendar quarter.\n* `ANNUAL` - The card limit is renewed every year.\n* `TOTAL` - The card limit is never going to be renewed. After the limit is spent the card cannot be used anymore.\n"
                      },
                      "transactionLimit": {
                        "type": "object",
                        "description": "The transaction limit of the card. Meaning the maximum amount of a single transaction. This is always below or equal to the `limit` of the card. This limit can later be adjusted via the [update limit endpoint](/reference/update-card-limit). The transaction limit can be up to the card's limit. For instance a card with a limit of 1,000 EUR can have a transaction limit up to 1,000 EUR. The transaction limit must be `0` (of the card's currency) when issuing benefit cards.",
                        "properties": {
                          "value": {
                            "type": "number",
                            "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                          },
                          "currency": {
                            "type": "string",
                            "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro. This has to match the currency of the respective [card account](/docs/card-account)!"
                          }
                        }
                      },
                      "customFirstName": {
                        "type": "string",
                        "description": "Optional first name on `TRAVEL` cards which will be used on the card. When used, this replaces the [cardholder](/docs/cardholder-entity) first name, which normally is used on the card. The maximum length of `customFirstName` is 50 characters. If used, both fields (`customFirstName` and `customLastName`) have to be provided with at least one character each. It is important to note, that only the following characters are allowed for issuing cards: `A-Z`, `a-z`, `0-9`, `äöüÄÖÜ.-`",
                        "nullable": true,
                        "maxLength": 50
                      },
                      "customLastName": {
                        "type": "string",
                        "description": "Optional last name on `TRAVEL` cards which will be used on the card. When used, this replaces the [cardholder](/docs/cardholder-entity) last name, which normally is used on the card. The maximum length of `customLastName` is 50 characters. If used, both fields (`customFirstName` and `customLastName`) have to be provided with at least one character each. It is important to note, that only the following characters are allowed for issuing cards: `A-Z`, `a-z`, `0-9`, `äöüÄÖÜ.-`",
                        "nullable": true,
                        "maxLength": 50
                      },
                      "cardControls": {
                        "type": "object",
                        "description": "Optionally, the card controls which will be applied to this card.",
                        "$ref": "#/paths/~1cards~1{cardId}~1card-controls/put/requestBody/content/application~1json/schema/allOf/0",
                        "nullable": true
                      },
                      "customFields": {
                        "type": "array",
                        "nullable": true,
                        "description": "Optional custom fields which can be set on a card. A custom field may have a default value which will be copied to every transaction made with this card. You can identify a custom field either by its `id` or its `label`. If both are provided, the `id` will be used. You can also create new custom fields (of type `TEXT`) on-the-fly by providing a newly, unused label and the corresponding default value you want to set. So mainly two uses cases exist: 1. Use an existing custom field on the card, mostly identified via its `id`. 2. Create a new custom field (of type `TEXT`) on-the-fly via the `label` and set it on the card.",
                        "items": {
                          "type": "object",
                          "required": [
                            "defaultValue"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "description": "The id of the custom field, to identify an existing custom field which should be set on this card. Either `id` or `label` has to be provided. If both are provided, the `id` will be used."
                            },
                            "label": {
                              "type": "string",
                              "description": "The label of the custom field, to identify which custom field should be set on this card. Or, to create a new custom field on-the-fly, if the label is currently unused. Either `id` or `label` has to be provided. If both are provided, the `id` will be used."
                            },
                            "defaultValue": {
                              "type": "string",
                              "description": "The default value of the custom field to set on this card. This default value will be copied to every transaction made with this card. This is not the default value of the custom field itself, but the default value of the custom field on this card! The maximum length of the default value is 64kB.",
                              "maxLength": 65536
                            }
                          }
                        }
                      },
                      "teamId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "The ID of the team to issue the card for.",
                        "nullable": true
                      },
                      "projectId": {
                        "type": "string",
                        "format": "uuid",
                        "description": "The ID of the project to issue the card for.",
                        "nullable": true
                      },
                      "copilots": {
                        "type": "object",
                        "nullable": true,
                        "description": "Optional feature for `TRAVEL` cards. This feature allows to assign cardholders or teams as copilots to the card. The copilot also has access to the card and its card details alongside with the cardholder of the card itself.",
                        "properties": {
                          "cardholderIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "description": "The IDs of the cardholders to assign as copilot to the card.",
                            "nullable": true
                          },
                          "teamIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "description": "The IDs of the teams to assign as copilot to the card.",
                            "nullable": true
                          }
                        }
                      },
                      "deliverTo": {
                        "type": "string",
                        "nullable": true,
                        "enum": [
                          "ORGANIZATION",
                          "CARDHOLDER"
                        ],
                        "description": "Optionally, specifies where the physical card should be delivered.\n* `ORGANIZATION` - Ship to organization address (default)\n* `CARDHOLDER` - Ship to cardholder's personal delivery address\n\nThis field is only applicable for physical cards.\nIf not provided, the card will be shipped to the organization address.\n\n\nThe request will fail if the cardholder's personal delivery address is not set and `deliverTo` is set to `CARDHOLDER`.\n"
                      },
                      "cardholder": {
                        "type": "object",
                        "description": "Optional description of a new [cardholder](/docs/cardholder-entity) to be created alongside the card. If `cardholderId` is not provided, this field is required.",
                        "nullable": true,
                        "required": [
                          "firstName",
                          "lastName",
                          "email",
                          "language"
                        ],
                        "properties": {
                          "membershipType": {
                            "type": "string",
                            "nullable": true,
                            "description": "Defines how the cardholder is onboarded and accesses their cards.\n`STANDARD` - Cardholders receive an invitation email to register, set up a password and MFA, and become registered members with access to the Pliant web app according to their assigned role.\n`LIMITED` - For distributing cards via access links without requiring registration. This is also intended for direct customers sharing cards with recipients outside their organization. Cardholders do not receive a registration invitation and cannot access the Pliant web app. Instead, they access their cards through access links shared with them, with access limited to card-related functionality. The `GUEST` role is assigned automatically and does not need to be provided.\n`EMBEDDED` - Reserved for partners embedding the cardholder experience in their own application. No invitation email is sent. The partner is responsible for obtaining acceptance of the terms and conditions and verifying the cardholder's phone number.\nIf not provided, `STANDARD` is applied. `LIMITED` and `EMBEDDED` always have to be requested explicitly.",
                            "enum": [
                              "STANDARD",
                              "LIMITED",
                              "EMBEDDED"
                            ]
                          },
                          "salutation": {
                            "type": "string",
                            "enum": [
                              "MR",
                              "MRS"
                            ],
                            "description": "The Salutation used for email communication."
                          },
                          "email": {
                            "type": "string",
                            "maxLength": 50,
                            "description": "The email address of the cardholder. This will be used for email communication. If a cardholder with this email address already exists, all the information from the existing cardholder will be used, the cardholder information sent in this request will be ignored."
                          },
                          "firstName": {
                            "type": "string",
                            "description": "The first name of the cardholder. This will be printed on credit cards as the cardholder. It is important to note, that only the following characters are allowed for issuing cards: `A-Z`, `a-z`, `0-9`, `äöüÄÖÜ.-` The combined length of first name and last name must not exceed 24 characters. One additional character is reserved for the space inserted between them when displayed on the card (25 characters in total)."
                          },
                          "lastName": {
                            "type": "string",
                            "description": "The last name of the cardholder. This will be printed on credit cards as the cardholder. It is important to note, that only the following characters are allowed for issuing cards: `A-Z`, `a-z`, `0-9`, `äöüÄÖÜ.-` The combined length of first name and last name must not exceed 24 characters. One additional character is reserved for the space inserted between them when displayed on the card (25 characters in total)."
                          },
                          "language": {
                            "type": "string",
                            "enum": [
                              "en",
                              "de",
                              "es",
                              "fi",
                              "fr",
                              "it",
                              "pt",
                              "nl",
                              "et",
                              "el",
                              "lv",
                              "lt",
                              "sk",
                              "sl",
                              "pl",
                              "hu"
                            ],
                            "description": "Used for setting the language in Pliant apps as well as for email communication."
                          },
                          "dateOfBirth": {
                            "type": "string",
                            "format": "date",
                            "nullable": true,
                            "description": "The date-of-birth of the cardholder."
                          },
                          "nationality": {
                            "type": "string",
                            "nullable": true,
                            "description": "The nationality of the cardholder (ISO 3166-1 alpha-2)."
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "ACCOUNT_OWNER,",
                                "ORG_ADMIN,",
                                "ACCOUNTANT,",
                                "CARDHOLDER,",
                                "LEGAL_REP",
                                "GUEST"
                              ]
                            },
                            "description": "Roles of the cardholder to be created. Usually, the regular cardholder uses the `CARDHOLDER` role, granting them full access to the Pliant platform. Alternatively the `GUEST` role can be provided to give the cardholder limited access to Pliant apps.\nRequired for `STANDARD` memberships. For `LIMITED` the `GUEST` role is assigned automatically and cannot be combined with any other role, so you do not need to provide this property. For `EMBEDDED` roles do not apply and `CARDHOLDER` is used when none is provided."
                          },
                          "phoneNumber": {
                            "type": "string",
                            "maxLength": 16,
                            "pattern": "^\\+[0-9]{8,15}$",
                            "nullable": true,
                            "description": "Phone number of the cardholder. If provided, must start with `+` followed by 8 to 15 numbers, e.g. `+49123456789`."
                          },
                          "personalAddress": {
                            "type": "object",
                            "description": "The personal address of the cardholder.",
                            "nullable": true,
                            "properties": {
                              "country": {
                                "type": "string",
                                "maxLength": 2,
                                "description": "The country of the address in ISO 3166-1 alpha-2 notation.",
                                "nullable": true
                              },
                              "state": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[A-Z]{2}$",
                                "description": "The US state (e.g. `CA`, `NY`). Only applicable when `country` is `US`.",
                                "nullable": true
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The city of the address.",
                                "nullable": true
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 10,
                                "description": "The postal code of the address. Must match the country-specific format (e.g. 5 digits for `DE`/`FR`/`ES`, 4 digits for `AT`/`BE`). Both `postalCode` and `country` must be provided together.",
                                "nullable": true
                              },
                              "streetName": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The street name of the address.",
                                "nullable": true
                              },
                              "streetNumber": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The street number of the address.",
                                "nullable": true
                              },
                              "additionalInformation": {
                                "type": "string",
                                "maxLength": 50,
                                "nullable": true,
                                "description": "Optional additional address information."
                              }
                            }
                          },
                          "deliveryAddress": {
                            "type": "object",
                            "description": "The delivery address of the cardholder.",
                            "nullable": true,
                            "properties": {
                              "country": {
                                "type": "string",
                                "maxLength": 2,
                                "description": "The country of the address in ISO 3166-1 alpha-2 notation.",
                                "nullable": true
                              },
                              "state": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[A-Z]{2}$",
                                "description": "The US state (e.g. `CA`, `NY`). Only applicable when `country` is `US`.",
                                "nullable": true
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The city of the address.",
                                "nullable": true
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 10,
                                "description": "The postal code of the address. Must match the country-specific format (e.g. 5 digits for `DE`/`FR`/`ES`, 4 digits for `AT`/`BE`). Both `postalCode` and `country` must be provided together.",
                                "nullable": true
                              },
                              "streetName": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The street name of the address.",
                                "nullable": true
                              },
                              "streetNumber": {
                                "type": "string",
                                "maxLength": 50,
                                "description": "The street number of the address.",
                                "nullable": true
                              },
                              "additionalInformation": {
                                "type": "string",
                                "maxLength": 50,
                                "nullable": true,
                                "description": "Optional additional address information."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok. The card can be used after you received the callback for the card being active.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cardId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The Pliant card id (UUIDv4) of the card."
                    },
                    "type": {
                      "type": "string",
                      "deprecated": true,
                      "nullable": true,
                      "enum": [
                        "VIRTUAL",
                        "SINGLE_USE",
                        "PHYSICAL",
                        "BLACK",
                        "TRAVEL"
                      ],
                      "description": "Deprecated, please use `cardConfig` instead.\n`VIRTUAL` - Virtual credit card\n`SINGLE_USE` - One-time virtual credit card (only one authorization allowed per card)\n`PHYSICAL` - Physical credit card\n`BLACK` - Physical black premium credit card\n`TRAVEL` - Virtual cards used specifically in travel industry related use cases\nEither `type` or `cardConfig` has to be provided. Please prefer `cardConfig`.\n"
                    },
                    "cardConfig": {
                      "type": "string",
                      "description": "The Pliant card configuration of this card. This describes all feature of this card in one single configuration, e.g. the type of the card and also the design of the card etc. It replaces the deprecated card `type`. Please refer to the [guide section](/docs/card-entity) to learn more about possible values. Either `type` or `cardConfig` has to be provided. Please prefer `cardConfig`."
                    },
                    "cardDesignId": {
                      "type": "string",
                      "format": "uuid",
                      "nullable": true,
                      "description": "The unique identifier of the card design used for this card. Present only for virtual cards."
                    },
                    "cardholderId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The ID of the [cardholder](/docs/cardholder-entity) this card is issued for."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The ID of the organization this card is issued for."
                    },
                    "cardAccountId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The ID of the [card account](/docs/card-account) this card is issued for."
                    },
                    "transactionLimit": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                        }
                      }
                    },
                    "monthlyLimit": {
                      "type": "object",
                      "deprecated": true,
                      "description": "Use `limit` instead",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                        }
                      }
                    },
                    "limit": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                        }
                      }
                    },
                    "limitRenewFrequency": {
                      "type": "string",
                      "enum": [
                        "DAILY",
                        "WEEKLY",
                        "MONTHLY",
                        "QUARTERLY",
                        "ANNUAL",
                        "TOTAL"
                      ],
                      "description": "* `DAILY` - The card limit is renewed every day\n* `WEEKLY` - The card limit is renewed every week\n* `MONTHLY` - The card limit is renewed every calendar month\n* `QUARTERLY` - The card limit is renewed every calendar quarter\n* `ANNUAL` - The card limit is renewed every year\n* `TOTAL` - The card limit is never going to be renewed. After the limit is spent the card cannot be used anymore.\n"
                    },
                    "expiryDate": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "label": {
                      "type": "string",
                      "description": "Available only for virtual cards with a `cardConfig` containing `VIRTUAL` or `TRAVEL`. The maximum length is 40 characters.",
                      "maxLength": 40,
                      "nullable": true
                    },
                    "purpose": {
                      "type": "string",
                      "description": "Available only for cards with type `SINGLE_USE`",
                      "nullable": true
                    },
                    "customFirstName": {
                      "type": "string",
                      "description": "Optional first name on `TRAVEL` cards which is used on the card, instead of the regular [cardholder](/docs/cardholder-entity) name. If empty, the regular [cardholder](/docs/cardholder-entity) name is used.",
                      "nullable": true
                    },
                    "customLastName": {
                      "type": "string",
                      "description": "Optional last name on `TRAVEL` cards which is used on the card, instead of the regular [cardholder](/docs/cardholder-entity) name. If empty, the regular [cardholder](/docs/cardholder-entity) name is used.",
                      "nullable": true
                    },
                    "cardControls": {
                      "type": "object",
                      "$ref": "#/paths/~1cards~1{cardId}~1card-controls/put/requestBody/content/application~1json/schema/allOf/0",
                      "nullable": true
                    },
                    "validFrom": {
                      "type": "string",
                      "format": "date",
                      "nullable": true,
                      "description": "Optional field to describe a fixed date range in which the card is usable for purchases. Outside of this date range, the card cannot be used for any purchases, only for zero-amount card-checks, and is shown with `status` `PENDING`. If not provided, the card is active immediately. Date needs to be provided as `yyyy-mm-dd` and is treated inclusive, meaning the provided date is already a valid day to use the card. If used, the parallel usage of card controls regarding `dates` and/or `times` is not allowed and the `validityPeriod` will be set to 36 months automatically. The earliest possible date is the current date. The `validFrom` date needs to be before the `validTo` date. The fields `validFrom`, `validTo` and `validTimezone` need to be used together, if used at all.",
                      "example": "2023-12-01"
                    },
                    "validTo": {
                      "type": "string",
                      "format": "date",
                      "nullable": true,
                      "description": "Optional field to describe a fixed date range in which the card is usable for purchases. After the specified date, the card is automatically terminated. If not provided, the card is active until the `validityPeriod` ends. Date needs to be provided as `yyyy-mm-dd` and is treated inclusive, meaning the card will be terminated one day after this date. If used, the parallel usage of card controls regarding `dates` and/or `times` is not allowed and the `validityPeriod` will be set to 36 months automatically. The latest possible date is the end date of the `validityPeriod`. The fields `validFrom`, `validTo` and `validTimezone` need to be used together, if used at all.",
                      "example": "2023-12-31"
                    },
                    "validTimezone": {
                      "type": "string",
                      "description": "Optional field to describe the timezone for the `validFrom` and `validTo` fields. This field is mandatory if `validFrom` and `validTo` fields are used. A list of valid timezones can be found in our [guide section](/docs/card-controls-1)."
                    },
                    "maxTransactionCount": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 999999999,
                      "description": "Optional field to describe the maximum number of transactions within the range of `1..999999999` that can be performed with this card. If not provided, the card can be used for an unlimited number of transactions until the card expires."
                    },
                    "clickToPayInfo": {
                      "type": "object",
                      "nullable": true,
                      "description": "Click to Pay enrollment information for this card. Only present for Visa cards that support Click to Pay.\nThis object may be `null` if Click to Pay is not supported generally (e.g., per country), but normally it will be present with a `status` of `NOT_SUPPORTED` if the card type doesn't support Click to Pay (e.g., Mastercard or Travel Purchasing Cards).\n",
                      "properties": {
                        "status": {
                          "type": "string",
                          "description": "The Click to Pay enrollment status of the card.\n* `NOT_SUPPORTED` - Card type doesn't support Click to Pay (e.g., Mastercard or Travel Purchasing Cards)\n* `NOT_ENROLLED` - Card is eligible but not enrolled in Click to Pay\n* `PENDING` - Card enrollment is awaiting the cardholder's Click to Pay member enrollment to complete\n* `ENROLLED` - Card is currently enrolled in Click to Pay\n",
                          "enum": [
                            "NOT_SUPPORTED",
                            "NOT_ENROLLED",
                            "PENDING",
                            "ENROLLED"
                          ],
                          "x-enumDescriptions": {
                            "NOT_SUPPORTED": "Card type doesn't support Click to Pay (e.g., Mastercard or Travel Purchasing Cards).",
                            "NOT_ENROLLED": "Card is eligible but not enrolled in Click to Pay.",
                            "PENDING": "Card enrollment is awaiting the cardholder's Click to Pay member enrollment to complete. Once the member is enrolled, the card enrollment is triggered automatically.",
                            "ENROLLED": "Card is currently enrolled in Click to Pay."
                          }
                        },
                        "enrolledAt": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true,
                          "description": "Date-time when the card was enrolled in Click to Pay. `null` if the card has never been enrolled."
                        },
                        "unenrolledAt": {
                          "type": "string",
                          "format": "date-time",
                          "nullable": true,
                          "description": "Date-time when the card was unenrolled from Click to Pay. `null` if the card has never been unenrolled."
                        }
                      }
                    },
                    "customFields": {
                      "type": "array",
                      "description": "The [custom fields](/docs/custom-fields-on-transactions) set on this card. These [custom fields](/docs/custom-fields-on-transactions) are used as default values for every transaction made with this card. If no [custom fields](/docs/custom-fields-on-transactions) are assigned to the card, we return an empty list.",
                      "items": {
                        "type": "object",
                        "$ref": "#/paths/~1cards~1{cardId}~1custom-fields/patch/responses/202/content/application~1json/schema/items"
                      }
                    },
                    "copilots": {
                      "type": "object",
                      "nullable": true,
                      "description": "Optional feature for `TRAVEL` cards. The copilot also has access to the card and its card details alongside with the cardholder of the card itself.",
                      "properties": {
                        "cardholderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "description": "The IDs of the cardholders assigned as copilots to the card."
                        },
                        "teamIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "description": "The IDs of the teams assigned as copilots to the card."
                        }
                      }
                    },
                    "additionalLimits": {
                      "type": "array",
                      "description": "Additional limits set on the card. Empty when none were configured at creation.",
                      "items": {
                        "type": "object",
                        "description": "An additional limit applied to this card.",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique identifier of this additional limit. Use this `id` when updating or removing the limit via `PUT /api/cards/limits/{cardId}`."
                          },
                          "limitRenewFrequency": {
                            "type": "string",
                            "enum": [
                              "PER_TRANSACTION",
                              "DAILY",
                              "WEEKLY",
                              "MONTHLY",
                              "QUARTERLY",
                              "ANNUAL",
                              "TOTAL"
                            ],
                            "description": "The renewal frequency of this additional limit. `PER_TRANSACTION` is only valid for additional limits, not for the card's primary limit.\n* `PER_TRANSACTION` - Limit applies to each individual transaction.\n* `DAILY` - The limit is renewed every day.\n* `WEEKLY` - The limit is renewed every week.\n* `MONTHLY` - The limit is renewed every calendar month.\n* `QUARTERLY` - The limit is renewed every calendar quarter.\n* `ANNUAL` - The limit is renewed every year.\n* `TOTAL` - The limit is never renewed. Once spent, no further transactions are allowed under this limit.\n"
                          },
                          "limit": {
                            "type": "object",
                            "description": "The monetary cap for this additional limit.",
                            "properties": {
                              "value": {
                                "type": "number",
                                "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                              }
                            }
                          },
                          "maxTransactionCount": {
                            "type": "number",
                            "nullable": true,
                            "minimum": 1,
                            "maximum": 999999999,
                            "description": "Maximum number of transactions allowed under this additional limit within its renewal period. Null if no transaction-count cap is configured."
                          },
                          "scope": {
                            "type": "object",
                            "nullable": true,
                            "description": "The scope restriction of this additional limit. Null when no scope is defined (`categories` and `acceptanceMethods` empty, `atmWithdrawal` false, `currency` null).",
                            "properties": {
                              "categories": {
                                "type": "array",
                                "description": "Merchant category types this limit applies to. Empty when no category restriction is set.",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "ADVERTISING_AND_MARKETING",
                                    "COMPUTING_AND_SOFTWARE",
                                    "EDUCATION_AND_TRAINING",
                                    "ELECTRONICS_AND_IT_EQUIPMENT",
                                    "ENTERTAINMENT_AND_WELLNESS",
                                    "FOOD_AND_DRINKS",
                                    "GIFTS_AND_VOUCHERS",
                                    "HEALTHCARE",
                                    "MATERIALS_AND_PACKAGING",
                                    "OFFICE_SUPPLIES_AND_EQUIPMENT",
                                    "SERVICES",
                                    "TRAVEL_AND_ACCOMMODATION",
                                    "OTHER"
                                  ]
                                }
                              },
                              "acceptanceMethods": {
                                "type": "array",
                                "description": "The card acceptance methods this limit applies to. Empty when no acceptance-method restriction is set.",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "ONLINE",
                                    "MOBILE_WALLET",
                                    "MANUAL_ENTRY",
                                    "CONTACTLESS",
                                    "CHIP_DIP",
                                    "NOT_AVAILABLE",
                                    "MAGNETIC_STRIPE",
                                    "OTHER"
                                  ]
                                }
                              },
                              "atmWithdrawal": {
                                "type": "boolean",
                                "description": "When `true`, this additional limit applies to ATM withdrawal transactions."
                              },
                              "currency": {
                                "type": "string",
                                "nullable": true,
                                "description": "ISO 4217 currency code this limit is scoped to, e.g. `PLN`. Null when no currency scope is defined."
                              }
                            }
                          },
                          "balanceInfo": {
                            "type": "object",
                            "nullable": true,
                            "description": "Spending balance information for this additional limit. Null when no balance record exists.",
                            "properties": {
                              "balance": {
                                "type": "object",
                                "description": "Amount spent under this additional limit in the current renewal period.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "availableLimit": {
                                "type": "object",
                                "description": "Remaining amount available under this additional limit in the current renewal period.",
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                                  }
                                }
                              },
                              "limitRenewDate": {
                                "type": "string",
                                "format": "date",
                                "nullable": true,
                                "description": "Date when this additional limit's balance will next be renewed, e.g. `2026-06-01`. Null for `TOTAL` frequency limits."
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1cards/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "description": "Not Found. The requested resource could not be found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content. The request could not be completed due to contents of the request. The syntax of the request content was correct.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1card-accounts~1{cardAccountId}~1deactivate/post/responses/400/content/application~1json/schema"
                }
              }
            }
          },
          "429": {
            "$ref": "#/paths/~1cards/get/responses/429"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    },
    "/transactions/details": {
      "post": {
        "summary": "Transaction Details",
        "description": "> 🔒 **Required scope:** `spend:read`\n>\n> The API credential calling this endpoint must be granted the `spend` category with `read` or `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nReturns all transaction details for the given IDs. You can also request transaction details per card(s), cardholder(s) or organization(s). \nThe API returns all transaction details to the given input which can be found in the system. So you can also combine the different input fields (OR relation). \nBe aware that the usage of card, [cardholder](/docs/cardholder-entity) or organizations IDs most likely add multiple transaction details themselves. \nAlso cardholders can be part of multiple organizations, thus when searching via [cardholder](/docs/cardholder-entity) IDs, it might return more data than it would for just one organization this [cardholder](/docs/cardholder-entity) is part of. \nAt least one parameter has to be set.\n\n**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:\n- we removed the following data from the response body: `merchantId` (field), `merchantName` (field)\n- we added the following data to the response body: `merchantData` (object), `merchantRawData` (object), `authCode` (field)\n",
        "x-required-scopes": [
          "spend:read"
        ],
        "tags": [
          "Transactions"
        ],
        "operationId": "get-transactions-detail-batch",
        "requestBody": {
          "required": true,
          "description": "All fields are optional. At least one parameter has to be set.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transactionIds": {
                    "type": "array",
                    "description": "The unique identifiers of the transactions.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardIds": {
                    "type": "array",
                    "description": "The unique identifiers of the credit cards used for making the transaction(s).",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardholderIds": {
                    "type": "array",
                    "description": "The unique identifiers of the cardholders.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "organizationIds": {
                    "type": "array",
                    "description": "The unique identifiers of the organizations.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "cardAccountIds": {
                    "type": "array",
                    "description": "The unique identifiers of the card accounts.",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "page": {
                        "type": "integer",
                        "description": "The page number to return, starting with 0, this counts up to the total number of pages. The total number of pages is determined by the total number of records divided by the limit."
                      },
                      "limit": {
                        "type": "integer",
                        "description": "The number of records to return per page."
                      },
                      "sortBy": {
                        "type": "object",
                        "description": "The field to sort by and the direction to sort by.",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "The field to sort by.",
                            "enum": [
                              "organizationId",
                              "status",
                              "type",
                              "cardholderId",
                              "cardId",
                              "merchantId",
                              "confirmedAt",
                              "createdAt"
                            ],
                            "default": "createdAt"
                          },
                          "direction": {
                            "description": "The direction to sort by.",
                            "type": "string",
                            "enum": [
                              "ASC",
                              "DESC"
                            ],
                            "default": "ASC"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "transactionId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the transaction."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the organization to which this transaction belongs to."
                          },
                          "cardAccountId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the [card account](/docs/card-account) to which this transaction belongs to."
                          },
                          "cardholderId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the [cardholder](/docs/cardholder-entity) to which this transaction belongs to."
                          },
                          "cardId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The unique ID of the card to which this transaction belongs to."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the transaction.",
                            "enum": [
                              "DECLINED",
                              "PENDING",
                              "REVERSED",
                              "CONFIRMED",
                              "BOOKED"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the transaction.",
                            "enum": [
                              "PURCHASE",
                              "CASH_WITHDRAWAL",
                              "REFUND",
                              "CHARGEBACK",
                              "RECHARGE",
                              "STATUS_INQUIRY"
                            ]
                          },
                          "acceptanceMethod": {
                            "type": "string",
                            "nullable": true,
                            "description": "The method used to accept the transaction. Null indicates historical data without an acceptance method; NOT_AVAILABLE is an explicit value reported by the upstream provider.",
                            "enum": [
                              "ONLINE",
                              "MOBILE_WALLET",
                              "MANUAL_ENTRY",
                              "CONTACTLESS",
                              "CHIP_DIP",
                              "NOT_AVAILABLE",
                              "MAGNETIC_STRIPE",
                              "OTHER"
                            ]
                          },
                          "partnerSubmissionStatus": {
                            "type": "string",
                            "enum": [
                              "NOT_SYNCED",
                              "SYNCED",
                              "TEMP_LOCKED",
                              "LOCKED"
                            ],
                            "description": "This status can be driven by the partner to mark transactions on Pliant-side as consumed by the partner. `TEMP_LOCKED` makes transaction immutable for cardholders within Pliant apps. `LOCKED` makes them immutable for all users. `TEMP_LOCKED` can be changed to `SYNCED`. `LOCKED` is the final state that cannot be modified anymore"
                          },
                          "partnerSubmissionStatusSyncedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `SYNCED`."
                          },
                          "partnerSubmissionStatusTempLockedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `TEMP_LOCKED`."
                          },
                          "partnerSubmissionStatusLockedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the `partnerSubmissionStatus` was changed to `LOCKED`."
                          },
                          "category": {
                            "type": "string",
                            "description": "The category of the transaction. This groups together similar merchants into Pliant-defined categories.",
                            "enum": [
                              "ADVERTISING_AND_MARKETING",
                              "COMPUTING_AND_SOFTWARE",
                              "EDUCATION_AND_TRAINING",
                              "ELECTRONICS_AND_IT_EQUIPMENT",
                              "ENTERTAINMENT_AND_WELLNESS",
                              "FOOD_AND_DRINKS",
                              "GIFTS_AND_VOUCHERS",
                              "MATERIALS_AND_PACKAGING",
                              "OFFICE_SUPPLIES_AND_EQUIPMENT",
                              "SERVICES",
                              "TRAVEL_AND_ACCOMMODATION",
                              "HEALTHCARE",
                              "OTHER"
                            ]
                          },
                          "billingAmount": {
                            "type": "object",
                            "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                            "properties": {
                              "value": {
                                "type": "number",
                                "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                              }
                            }
                          },
                          "transactionAmount": {
                            "type": "object",
                            "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                            "properties": {
                              "value": {
                                "type": "number",
                                "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts."
                              },
                              "currency": {
                                "type": "string",
                                "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar."
                              }
                            }
                          },
                          "transactionCountry": {
                            "type": "string",
                            "description": "ISO 3166-1 alpha-3 code of the country the transaction was made it, e.g. `DEU` for Germany or `NLD` for Netherlands. You can find a list of valid country code on [Wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).",
                            "minLength": 3,
                            "maxLength": 3
                          },
                          "transactionLocalTime": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time the transaction was made in the local time of the merchant."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "The date-time the transaction was first recognized by Pliant, e.g. `2023-09-15T11:55:34.527552Z`."
                          },
                          "authorizedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was authorized by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Can be `null` for `DECLINED` or `REVERSED` transactions or for `STATUS_INQUIRY`, `REFUND`, `CHARGEBACK` or `RECHARGE` transactions."
                          },
                          "confirmedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was confirmed by the card network, e.g. `2023-09-19T07:24:52.707296Z`. Value is `null`, until the transaction is confirmed."
                          },
                          "bookedAt": {
                            "type": "string",
                            "format": "date",
                            "nullable": true,
                            "description": "The date this transaction was booked by Pliant against the internal bank account of the organization, e.g. `2023-09-19`. Value is `null`, until the transaction is booked."
                          },
                          "reversedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The date-time this transaction was reversed by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Value is only filled, if the transaction is reversed."
                          },
                          "declineReason": {
                            "type": "object",
                            "nullable": true,
                            "description": "Filled, if the transaction was declined. The decline reason `type`, together with `title` and `description` in all supported languages. E.g.:\n```\n{\n  \"type\": \"LOCKED_CARD\",\n  \"title\": {\n    \"en\": \"Card locked\"\n  },\n  \"description\": {\n    \"en\": \"The card is locked. You can unlock the card in the Wallet section of the cardholder app.\"\n  }\n}\n```\nIf the transaction status is anything else but `DECLINED` the object `declineReason` returns `null`\n",
                            "properties": {
                              "type": {
                                "$ref": "#/paths/~1transactions~1{transactionId}/get/responses/200/content/application~1json/schema/properties/declineReason/properties/type"
                              },
                              "title": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "example": {
                                  "en": "Card locked",
                                  "de": "Karte ist gesperrt"
                                }
                              },
                              "description": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "example": {
                                  "en": "The card is locked. You can unlock the card in the Wallet section of the cardholder app."
                                }
                              }
                            }
                          },
                          "linkedTransactionId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "Optional reference to any original transaction, used for recharges, chargebacks and chargeback reversals.",
                            "nullable": true
                          },
                          "receiptCount": {
                            "type": "integer",
                            "description": "Number of uploaded receipts to this transaction.",
                            "minLength": 0
                          },
                          "receiptIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "description": "The receipts attached to this transaction, if any. Otherwise, the array is empty."
                          },
                          "receiptUploadEnabled": {
                            "type": "boolean",
                            "description": "This field describes if the transaction is waiting for a receipt, or if no receipt is expected for this transaction. If set to `true` its possible to upload receipts to the transaction, if set to `false` it is not possible to upload receipts to the transaction."
                          },
                          "comment": {
                            "type": "string",
                            "nullable": true,
                            "description": "A cardholder-defined comment for this transaction."
                          },
                          "merchantData": {
                            "type": "object",
                            "description": "Pliant's merchant data. If the merchant is not known to Pliant, the object is `null`.",
                            "properties": {
                              "pliantMerchantId": {
                                "type": "string",
                                "format": "uuid",
                                "description": "Pliant's merchant ID (can be specific for each organization)."
                              },
                              "displayName": {
                                "type": "string",
                                "description": "Display merchant name that can be used to show additionally next to the raw merchant description."
                              },
                              "logoPath": {
                                "type": "string",
                                "description": "The URL to the logo of the merchant, if there is any. It might be `null` for merchants we currently do not have in our database. The URL looks similar to this example `merchant-logos.getpliant.com/17e21b54-80d0-4843-9125-e522bb262ebb.png?v=3`. If you want to display the logo in your application, please make a copy of the logo and do not directly hotlink the logo. The static image should be served from your own infrastructure.",
                                "nullable": true
                              }
                            }
                          },
                          "merchantRawData": {
                            "type": "object",
                            "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here.",
                            "properties": {
                              "mcc": {
                                "type": "string",
                                "nullable": true,
                                "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                              },
                              "mccDesc": {
                                "type": "string",
                                "nullable": true,
                                "description": "The merchant category code (MCC) description is a short description of the MCC."
                              },
                              "merchantStreet": {
                                "type": "string",
                                "nullable": true,
                                "description": "The street of the merchant."
                              },
                              "merchantCity": {
                                "type": "string",
                                "nullable": true,
                                "description": "The city of the merchant."
                              },
                              "merchantRegion": {
                                "type": "string",
                                "nullable": true,
                                "description": "The region of the merchant."
                              },
                              "merchantPostcode": {
                                "type": "string",
                                "nullable": true,
                                "description": "The postcode of the merchant."
                              },
                              "merchantCountry": {
                                "type": "string",
                                "nullable": true,
                                "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                                "minLength": 3,
                                "maxLength": 3
                              },
                              "merchantPhone": {
                                "type": "string",
                                "nullable": true,
                                "description": "The phone number of the merchant."
                              },
                              "merchantUrl": {
                                "type": "string",
                                "nullable": true,
                                "description": "The URL of the merchant."
                              },
                              "merchantNameOther": {
                                "type": "string",
                                "nullable": true,
                                "description": "The name of the merchant in the local language."
                              },
                              "merchantLegalName": {
                                "type": "string",
                                "nullable": true,
                                "description": "The legal name of the merchant."
                              },
                              "merchantTaxId": {
                                "type": "string",
                                "nullable": true,
                                "description": "The tax ID of the merchant."
                              },
                              "merchantContact": {
                                "type": "string",
                                "nullable": true,
                                "description": "The contact information of the merchant."
                              },
                              "merchantTerminalId": {
                                "type": "string",
                                "nullable": true,
                                "description": "The terminal ID of the merchant used to make this transaction."
                              },
                              "descriptionAuthorization": {
                                "type": "string",
                                "description": "Authorization message by the merchant.",
                                "nullable": true
                              },
                              "descriptionConfirmation": {
                                "type": "string",
                                "description": "Confirmation message by the merchant.",
                                "nullable": true
                              }
                            }
                          },
                          "authCode": {
                            "type": "string",
                            "description": "Authorization code used for this transaction.",
                            "nullable": true
                          },
                          "paymentDate": {
                            "type": "string",
                            "format": "date",
                            "description": "The date on which the outstanding amount of this transaction was paid back to Pliant. It basically is the date the bank settlement was received by Pliant. This field is only filled after the next payment frequency cycle of this organization. The format of the date is `YYYY-MM-DD`.",
                            "nullable": true
                          },
                          "paymentReference": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The reference to the payment with which this transaction was paid to Pliant. Check the [payment API](getpaymentsdetail) to get details about the payment. This field is only filled after the next payment frequency cycle of this organization and also only if the organization is not solely using prefund accounts (where there are no regular payments).",
                            "nullable": true
                          },
                          "wallet": {
                            "type": "string",
                            "description": "If the transaction was made using a mobile wallet (`APPLE` or `ANDROID`), the respective wallet type is returned. Otherwise, the field is `OTHER`.",
                            "enum": [
                              "APPLE",
                              "ANDROID",
                              "OTHER"
                            ]
                          },
                          "fxFee": {
                            "type": "object",
                            "description": "The foreign exchange fee that was charged for this transaction, if any.",
                            "properties": {
                              "fxFeePercentage": {
                                "type": "number",
                                "description": "The per-organization fee (as a percentage of the transaction amount) that is charged for foreign exchange transactions. This value is specific to this organization. Example: `2.1`.",
                                "format": "float",
                                "example": 2.1,
                                "minimum": 0,
                                "maximum": 100,
                                "nullable": true
                              },
                              "fxFeeAmount": {
                                "type": "object",
                                "description": "The specific amount of the foreign exchange fee that was charged for this transaction. Example: `0.21 EUR`.",
                                "nullable": true,
                                "properties": {
                                  "value": {
                                    "type": "number",
                                    "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                                    "example": 21
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                                    "example": "EUR"
                                  }
                                }
                              }
                            }
                          },
                          "personal": {
                            "type": "boolean",
                            "description": "Indicates transaction was done for personal purpose."
                          },
                          "acquirerReferenceNumber": {
                            "type": "string",
                            "description": "The acquirer reference number as provided by the card network for the transaction."
                          }
                        }
                      }
                    },
                    "hasNextPage": {
                      "type": "boolean",
                      "description": "Indicates whether there is a next page available."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1cards/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1cards/post/responses/404"
          },
          "429": {
            "$ref": "#/paths/~1cards/get/responses/429"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    },
    "/transactions/{transactionId}": {
      "get": {
        "summary": "Transaction Details (Single)",
        "deprecated": true,
        "description": "> 🔒 **Required scope:** `spend:read`\n>\n> The API credential calling this endpoint must be granted the `spend` category with `read` or `read & write` access.\n> Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.\n> A credential without this scope receives `403 Forbidden` with the error code `INSUFFICIENT_PERMISSION`.\n\nReturns the details of a single transaction by its ID.\n\n**This endpoint has changed in comparison to the previous version of the API.** The following changes were made:\n- we removed the following data from the response body: `merchantId` (field), `merchantName` (field)\n- we added the following data to the response body: `merchantData` (object), `merchantRawData` (object), `authCode` (field)\n",
        "x-required-scopes": [
          "spend:read"
        ],
        "tags": [
          "Transactions"
        ],
        "operationId": "get-transactions-detail",
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the transaction.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "The unique identifier of the transaction."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the transaction."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the organization to which this transaction belongs to."
                    },
                    "cardholderId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the [cardholder](/docs/cardholder-entity) to which this transaction belongs to."
                    },
                    "cardId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The unique ID of the card to which this transaction belongs to."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the transaction.",
                      "enum": [
                        "DECLINED",
                        "PENDING",
                        "REVERSED",
                        "CONFIRMED",
                        "BOOKED"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "description": "The type of the transaction.",
                      "enum": [
                        "PURCHASE",
                        "CASH_WITHDRAWAL",
                        "REFUND",
                        "CHARGEBACK",
                        "RECHARGE",
                        "STATUS_INQUIRY"
                      ]
                    },
                    "partnerSubmissionStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_SYNCED",
                        "SYNCED",
                        "TEMP_LOCKED",
                        "LOCKED"
                      ],
                      "description": "This status can be driven by the partner to mark transactions on Pliant-side as consumed by the partner. `TEMP_LOCKED` makes transaction immutable for cardholders within Pliant apps. `LOCKED` makes them immutable for all users. `TEMP_LOCKED` can be changed to `SYNCED`. `LOCKED` is the final state that cannot be modified anymore"
                    },
                    "partnerSubmissionStatusSyncedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `SYNCED`."
                    },
                    "partnerSubmissionStatusTempLockedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `TEMP_LOCKED`."
                    },
                    "partnerSubmissionStatusLockedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the `partnerSubmissionStatus` was changed to `LOCKED`."
                    },
                    "category": {
                      "type": "string",
                      "description": "The category of the transaction. This groups together similar merchants into Pliant-defined categories.",
                      "enum": [
                        "ADVERTISING_AND_MARKETING",
                        "COMPUTING_AND_SOFTWARE",
                        "EDUCATION_AND_TRAINING",
                        "ELECTRONICS_AND_IT_EQUIPMENT",
                        "ENTERTAINMENT_AND_WELLNESS",
                        "FOOD_AND_DRINKS",
                        "GIFTS_AND_VOUCHERS",
                        "MATERIALS_AND_PACKAGING",
                        "OFFICE_SUPPLIES_AND_EQUIPMENT",
                        "SERVICES",
                        "TRAVEL_AND_ACCOMMODATION",
                        "HEALTHCARE",
                        "OTHER"
                      ]
                    },
                    "billingAmount": {
                      "type": "object",
                      "description": "The amount that was billed to the cardholder, in the currency of the card account.",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                        }
                      }
                    },
                    "transactionAmount": {
                      "type": "object",
                      "description": "The amount that was paid to the merchant via this transaction, in the local currency of the merchant.",
                      "properties": {
                        "value": {
                          "type": "number",
                          "description": "The value of the amount, converted to minor units of the currency. E.g. 1 EUR is 100 cents, thus the value is 100."
                        },
                        "currency": {
                          "type": "string",
                          "description": "The currency of the amount, in ISO 4217 format. E.g. `EUR` for Euro."
                        }
                      }
                    },
                    "transactionCountry": {
                      "type": "string",
                      "description": "ISO 3166-1 alpha-3 code of the country the transaction was made it, e.g. `DEU` for Germany or `NLD` for Netherlands. You can find a list of valid country code on [Wikipedia](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).",
                      "minLength": 3,
                      "maxLength": 3
                    },
                    "transactionLocalTime": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time the transaction was made in the local time of the merchant."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The date-time the transaction was first recognized by Pliant, e.g. `2023-09-15T11:55:34.527552Z`."
                    },
                    "authorizedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was authorized by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Can be null in cases of not successful transactions, like a declined one."
                    },
                    "confirmedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was confirmed by the card network, e.g. `2023-09-19T07:24:52.707296Z`. Value is null, until the transaction is confirmed."
                    },
                    "bookedAt": {
                      "type": "string",
                      "format": "date",
                      "nullable": true,
                      "description": "The date this transaction was booked by Pliant against the internal bank account of the organization, e.g. `2023-09-19`. Value is null, until the transaction is booked."
                    },
                    "reversedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "The date-time this transaction was reversed by the card network, e.g. `2023-09-15T11:55:34.527552Z`. Value is only filled, if the transaction is reversed."
                    },
                    "declineReason": {
                      "type": "object",
                      "nullable": true,
                      "description": "Filled, if the transaction was declined. The decline reason `type`, together with `title` and `description` in all supported languages. E.g.:\n```\n{\n  \"type\": \"LOCKED_CARD\",\n  \"title\": {\n    \"en\": \"Card locked\",\n  },\n  \"description\": {\n    \"en\": \"The card is locked. You can unlock the card in the Wallet section of the cardholder app.\",\n  }\n}\n```\nIf the transaction status is anything else but `DECLINED` the object `declineReason` returns `NULL`\n",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Why the transaction was declined. Set only when the transaction status is `DECLINED`.\nOn the transaction details response, `title` and `description` carry the display text for this type.\n",
                          "example": "LOCKED_CARD",
                          "enum": [
                            "CARD_ACCEPTANCE_NOT_ALLOWED",
                            "CARD_CONTROLS_DATETIME_LOCKED",
                            "CREDIT_ORG_LIMIT_EXCEEDED",
                            "DECLINE_REASON_NOT_DETECTED",
                            "DISALLOWED_MCC",
                            "DO_NOT_HONOUR",
                            "EXCEED_AMOUNT_VELOCITY_LIMIT",
                            "EXCEED_FREQUENCY_VELOCITY_LIMIT",
                            "EXCEED_ATM_AMOUNT_VELOCITY_LIMIT",
                            "EXPIRED_CARD",
                            "INCORRECT_CVV2",
                            "INCORRECT_EXPIRY_DATE",
                            "INCORRECT_PIN",
                            "INSUFFICIENT_FUNDS",
                            "INSUFFICIENT_FUNDS_GPS",
                            "INVALID_AMOUNT",
                            "INVALID_CARD_NUMBER",
                            "ISSUER_INOPERATIVE",
                            "LOCKED_CARD",
                            "LOST_CARD",
                            "MONTHLY_CARD_LIMIT_EXCEEDED",
                            "PENDING_CARD",
                            "PIN_TRIES_EXCEEDED",
                            "PIN_VALIDATION_FAILURE",
                            "POSTAL_CODE_NOT_ALLOWED",
                            "PREFUND_ORG_LIMIT_EXCEEDED",
                            "SCA_REQUIRED_PHYSICAL",
                            "SCA_REQUIRED_PHYSICAL_OFFLINE",
                            "SCA_REQUIRED_PHYSICAL_ONLINE",
                            "SCA_REQUIRED_VIRTUAL",
                            "SINGLE_USE_CARD",
                            "STOLEN_CARD",
                            "TERMINATED_CARD",
                            "TRANSACTION_LIMIT_EXCEEDED",
                            "TRANSACTION_TYPE_NOT_ALLOWED",
                            "TRANSACTION_CATEGORY_NOT_ALLOWED",
                            "TRANSACTION_COUNT_EXCEEDED",
                            "TRANSACTION_MERCH_STRING_NOT_ALLOWED",
                            "TRANSACTION_MERCHIDDE42_NOT_ALLOWED",
                            "TRANSACTION_MCC_NOT_ALLOWED",
                            "ACCEPTANCE_METHOD_NOT_ALLOWED",
                            "MERCHANT_COUNTRY_NOT_ALLOWED_US",
                            "MERCHANT_COUNTRY_MISSING",
                            "MERCHANT_COUNTRY_NOT_ALLOWED",
                            "TRANSACTION_CURRENCY_NOT_ALLOWED",
                            "THREDD_FRAUD_ALERT",
                            "ADDITIONAL_LIMIT_EXCEEDED"
                          ]
                        },
                        "title": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "example": {
                            "en": "Card locked"
                          }
                        },
                        "description": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "example": {
                            "en": "The card is locked. You can unlock the card in the Wallet section of the cardholder app."
                          }
                        }
                      }
                    },
                    "linkedTransactionId": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Optional reference to any original transaction, used for recharges, chargebacks and chargeback reversals.",
                      "nullable": true
                    },
                    "receiptCount": {
                      "type": "integer",
                      "description": "Number of uploaded receipts to this transaction.",
                      "minLength": 0
                    },
                    "receiptIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "description": "The receipts attached to this transaction, if any. Otherwise, the array is empty."
                    },
                    "receiptUploadEnabled": {
                      "type": "boolean",
                      "description": "This field describes if the transaction is waiting for a receipt, or if no receipt is expected for this transaction. If set to `true` its possible to upload receipts to the transaction, if set to `false` it is not possible to upload receipts to the transaction."
                    },
                    "comment": {
                      "type": "string",
                      "nullable": true,
                      "description": "A cardholder-defined comment for this transaction."
                    },
                    "merchantData": {
                      "type": "object",
                      "description": "Pliant's merchant data. If the merchant is not known to Pliant, the object is `null`.",
                      "properties": {
                        "pliantMerchantId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Pliant's merchant ID (can be specific for each organization)."
                        },
                        "displayName": {
                          "type": "string",
                          "description": "Display merchant name that can be used to show additionally next to the raw merchant description."
                        },
                        "logoPath": {
                          "type": "string",
                          "description": "URL to the logo of the merchant, if there is any.",
                          "nullable": true
                        }
                      }
                    },
                    "merchantRawData": {
                      "type": "object",
                      "description": "Raw merchant data as received from the card network, thus the quality of those fields differ greatly between merchants. We do not control the information provided here.",
                      "properties": {
                        "mcc": {
                          "type": "string",
                          "nullable": true,
                          "description": "The merchant category code (MCC) is a four-digit number assigned to a business by an acquiring bank or institution. The MCC is used to classify the business by the type of goods or services it provides."
                        },
                        "mccDesc": {
                          "type": "string",
                          "nullable": true,
                          "description": "The merchant category code (MCC) description is a short description of the MCC."
                        },
                        "merchantStreet": {
                          "type": "string",
                          "nullable": true,
                          "description": "The street of the merchant."
                        },
                        "merchantCity": {
                          "type": "string",
                          "nullable": true,
                          "description": "The city of the merchant."
                        },
                        "merchantRegion": {
                          "type": "string",
                          "nullable": true,
                          "description": "The region of the merchant."
                        },
                        "merchantPostcode": {
                          "type": "string",
                          "nullable": true,
                          "description": "The postcode of the merchant."
                        },
                        "merchantCountry": {
                          "type": "string",
                          "nullable": true,
                          "description": "The country of the merchant, in ISO 3166-1 alpha-3 format.",
                          "minLength": 3,
                          "maxLength": 3
                        },
                        "merchantPhone": {
                          "type": "string",
                          "nullable": true,
                          "description": "The phone number of the merchant."
                        },
                        "merchantUrl": {
                          "type": "string",
                          "nullable": true,
                          "description": "The URL of the merchant."
                        },
                        "merchantNameOther": {
                          "type": "string",
                          "nullable": true,
                          "description": "The name of the merchant in the local language."
                        },
                        "merchantLegalName": {
                          "type": "string",
                          "nullable": true,
                          "description": "The legal name of the merchant."
                        },
                        "merchantTaxId": {
                          "type": "string",
                          "nullable": true,
                          "description": "The tax ID of the merchant."
                        },
                        "merchantContact": {
                          "type": "string",
                          "nullable": true,
                          "description": "The contact information of the merchant."
                        },
                        "merchantTerminalId": {
                          "type": "string",
                          "nullable": true,
                          "description": "The terminal ID of the merchant used to make this transaction."
                        },
                        "descriptionAuthorization": {
                          "type": "string",
                          "description": "Authorization message by the merchant.",
                          "nullable": true
                        },
                        "descriptionConfirmation": {
                          "type": "string",
                          "description": "Confirmation message by the merchant.",
                          "nullable": true
                        }
                      }
                    },
                    "authCode": {
                      "type": "string",
                      "description": "Authorization code used for this transaction.",
                      "nullable": true
                    },
                    "paymentDate": {
                      "type": "string",
                      "format": "date",
                      "description": "The date on which the outstanding amount of this transaction was paid back to Pliant. It basically is the date the bank settlement was received by Pliant. This field is only filled after the next payment frequency cycle of this organization.",
                      "nullable": true
                    },
                    "paymentReference": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The reference to the payment itself. Check the [payment API](getpaymentsdetail) to get details about the payment. This field is only filled after the next payment frequency cycle of this organization.",
                      "nullable": true
                    },
                    "wallet": {
                      "type": "string",
                      "description": "If the transaction was made using a mobile wallet (`APPLE` or `ANDROID`), the respective wallet type is returned. Otherwise, the field is `OTHER`.",
                      "enum": [
                        "APPLE",
                        "ANDROID",
                        "OTHER"
                      ]
                    },
                    "fxFee": {
                      "type": "object",
                      "description": "The foreign exchange fee that was charged for this transaction, if any.",
                      "properties": {
                        "fxFeePercentage": {
                          "type": "number",
                          "description": "The per-organization fee (as a percentage of the transaction amount) that is charged for foreign exchange transactions. This value is specific to this organization. Example: `2.1`.",
                          "format": "float",
                          "example": 2.1,
                          "minimum": 0,
                          "maximum": 100,
                          "nullable": true
                        },
                        "fxFeeAmount": {
                          "type": "object",
                          "description": "The specific amount of the foreign exchange fee that was charged for this transaction. Example: `0.21 EUR`.",
                          "nullable": true,
                          "properties": {
                            "value": {
                              "type": "number",
                              "description": "The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.",
                              "example": 21
                            },
                            "currency": {
                              "type": "string",
                              "description": "The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.",
                              "example": "EUR"
                            }
                          }
                        }
                      }
                    },
                    "personal": {
                      "type": "boolean",
                      "description": "Indicates transaction was done for personal purpose."
                    },
                    "acquirerReferenceNumber": {
                      "type": "string",
                      "description": "The acquirer reference number as provided by the card network for the transaction."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1cards/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1cards/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1cards/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1cards/post/responses/404"
          },
          "500": {
            "$ref": "#/paths/~1cards/get/responses/500"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This API uses oAuth2 with client credentials flow to [obtain the Bearer Token](/docs/authenticated-api-usage).",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
````