cURL
curl --request POST \
--url https://development.knotapi.com/card \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jwe": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLC...",
"task_id": "123456"
}
'{
"message": "Success"
}CardSwitcher
Switch Card JWE
Switch a card in a user’s merchant account.
POST
/
card
cURL
curl --request POST \
--url https://development.knotapi.com/card \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jwe": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLC...",
"task_id": "123456"
}
'{
"message": "Success"
}See code samples here for how to structure and encrypt the JWE in various programming languages.
jwe.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Body
application/json
The input parameters required for switching a card.
- CardSwitcher
- CardUpdater
JWE value.
Example:
"eyJhbGciOiJSU0EtT0FFUC0yNTYiLC..."
task_id value provided in the AUTHENTICATED webhook.
Example:
"123456"
Response
Successful request. Receiving this response means your request has passed validations, including the jwe.
Success message.
Example:
"Success"
Was this page helpful?
⌘I