PlatformIntegrations

Testing & Sandbox

Test your Obligo integration end to end in the sandbox, then move it to production.

The sandbox is a separate Obligo environment where you build and test your integration before you set it up in production. It has its own data, API keys and hosts. Bank linking and ACH payments run in test mode there, so use the test values below instead of real bank accounts and cards.

Hosts

PurposeSandboxProduction
APIhttps://api.sandbox.myobligo.comhttps://api.obligo.com
Obligo dashboard, for apps and webhook endpointshttps://management.sandbox.myobligo.comhttps://management.obligo.com
SDK scripthttps://cdn.sandbox.myobligo.com/libraries/obligoSDK.min.jshttps://cdn.obligo.com/libraries/obligoSDK.min.js
Renter app, shown in the move-in widgethttps://tenant.sandbox.myobligo.comhttps://tenant.obligo.com

API keys, session tokens, webhook endpoints and data exist only in the environment where you created them. For a sandbox account, contact Obligo.

Check that you can reach the sandbox API with GET /health:

curl https://api.sandbox.myobligo.com/health \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2"
{
  "status": "OK"
}

Test values

Bank accounts

In the bank-linking window, choose Regions Bank, then sign in with one of these usernames and any password:

UsernameOutcome
custom_obqThe bank account qualifies.
custom_nobqThe bank account doesn't qualify.

Cards

Use any future expiry date.

Card numberOutcome
4242 4242 4242 4242The card qualifies.
4000 0000 0000 0341The card doesn't qualify.

Email codes

The renter confirms their email with a code that Obligo emails to them, so give test renters email addresses whose inboxes you can open.

Run a lease end to end

  1. In the sandbox Obligo dashboard, create an app on API version 1.2 and a webhook endpoint for it. See Webhooks.
  2. If you're a platform, create a connected account and complete its account setup through the API.
  3. Create a property, a renter and a lease that links them, with POST /properties, POST /renters and POST /leases.
  4. Confirm the lease is eligible: GET /leases/{leaseId} shows the product's status as Eligible. If it's NotEligible, eligibility.restrictions lists the rules the lease doesn't meet. Each later status change sends lease.availableProducts.statusChanged.
  5. Open the move-in widget from the sandbox SDK script with a renter session, or follow the invitation email. Complete the flow with the test values above.
  6. When the renter is approved, expect lease.availableProducts.statusChanged with status Active, and lease.financials.securityItemCommitted. If qualification is declined, expect statusChanged with Declined, and lease.availableProducts.optedOut.
  7. At move-out, create the charges and commit them with POST /leases/{leaseId}/commit-financials. Obligo sends no lease.financials.* webhooks for them, because an API app made the change, so retrieve them with GET /leases/{leaseId}/financials. When Obligo pays out the charges, the payout's balance item sends lease.financials.balanceItemInProgress, then lease.financials.balanceItemSettled or lease.financials.balanceItemFailed.

Go live

  1. Contact Obligo for production access.
  2. In the production Obligo dashboard, https://management.obligo.com, create a new app. It has new API keys: sandbox keys don't work in production.
  3. Create your webhook endpoints again on the production app. Each one has a new signing secret.
  4. Switch your API base URL, SDK script and Content Security Policy to the production hosts.

In production, renters qualify and pay with their real bank accounts and cards.

Common pitfalls

PitfallFix
Mixing environmentsUse API keys, session tokens, data and the SDK script from the same environment.
An app on API version 1 or 1.1Such apps receive only the lease.financials.* events. Update the app to 1.2 on its page in Developers.
Waiting for webhooks about API changesObligo sends no lease.financials.* webhooks for changes any API app makes. Retrieve the lease's financials with GET /leases/{leaseId}/financials.
A lease without a propertyIt sends no lease or financial events. Set the lease's propertyId.
A rejected webhook URLUse https and a hostname that resolves to a public IP address, with no username or password. To test on your machine, use a public HTTPS tunnel instead of localhost.
A signature that doesn't matchCompute it over the raw request body, with t exactly as sent and the endpoint's signing secret, not your client secret.
Failed deliveriesReturn a 2xx within 10 seconds, and process the event after you respond.