---
title: /api/v1/clients/{client}/add-payment-provider-card-link
slug: apiv1clientsclientadd-payment-provider-card-link
docTags: 
createdAt: 2026-04-21T15:22:49.957Z
---

{
  "id": "RDSFETjcUz2155TcucP_g",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link",
    "servers": [
      {
        "url": "https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link",
        "description": "Sandbox server (uses test data)"
      },
      {
        "url": "https://vet.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link",
        "description": "Production server (uses live data)"
      }
    ],
    "name": "",
    "description": "<p>Get add payment provider card link (that you can use to redirect) for a client.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "client",
          "type": "string",
          "description": "<p>Client id OR {clinic-id}-{pet-parent-id} tuple.</p>"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "passport",
          "name": "passport",
          "kind": "optional",
          "type": "oauth2",
          "description": "Laravel passport oauth2 security.",
          "oauth2Flows": {
            "authorizationCode": {
              "authorizationUrl": "https://digitail.test/oauth/authorize",
              "tokenUrl": "https://digitail.test/oauth/token",
              "refreshUrl": "https://digitail.test/oauth/token"
            }
          }
        },
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "url",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "https://stripe.com/setup-intents/si_1234567890abcdefg"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "FLJ22nUBjZYm2TKlGuKHk",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link \\\n     --header 'accept: application/json'"
        },
        {
          "id": "xEbGy5ovx_b2quGWUwqqn",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "V2g20WwIQ6JQ2113FCB02",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "TvGSU0qVozLq3M8vBqw1t",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://developer.digitail.io/api/v1/clients/{client}/add-payment-provider-card-link\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "FLJ22nUBjZYm2TKlGuKHk"
    },
    "results": {
      "languages": [
        {
          "id": "gOsUlyM_2nThMWEqlvwjH",
          "language": "200",
          "code": "// Successful operation\n{\n  \"url\": \"https://stripe.com/setup-intents/si_1234567890abcdefg\"\n}"
        }
      ],
      "selectedLanguageId": "gOsUlyM_2nThMWEqlvwjH"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}