Visit appVisit websiteBook a demo
  • Get Started
    • Welcome
  • Client API
LogoLogo
Visit appVisit websiteBook a demo
Client APIWebhooks

Spend request created

Sent when a spend request is created for the first time.
Was this page helpful?
Previous

Spend request approved

Next
Built with
Spend request approved
Sent when a spend request is created for the first time.
Payload
1{
2 "api_version": "2024-04-10",
3 "event_type": "client.spend_request.created",
4 "data": {
5 "object": {
6 "spend_request_id": "spreq_c6g4am7hy4ji5jrak0gl5lft4",
7 "url": "https://app.yunojuno.com/approvals/aprvl_c7h5bn8iz6kj6ksbk1hm6mgu5/",
8 "external_id": "",
9 "title": "Spend request title",
10 "description": "Spend request description",
11 "amount": "1000.00",
12 "amount_type": "TOTAL",
13 "currency": "GBP",
14 "custom_fields": [
15 {
16 "name": "example_field",
17 "value": "123ABCD"
18 }
19 ]
20 }
21 },
22 "mode": "live"
23}

Payload

The payload of this webhook request is an object.
spend_request_idstringRequired<=40 characters
urlstringRequired
external_idstring or nullRequired
titlestringRequired<=100 characters
descriptionstringRequired<=500 characters
amountstringRequiredformat: "decimal"
amount_typeenumRequired
* `DAY_RATE` - Day rate * `TOTAL` - Total
Allowed values:
currencyenumRequired
* `AUD` - $ AUD * `CAD` - $ CAD * `CHF` - ₣ CHF * `CZK` - Kč CZK * `DKK` - kr DKK * `EUR` - € EUR * `GBP` - £ GBP * `HKD` - $ HKD * `NOK` - kr NOK * `PLN` - zł PLN * `SEK` - kr SEK * `SGD` - $ SGD * `AED` - د.إ AED * `USD` - $ USD * `ZAR` - R ZAR
custom_fieldslist of objectsRequired

Response

200
any
Return a 200 status to indicate that the data was received successfully.
  • DAY_RATE - Day rate
  • TOTAL - Total
  • AUD - $ AUD
  • CAD - $ CAD
  • CHF - ₣ CHF
  • CZK - Kč CZK
  • DKK - kr DKK
  • EUR - € EUR
  • GBP - £ GBP
  • HKD - $ HKD
  • NOK - kr NOK
  • PLN - zł PLN
  • SEK - kr SEK
  • SGD - $ SGD
  • AED - د.إ AED
  • USD - $ USD
  • ZAR - R ZAR