SDK Endpoints
The SDK endpoints are used with the Android & iOS components. Each endpoint is integrated with specific view.
Category Spend
The category spend endpoint returns spend per each category in an Array of SpendCategory objects.
Used with Categories Spend Pie Chart View
AUTHORIZATIONS:
Api-Key
REQUEST HEADERS:
customer-id
required
string (Customer ID)
RESPONSE SCHEMA :
application/json
data
Array of objects (SpendCategory Object)
message
String (Error message if exists)
GET
{{HOST}}/api/v1/category/spend
Payload
application/json
Content type
Brand Spend
The brand spend endpoint returns spend per each brand in an Array of BrandSpend objects within a specific month and year that is specified as query params.
Used with Brand List View
Query Params (Key)
Value
month
MM
year
YYYY
AUTHORIZATIONS:
Api-Key
REQUEST HEADERS:
customer-id
required
string (Customer ID)
RESPONSE SCHEMA :
application/json
data
Array of objects (BrandSpend Object)
message
String (Error message if exists)
GET
{{HOST}}/api/v1/brand/spend?month=02&year=2022
Payload
application/json
Content type
Transactions
The transactions endpoint returns an Array of Transactions objects within a specific month and year that is specified as query params.
Used with Transaction List View
Query Params (Key)
Value
month
MM
year
YYYY
AUTHORIZATIONS:
Api-Key
REQUEST HEADERS:
customer-id
required
string (Customer ID)
RESPONSE SCHEMA :
application/json
data
Array of objects (Transaction Object)
message
String (Error message if exists)
GET
{{HOST}}/api/v1/transaction?month=10&year=2022
Payload
application/json
Content type
Set Budget
The set budget endpoint allows users to create and set new budget.
Used with Budget Form View
AUTHORIZATIONS:
Api-Key
REQUEST BODY SCHEMA :
application/json
customer_id
required
string (Customer ID)
amount
required
float (Amount)
Responses
- 200 Success: Budget is created
POST
{{HOST}}/api/v1/budget
Payload
application/json
Content type
Budget Summary
The budget summary endpoint returns current budgeted and spend amount summary in BudgetSummary object form.
Used with Budget Summary View
AUTHORIZATIONS:
Api-Key
REQUEST HEADERS:
customer-id
required
string (Customer ID)
RESPONSE SCHEMA :
application/json
data
BudgetSummary Object
message
String (Error message if exists)
GET
{{HOST}}/api/v1/budget
Payload
application/json
Content type
Budget Per-Category
The budget per-category endpoint returns an Array of CategoryBudgetSpend objects for each category.
Used with Category Spend List View
Query Params (Key)
Value
month
MM
year
YYYY
AUTHORIZATIONS:
Api-Key
REQUEST HEADERS:
customer-id
required
string (Customer ID)
RESPONSE SCHEMA :
application/json
data
Array of objects (CategoryBudgetSpend Object)
message
String (Error message if exists)
GET
{{HOST}}/api/v1/budget/category?month=11&year=2022
Payload
application/json
Content type
Update Categories Budget
The update categories budget endpoint allows users to modify categories budgeted amount.
Used with Category Spend List View
AUTHORIZATIONS:
Api-Key
REQUEST BODY SCHEMA :
application/json
customer_id
required
string (Customer ID)
budget
required
Array of objects (CategoryBudgetSpend Object)
Responses
- 200 Success: Updated categories budget
PUT
{{HOST}}/api/v1/budget
Payload
application/json
Content type