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

POST
https://host.com/spend_requests/
POST
/spend_requests/
1curl -X POST /spend_requests/ \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "hirer": "string",
6 "title": "string",
7 "description": "string",
8 "amount": "string",
9 "amount_type": "DAY_RATE",
10 "currency": "AUD"
11}'
Try it
201Created
1{
2 "data": {
3 "spend_request_id": "string",
4 "url": "string",
5 "external_id": "string",
6 "title": "string",
7 "description": "string",
8 "amount": "string",
9 "amount_type": "DAY_RATE",
10 "currency": "AUD",
11 "custom_fields": [
12 {
13 "name": "string",
14 "value": "string"
15 }
16 ]
17 }
18}
Was this page helpful?
Previous

Approve Create

Next
Built with
Create a spend request.
Create

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
hirerstringRequired<=320 characters
The identifier or the email address of the hirer creating the spend request.
titlestringRequired<=100 characters
The title of the spend request.
descriptionstringRequired<=100000 characters
A detailed description of the spend request.
amountstringRequiredformat: "decimal"
The amount of money requested.
amount_typeenumRequired

The type of the amount requested.

  • DAY_RATE - Day rate
  • TOTAL - Total
Allowed values:
currencyenumRequired
The currency in which the amount is specified. * `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 objectsOptional
An array of custom fields specific to the spend request.
external_idstringOptionalDefaults to
An external identifier for the spend request, optional.
spend_request_configurationstringOptional<=40 charactersDefaults to
The identifier of the configuration to create the spend request against.

Response

dataobject
The spend request object. This object represents a request to commit spend on the YunoJuno platform.

The currency in which the amount is specified.

  • 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