POST
/
card
curl --request POST \
  --url https://secure.development.knotapi.com/card \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "task_id": "123456",
  "user": {
    "name": {
      "first_name": "Ada",
      "last_name": "Lovelace"
    },
    "phone_number": "+11234567890",
    "address": {
      "street": "100 Main Street",
      "street2": "#100",
      "city": "New York",
      "region": "NY",
      "postal_code": "12345",
      "country": "US"
    }
  },
  "card": {
    "number": "4242424242424242",
    "expiration": "08/2025",
    "cvv": "123"
  }
}'
{
  "message": "Success"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The input parameters required for switching a card.
task_id
string
required

The task_id value provided in the AUTHENTICATED webhook.

Example:

"123456"

user
object
required
card
object
required

Response

200
application/json
Successful request.
message
string

Success message.

Example:

"Success"