v1
latestOpenAPI 3.1.02026-08-06236494759.4 KBWebhooks
Pre-approved Spend
Pre-Approved Spend - Purchase Redeem Card
A Card of purchase has been redeemed.
postWebhookpurchase_redeem_card
Headers
X-Soldo-Fingerprintstring required
Webhook authentication: SHA512SUM of the fingerprint values listed in the fingerprint order for this webhook.
Example:{{fingerprint}}
X-Soldo-Fingerprint-Orderstring required
Webhook authentication: The order of the values used to calculate the fingerprint.
Example:id, title, description, amount, amountCurrency
X-Soldo-Fingerprint-Signaturestring required
Webhook authentication: Signature of the X-Soldo-Fingerprint. It must be verified using the Soldo public key.
Example:{{fingerprint_signature}}
Payload
Example payload
{
"event_uuid": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"company_account_id": "XMPL1234",
"data": {
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"title": "Tech book",
"description": "A purchase to approve",
"amount": 10.25,
"wallet_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"wallet_name": "John Doe",
"has_attachments": true,
"notes": "Notes about the purchase request",
"assignee_id": "XMPL1234-000003",
"assignee_custom_reference_id": "123456-user-1",
"author_id": "XMPL1234-000001",
"author_custom_reference_id": "123456-user-2",
"expiration_date": "2017-06-01T12:48:40Z",
"card_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"transactions": [
{
"id": "c861cc24-6663-410f-8c78-73f886fff4ef",
"amount": 10.25,
"completed_time": "2017-06-01T12:48:40Z"
}
],
"max_tx_number": 3,
"creation_time": "2017-06-01T12:48:40Z",
"last_update_time": "2017-06-01T12:48:40Z"
},
"subscription_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
}Response
Success.