API basics
The stub Connect API is a RESTful API allows you to push income, sales, and expense data into a user's stub account.
Requests and responses
The majority of request in the stub Connect API are post request. The payloads you send are queued and processed asynchronously. Successfully queue payloads will
If the request was unsuccessful or the malformed, error
will be true
with a reason, when available, contained in the message
.
Webhooks
When pushing data asynchronously into stub the result of push will be returned to the specified webhook URL when completed. For data pushes the webhook is optional.
When pulling data asynchronously from stub data will be returned to the specified webhook URL when ready. For data pull the webhook is mandatory.
Retries
Webhooks will be retried 4 times using an exponential back-off algorithm in the following time intervals:
10 seconds later
2.5 minutes later
30 minutes later
6 hours later
After the fourth retry the data is discarded.
Last updated