Skip to main content

Create a Spending Plan

Use this endpoint to create a new spending_plan for a user.

POST
/users/{user_guid}/spending_plans

Request sample

Language:shell

_10
curl -i -X POST 'https://int-api.mx.com/users/USR-11141024-90b3-1bce-cac9-c06ced52ab4c/spending_plans' \
_10
-u 'client_id:api_key' \
_10
-H 'Accept: application/vnd.mx.api.v2beta+json' \
_10
-H 'Content-Type: application/json' \

Response sample

200
Language:json

_10
{
_10
"spending_plan": {
_10
"created_at": "2023-05-15T16:40:45Z",
_10
"updated_at": "2023-05-15T16:40:45Z",
_10
"current_iteration_number": 1,
_10
"guid": "SPL-13f7416b-3891-4e41-bcfd-25b10089ab7a",
_10
"user_guid": "USR-72086f59-6684-4adf-8f29-c4d32db43cd7"
_10
}
_10
}