The card details and PIN endpoints were removed:
GET /spend/cards/{card_id}/widget-token, POST /spend/cards/pin, POST /corporate-card/employees/cards/pin, and the employee portal’s card details and PIN actions. Use the card link instead.How the employee opens it
1
First visit: confirm their email
The page emails a 6-digit code to the employee’s email on file. The code expires after 10 minutes.
2
Set up sign-in
The employee chooses a passkey (Face ID, fingerprint or their device’s screen lock) or an authenticator app (Google Authenticator, Microsoft Authenticator, 1Password or similar).
3
Set their PIN
The employee chooses a 4-digit PIN. Yativo doesn’t store the PIN, only that one has been set.
4
Every later visit
The employee confirms it’s them with their passkey or authenticator app, then shows their card details or updates their PIN. An email code alone never opens the card.
Get a card’s link
?theme_id= to get the URL with one of your themes.
Replace a link
If a link was shared somewhere it shouldn’t be, replace it. The old URL stops working straight away, including anywhere it’s embedded. The employee keeps their passkey or authenticator app.url and rotated_at.
A link stops working when its card is terminated or its employee is terminated. While the employee or the customer is suspended, the page says the card isn’t available.
Embed the page
Put the link in an iframe in your app or site. Any site can embed it. Theallow attribute lets the employee use a passkey inside the frame:
allow attribute, or in a browser that doesn’t support passkeys in frames, the employee can still use an authenticator app.
To size the frame to its content, listen for the height the page posts:
Brand the page
A theme sets the logo, font, colours and corner radius of the card page, and the sender name and copy of its email codes. Save up to 20 themes. Mark one as the default and it applies to every link that doesn’t name another theme.
The response returns the theme with its
theme_id. Other theme requests:
To use a theme, get the link with
?theme_id={theme_id}. The page and its code emails use that theme. Emails that aren’t tied to a link (the sign-in reset notice and the email-change code) use your default theme.
Emails come from Yativo’s sending address, under your sender name and with your reply-to address. They show your logo, colours, font, intro and footer and don’t mention Yativo. Without a theme, they use your business name and Yativo’s default colours.
Employee sign-in
Check an employee’s sign-in
The card’s own
pin_set_at (in card list and card responses) shows when the employee last set their PIN, or null if they haven’t.
Reset an employee’s sign-in
When an employee loses their phone or passkey, or their links are locked:Change an employee’s email
Once an employee has confirmed their email on a card link, that address protects their card. Only the employee can approve a change.-
Send the new address with
PUT /corporate-card/employees/{employee_id}:The email doesn’t change yet. The response includes:Yativo emails a 6-digit code to the employee’s current address. It expires after 10 minutes. The code is for the employee only. You can’t confirm the change with it. - The employee opens their card link, confirms it’s them with their passkey or authenticator app, and enters the code. They can also decline the change and keep their current email.
GET /corporate-card/employees/{employee_id}/card-access shows the change in pending_email until the employee confirms or declines it. To drop it yourself, call DELETE /corporate-card/employees/{employee_id}/email/pending. To send a new code, repeat step 1.
If the employee hasn’t confirmed their email on a card link yet, PUT changes the email straight away. An employee who has confirmed their email can’t have it removed, only changed.
Employee portal
In the employee portal, each card has a Card details and PIN button that opens its card link.GET /employee/cards/{card_id}/link returns the same url for an employee’s own card.

