budgets
GET
https://hermetica.15.204.158.166.sslip.io /v1/budgets Parameters
campaignRefstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/budgets" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"campaignRef": "string",
"currency": "string",
"amountMinor": 0,
"startsOn": "string",
"endsOn": "string",
"notes": "string",
"spentMinor": 0,
"remainingMinor": 0,
"overBudget": true,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednamestringrequiredcampaignRefstringrequiredcurrencystringrequiredamountMinorintegerrequiredstartsOnstringrequiredendsOnstringrequirednotesstringrequiredspentMinorintegerrequiredremainingMinorintegerrequiredoverBudgetbooleanrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermetica.15.204.158.166.sslip.io /v1/budgets Request body
application/json
namestringrequiredcampaignRefstringcurrencystringamountMinorintegerrequiredstartsOnstringendsOnstringnotesstring{
"name": "string",
"campaignRef": "string",
"currency": "USD",
"amountMinor": 0,
"startsOn": "string",
"endsOn": "string",
"notes": "string"
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/budgets" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","campaignRef":"string","currency":"USD","amountMinor":0,"startsOn":"string","endsOn":"string","notes":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"campaignRef": "string",
"currency": "string",
"amountMinor": 0,
"startsOn": "string",
"endsOn": "string",
"notes": "string",
"spentMinor": 0,
"remainingMinor": 0,
"overBudget": true,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredcampaignRefstringrequiredcurrencystringrequiredamountMinorintegerrequiredstartsOnstringrequiredendsOnstringrequirednotesstringrequiredspentMinorintegerrequiredremainingMinorintegerrequiredoverBudgetbooleanrequiredcreatedAtstringrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringcampaignRefstringcurrencystringamountMinorintegerstartsOnstringendsOnstringnotesstring{
"name": "string",
"campaignRef": "string",
"currency": "string",
"amountMinor": 0,
"startsOn": "string",
"endsOn": "string",
"notes": "string"
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","campaignRef":"string","currency":"string","amountMinor":0,"startsOn":"string","endsOn":"string","notes":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id}/spend Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}/spend" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"budgetId": "string",
"amountMinor": 0,
"spentOn": "string",
"description": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredbudgetIdstringrequiredamountMinorintegerrequiredspentOnstringrequireddescriptionstringrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id}/spend Record a cost against a budget; repeating the same idempotencyKey returns the original line
Parameters
idstringpathrequiredRequest body
application/json
amountMinorintegerrequiredspentOnstringrequireddescriptionstringidempotencyKeystringrequired{
"amountMinor": 0,
"spentOn": "string",
"description": "string",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}/spend" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amountMinor":0,"spentOn":"string","description":"string","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"budgetId": "string",
"amountMinor": 0,
"spentOn": "string",
"description": "string",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredbudgetIdstringrequiredamountMinorintegerrequiredspentOnstringrequireddescriptionstringrequiredcreatedAtstringrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id}/spend/{spendId} Parameters
idstringpathrequiredspendIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}/spend/{spendId}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id}/spend/{spendId} Parameters
idstringpathrequiredspendIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}/spend/{spendId}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermetica.15.204.158.166.sslip.io /v1/budgets/{id}/spend/{spendId} Correct a cost line in place
Parameters
idstringpathrequiredspendIdstringpathrequiredRequest body
application/json
amountMinorintegerspentOnstringdescriptionstring{
"amountMinor": 0,
"spentOn": "string",
"description": "string"
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/budgets/{id}/spend/{spendId}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amountMinor":0,"spentOn":"string","description":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated