Skip to main content
POST
Transaction events are written to spend-card activity history and sent as business_spend_card.transaction.*. Lifecycle events (created, funded, suspended, …) only send the webhook.
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 business_spend_card.transaction.approved, or .declined when outcome is fail.
See Corporate 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 business_spend_card.* event.

Example:

"business_spend_card.transaction.approved"

amount
number

Major units. Default 9.99.

Example:

19.99

outcome
enum<string>
Available options:
success,
fail
description
string
Example:

"Sandbox coffee"

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.