Move test applications between states
Take any sandbox offer through to funded, or to any step in between, in the Developer Portal or with the API
In sandbox, you can take a test application with any offer through to funded, or stop it at any step in between. You do it yourself, in the Developer Portal or with the API, without going through the customer journey on iwoca.
Use it to make sure your user experience matches each change in the application's state, and that your webhooks fire as intended. It's required for API Plus and optional for API Lite. Either way, it helps you self-serve your testing and make sure your integration is robust.
Before you start
Create a test application with any offer, using the test data. When you move it on, iwoca runs every step in between for you.
Move your application to a new state
- 1Find your test application
In the Developer Portal, open the Applications tab and select your test application.
- 2See where it is and where it can go next
Open the Actions tab. It shows the state your application is in now, and the states you can move it to.
- 3Move it to a new state
Pick a state from the list, then select Move to.
- 1See where it is and where it can go next
You'll need:
- The
customer_you created the test application withid
Response: You'll receive the
stateyour application is in now, and thereachable_you can move it to.states - The
- 2Move it to a new state
You'll need:
- A request body with one of the
reachable_, for examplestates {"data": {"state": "funded"}}
Response: You'll receive the new
state. - A request body with one of the
Both endpoints are available from v2.2.
States you can move to
| State | What it means |
|---|---|
data_ | iwoca has everything it needs and is making a decision. |
offered | Your customer has a confirmed offer to accept. |
funded | Your customer has accepted, and the funds have been paid out. |
offer_ | Your customer didn't accept their offer in time. |
deferred | The application closed before a decision, for example because your customer stopped responding. |
declined | iwoca can't lend to your customer. |
Applications only move forwards.
A confirmed offer starts at offered, and other offers start earlier, so they can also stop at data_, or be deferred or declined.
See Get sandbox customer's state for every state.
Check your integration
After each move, check your platform handles it the same way it will in production:
- Your platform shows your customer the right experience for the new state.
GET /returns the rightcustomers/ {customer_id}/ applications/ latest/ application_, for examplestatus funded.- Your webhook endpoint receives the webhooks you subscribe to, for example
application_. See webhook event types for which webhook fires when.status_ changed