Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Cards Set a card PIN

Set a card PIN

Sets a new PIN. Send 4 digits as a string. A weak PIN such as `1234` can be refused. This route needs no Idempotency-Key.

PUThttps://api.gravv.xyz/v1/cards/{card_id}/pinTry it
Api-Key

Path parameters

NameDescription
card_id:stringRequired
ID of the card

Body parameters

NameDescription
card_pin:stringRequired

Response

Returns 200 OK. The PIN is set

NameDescription
data:string
error:null

Errors

StatusMeaning
200The PIN is set
400The PIN is missing or was refused
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request PUT \
--url 'https://api.gravv.xyz/v1/cards/dce0192a-9b3d-440b-9500-33dc9ac8dc20/pin' \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"card_pin": "4821"
}'
Responseapplication/json
200400OK
{
"data": "card pin updated successfully",
"error": null
}