This API allows the creation of a new budget associated with a specific user and category. It enables users to define their financial plans, including description, allocated amount, and period.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"description":"Budget untuk bayar kartu halo bulanan","amount":350000,"periodStart":{{$date.now}},"periodEnd":{{$date.now}},"categoryId":{{categoryId}}}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/api/v1/finance/budget' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"description" : "Budget untuk bayar kartu halo bulanan",
"amount": 350000,
"periodStart": {{$date.now}},
"periodEnd" : {{$date.now}},
"categoryId": {{categoryId}}
}'