Skip to main content
POST
Updates local card status where the event would in production and sends the matching virtualcard.* webhook. It never calls the card issuer.
Sandbox only. Call https://smtp.yativo.com/api/v1. Production returns 404 with Not found.
The card must belong to your business. Omit event to default to virtualcard.transaction.settlement, or virtualcard.transaction.declined when outcome is fail.
See Virtual cards and every sandbox simulation endpoint in Sandbox.

Authorizations

X-Api-Key
string
header
required

Your API key (yativo_pk_...) from Developers → API Keys. Send together with X-Api-Secret.

X-Api-Secret
string
header
required

Your API secret (yativo_sk_...), shown once when the key is created.

Path Parameters

cardId
string
required

Body

application/json
event
string

Any documented virtualcard.* event. Defaults to settlement, or declined when outcome is fail.

Example:

"virtualcard.transaction.settlement"

amount
number

Major units. Default 4.5.

Example:

12.5

outcome
enum<string>
Available options:
success,
fail
transaction_type
string
reason
string

Response

Event simulated

status
string
Example:

"failed"

status_code
integer
message
string
Example:

"Request failed."

data
object | null
error_details
object

Included on every failed response, with the same shape for every endpoint.