API Reference
Endpoints, request and response schemas, and postback payloads for the PayTomorrow API.
The PayTomorrow API is a JSON API over HTTPS. Every page in this section is generated from the OpenAPI 3.1 spec, so the reference always matches the spec.
Base URLs
| Environment | Base URL |
|---|---|
| Staging | https://api-staging.paytomorrow.com/api |
| Production | https://api.paytomorrow.com/api |
Authentication
Get an access token from Get an access token, then send it on every request:
Authorization: Bearer <access_token>See the authentication guide for caching and refresh.
Conventions
- Request bodies are JSON with
Content-Type: application/json, except the token endpoint, which is form-encoded. - Money is a number in US dollars, like
1149.97. - Field names are camelCase. Unknown fields are ignored, not rejected.
applicationTokenin a path is thetokenreturned when the application was created.- Errors return
417with a JSON body. See Errors.