Create a card
documentedCreate a new card (team member, company or auto-issued card).
POST /cardsCardsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://b2b.revolut.com/api/1.0/cards" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"request_id": "{{$request_id}}",
"contact_ids": ["{{$contact_id}}"],
"virtual": true,
"product": {"code": "{{$product_code}}"},
"label": "{{$label}}",
"references": [ {"name": "PNR", "value": "{{$pnr_value}}"} ],
"spending_limits": {
"single": {"amount": {{$single_amount}}, "currency": "{{$currency_code}}"},
"week": {"amount": {{$week_amount}}, "currency": "{{$currency_code}}"}
}
}'}