Embed DailyPay and On Demand Pay features into your application.
DailyPay REST API (3.0.0-beta01)
https://developer.dailypay.com/_mock/products/rest/reference/
https://api.{environment}.com/
API Status
Please subscribe to the DailyPay Status Page for the current status of the DailyPay REST API.
Environments
In general, DailyPay APIs have two environments per API and follow the naming structure of dailypay.com for the Production environment and dailypayuat.com or uat.dailypay.com for the UAT environment.
| API Name | Production URL | UAT URL |
|---|---|---|
| Auth API | https://auth.dailypay.com | https://auth.uat.dailypay.com |
| Data Exchange API | https://api.dailypay.com | https://api.dailypayuat.com |
| Payments API | https://payments-api.dailypay.com | https://payments-api.dailypayuat.com |
| REST API | https://api.dailypay.com | https://api.dailypayuat.com |
| Environment | Purpose | Access | Data |
|---|---|---|---|
| Production | Live environment for processing production API Traffic | Restricted access for authorized clients and users only | Real production data exchanges including money movement |
| UAT | Staging environment for developers to test new features, updates, and changes | Less restricted access for both developers and testers | Test data and exchanges without money movement |
| Function | UAT | Production |
|---|---|---|
| Testing user data without PII | ✓ | |
| Ability to mock transfer of funds | ✓ | |
| Ability to integrate with custom code | ✓ | ✓ |
| Access to real-world transactions like ACH Deposits | ✓ | |
| Live customer data | ✓ | |
| Live transactions moving real funds | ✓ |
Filtering
Efficiently retrieve DailyPay REST API resources with filtering queries by specifying query parameters in the request URL. This guide outlines how to build your queries.
The request URL for a filtered query is structured as follows:
https://api.dailypay.com/{endpoint}?filter[{field}]={value}
Each filter is a standard URL query parameter key-value pair. Filter parameters follow the jsonapi specification of a query parameter family, where the parameter key is the base name filter followed by a square-bracketed ([]) field name.
- The
{endpoint}is the resource you want to filter, such as organizations, transfers, or paychecks. - A
{field}is the attribute of a resource you want to filter by, such as a person's employee ID or a transfer's status. - A
{value}is any value that could be a valid payload for the attribute, such as "DailyPay" for an organization name, or "PROCESSING" for a transfer status.
The symbols used in DailyPay's filter strings MUST be urlencoded.
For example, a curl would look like:
curl \
--get \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--data-urlencode "filter[external_identifiers.primary_identifier]=040919553433" \
'https://api.dailypayuat.com/rest/jobs' When using one of our published SDKs, you do not have to transform or urlencode filter keys.
Filter for a paycheck with the status "IN_TRANSIT".
GET https://api.dailypay.com/paychecks?filter[status]=IN_TRANSITUse multiple query parameters across different fields filter[{field}]={value} at the same time to fine tune the response. Each result will match all filters.
GET https://api.dailypay.com/paychecks?filter[job.id]=12345&filter[status]=PROCESSINGIdempotency
Idempotency ensures that duplicate requests are processed only once, preventing unintended side effects such as double charges or duplicate resource creation. The API will return the same response for any number of identical requests that use the same idempotency key.
When making requests to endpoints that support idempotency, include the Idempotency-Key header with a unique value for each logical operation.
How it works:
- Idempotency keys are retained for 24 hours per key. After 24 hours the key may be reused for a new payload.
- It is always safe to retry the same request with the same key.
- The response payload will be identical for duplicate requests, including error responses.
- The error response will be the same even if the error is the result of a failed precondition (e.g., insufficient funds) that has since been satisfied.
- To help prevent accidental key recycling, if the request payload differs in any way (e.g., different parameters or body content), a new idempotency key must be used.
- If the request payload has invalid syntax such that it can not be processed or understood, idempotency will not apply.
- If multiple simultaneous requests use the same idempotency key, one may succeed and others may receive an HTTP 409 Conflict error. This only applies to requests being processed at the exact same time.
Versioning
Each API at DailyPay adheres to semver standards for versioning, represented as
MAJOR.MINOR.PATCH:- The
MAJORversion is incremented for breaking changes. - The
MINORversion is incremented for backwards compatible changes. - The
PATCHversion is incremented for backwards compatible bug fixes.
- The
DailyPay will issue a new major API version when a breaking change occurs.
To avoid breaking your code, developers are responsible for updating their API calls to interact with new versions of the DailyPay APIs.
Communication about API changes will be in the changelogs for the APIs or available from your DailyPay representatives.
- New resources
- New optional query parameters
- New optional body properties on PATCH, POST, PUT
- New properties on existing API responses
- Property order changes on existing API responses
- Changes to the content, length, or format of error messages and other human-readable strings
Your API version controls the API behavior, properties in responses, available parameters in requests, and so on.
Accounts
The accounts endpoint provides comprehensive information about money accounts. You can retrieve account details, including the account's unique ID, a link to the account holder, type, subtype, verification status, balance details, transfer capabilities, and user-specific information such as names, routing numbers, and partial account numbers.
Functionality: Access detailed user account information, verify account balances, view transfer capabilities, and access user-specific details associated with each account.
Jobs
The jobs endpoint provides access to comprehensive information about a person's employment. It enables you to retrieve details about individual jobs, including information about the organization they work for, status, wage rate, job title, location, paycheck settings, and related links to associated accounts.
Organizations
The organizations endpoint provides details about a business entity, such as an employer, or a group of people, such as a division.
The response includes the organization name and ID which can be used to make subsequent endpoint calls related to the organization and its employees.
Paychecks
The paychecks endpoint provides detailed information about paychecks. You can retrieve individual paycheck details, including the person and job associated with the paycheck, its status, pay period, expected deposit date, total debited amount, withholdings, earnings, and currency.
Functionality: Retrieve specific paycheck details, including payee and job information, and monitor the status and financial details of each paycheck.
- Mock server
https://developer.dailypay.com/_mock/products/rest/reference/rest/people/{person_id}
- DailyPay REST API server
https://api.dailypay.com/rest/people/{person_id}
- JavaScript
- Go
- C#
- Java
- Python
- Ruby
- cURL
import { SDK } from "@dailypay/dailypay";
const sdk = new SDK({
version: 3,
security: {
oauthClientCredentialsToken: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
tokenURL: "<YOUR_TOKEN_URL_HERE>",
},
},
});
async function run() {
const result = await sdk.people.read({
personId: "aa860051-c411-4709-9685-c1b716df611b",
});
console.log(result);
}
run();Returns the person object.
A person is a record of someone known to DailyPay. There will only ever be one person record per human being.
The statuses and required actions are:
nullThe person has not been disallowed, and is free to use DailyPay.INACTIVEThe person has not completed registration or account verification.DELINQUENTThe person has an outstanding, unrecoverable balance with DailyPay, and should contact support.BANNEDAccess has been revoked.
The two-letter abbreviation for the state in which the person resides, if located in the United States. This is used for regulatory compliance purposes.
Products that the person is enrolled in or eligible for. This data is refreshed nightly.
The DailyPay Visa®️ Prepaid Card program. A person can be either eligible or enrolled, but not both.
Whether the person is eligible to enroll in the DailyPay Visa®️ Prepaid Card program.
{ "data": { "type": "people", "id": "aa860051-c411-4709-9685-c1b716df611b", "attributes": { "disallow_reason": null, "state_of_residence": "NY", "products": { … } }, "links": { "self": "https://api.dailypay.com/rest/people/aa860051-c411-4709-9685-c1b716df611b" } } }
The version of the DailyPay API to use for this request. If not provided, the latest version of the API will be used.
A person is a record of someone known to DailyPay. There will only ever be one person record per human being.
- Mock server
https://developer.dailypay.com/_mock/products/rest/reference/rest/people/{person_id}
- DailyPay REST API server
https://api.dailypay.com/rest/people/{person_id}
- JavaScript
- Go
- C#
- Java
- Python
- Ruby
- cURL
import { SDK } from "@dailypay/dailypay";
const sdk = new SDK({
version: 3,
security: {
oauthClientCredentialsToken: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
tokenURL: "<YOUR_TOKEN_URL_HERE>",
},
},
});
async function run() {
const result = await sdk.people.update({
personId: "aa860051-c411-4709-9685-c1b716df611b",
personData: {
data: {
type: "people",
id: "aa860051-c411-4709-9685-c1b716df611b",
attributes: {
stateOfResidence: "NY",
},
},
},
});
console.log(result);
}
run();Returns the person object.
A person is a record of someone known to DailyPay. There will only ever be one person record per human being.
The statuses and required actions are:
nullThe person has not been disallowed, and is free to use DailyPay.INACTIVEThe person has not completed registration or account verification.DELINQUENTThe person has an outstanding, unrecoverable balance with DailyPay, and should contact support.BANNEDAccess has been revoked.
The two-letter abbreviation for the state in which the person resides, if located in the United States. This is used for regulatory compliance purposes.
Products that the person is enrolled in or eligible for. This data is refreshed nightly.
The DailyPay Visa®️ Prepaid Card program. A person can be either eligible or enrolled, but not both.
Whether the person is eligible to enroll in the DailyPay Visa®️ Prepaid Card program.
{ "data": { "type": "people", "id": "aa860051-c411-4709-9685-c1b716df611b", "attributes": { "disallow_reason": null, "state_of_residence": "NY", "products": { … } }, "links": { "self": "https://api.dailypay.com/rest/people/aa860051-c411-4709-9685-c1b716df611b" } } }
Transfers
The transfers endpoint allows you to initiate and track money movement. You can access transfer details, including the transfer's unique ID, amount, currency, status, schedule, submission and resolution times, fees, and related links to the involved parties.
Functionality Retrieve transfer information, monitor transfer statuses, view transfer schedules, and access relevant links for the source, destination, and origin of the transfer.
Important - Account origin: a user initiated movement of money from one account to another - Paycheck origin: an automatic (system-generated) movement of money as part of payroll