Skip to content

DailyPay Public Rest API (3.0.0-beta01)

Embed DailyPay and On Demand Pay features into your application.

Download OpenAPI description
Overview
Languages
Servers
Mock server

https://developer.dailypay.com/_mock/developer-resources/documentation/

DailyPay REST API server

https://api.{environment}.com/

API Status

Please subscribe to the DailyPay Status Page for the current status of the DailyPay Public REST API.

Environments

In general, DailyPay APIs have two environments per API and follow the naming structure of api.dailypay.com for the Production environment and api.dailypayuat.com for the UAT environment.

DailyPay APIs and their respective environments

API NameProduction URLUAT URL
DailyPay Public REST APIhttps://api.dailypay.comhttps://api.dailypayuat.com
Data Exchange APIhttps://api.dailypay.comhttps://api.dailypayuat.com
Payments APIhttps://payments-api.dailypay.comhttps://payments-api.dailypayuat.com

Key differences between the Production and UAT environments:

EnvironmentPurposeAccessData
ProductionLive environment for processing production API TrafficRestricted access for authorized clients and users onlyReal production data exchanges including money movement
UATStaging environment for developers to test new features, updates, and changesLess restricted access for both developers and testersTest data and exchanges without money movement

Functionality Differences

FunctionUATProduction
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.

URL Encoding

The symbols used in DailyPay's filter strings MUST be urlencoded.

For example, a curl would look like:

curl  \
  --get 'https://api.dailypayuat.com/rest/jobs' \
  --header "Authorization: Bearer ${ACCESS_TOKEN}" \
  --data-urlencode "filter[external_identifiers.primary_identifier]=040919553433" \
  --include

When using one of our published SDKs, you do not have to transform or urlencode filter keys.

Examples

Exact Match

Filter for a paycheck with the status "IN_TRANSIT".

GET https://api.dailypay.com/paychecks?filter[status]=IN_TRANSIT

Multiple Filters: ALL

Use 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]=PROCESSING

Versioning

  • Each API at DailyPay adheres to semver standards for versioning, represented as MAJOR.MINOR.PATCH:

    • The MAJOR version is incremented for breaking changes.
    • The MINOR version is incremented for backwards compatible changes.
    • The PATCH version is incremented for backwards compatible bug fixes.
  • 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.

DailyPay views the following items as backwards compatible non-breaking changes:

  • 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

Selecting the API Version

Your API version controls the API behavior, properties in responses, available parameters in requests, and so on.

If you want to use API version v3 of the DailyPay Public REST API, specify the URL https://api.dailypay.com/rest or https://api.dailypayuat.com/rest.

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.

Operations

Health

The health endpoint provides a simple health check for the API.

Functionality: Check the status of the API to ensure it is functioning correctly.

Operations

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.

Operations

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.

Operations

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.

Operations

Request

Returns details about a paycheck object.

Security
oauth_user_token
Path
paycheck_idstring(uuid)required

Unique ID of the paycheck

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
Headers
DailyPay-API-Versioninteger

The version of the DailyPay API to use for this request. If not provided, the latest version of the API will be used.

Default 3
Acceptstring

The media type of the requested payload. This should be set to application/vnd.api+json to signify your client can receive responses in the JSON:API format. For more details, see https://jsonapi.org.

Default application/vnd.api+json
Enum"application/vnd.api+json""*/*"
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.paychecks.read({
    paycheckId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  });

  console.log(result);
}

run();

Responses

Returns the paycheck object.

Bodyapplication/vnd.api+json
dataobject(PaycheckResource)required
data.​typestringrequired
Value "paychecks"
data.​idstring(uuid)required
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
data.​attributesobject(PaycheckAttributes)required
data.​attributes.​statusstringrequired

A paycheck expected for an open pay period will have the status ESTIMATED. At the end of the pay period, the paycheck will begin PROCESSING. When it is sent, it will become IN_TRANSIT. Finally, once deposited in an account it will have the status DEPOSITED.

Enum"ESTIMATED""PROCESSING""IN_TRANSIT""DEPOSITED"
data.​attributes.​pay_period_ends_atstring(date-time)required

An ISO 8601 timestamp denoting the ending day of a paycheck's pay period. For example, a pay period that ends during the day of March 15 will have a value of 2023-03-15T04:00:00Z.

Example: "2023-03-15T04:00:00Z"
data.​attributes.​pay_period_starts_atstring(date-time)required

An ISO 8601 timestamp denoting the first day of a paycheck's pay period. For example, a pay period that starts during the day of March 15 will have a value of 2023-03-15T04:00:00Z.

Example: "2023-03-15T04:00:00Z"
data.​attributes.​deposit_expected_atstring(date-time)required

An ISO 8601 timestamp denoting the day the paycheck is scheduled to be delivered.

Example: "2023-03-15T04:00:00Z"
data.​attributes.​total_debitedinteger or null>= 0required

The amount debited and settled from this paycheck prior to the end of the pay period. Debits are settled during a pay period in order to cover withdrawals from an earnings balance account. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { total_debited: 7050 } with currency USD resolves to $70.50.

Example: 0
data.​attributes.​gross_earningsintegerrequired

The total earnings for this paycheck before any deductions are applied. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { gross_earnings: 55370 } with currency USD resolves to $553.70

Example: 0
data.​attributes.​employer_withholdingsinteger or nullrequired

The amount withheld from this paycheck by the employer, usually for taxes. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { withholdings: 5000 } with currency USD resolves to $50.00.

Example: 0
data.​attributes.​net_earningsinteger or nullrequired

The net earnings for the paycheck once settled given in a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { earnings: 50370 } with currency USD resolves to $503.70.

Example: 0
data.​attributes.​currencystring(Currency)required

A three-letter ISO 4217 currency code. For example, USD for US Dollars, EUR for Euros, or JPY for Japanese Yen.

data.​linksobject(PaycheckLinks)required
data.​links.​selfstring(uri)(PaycheckLink)read-onlyrequired
data.​relationshipsobject(PaycheckRelationships)required
data.​relationships.​personobject(PersonRelationship)required
data.​relationships.​person.​dataobject(PersonIdentifier)required
data.​relationships.​person.​data.​typestringrequired
Value "people"
data.​relationships.​person.​data.​idstring(uuid)required
Example: "3fa8f641-5717-4562-b3fc-2c963f66afa6"
data.​relationships.​jobobject(JobRelationship)required
data.​relationships.​job.​dataobject(JobIdentifier)required
data.​relationships.​job.​data.​typestringread-onlyrequired
Value "jobs"
data.​relationships.​job.​data.​idstring(uuid)read-onlyrequired
Example: "e9d84b0d-92ba-43c9-93bf-7c993313fa6f"
Response
application/vnd.api+json
{ "data": { "type": "paychecks", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "attributes": { "status": "ESTIMATED", "pay_period_ends_at": "2023-03-15T04:00:00Z", "pay_period_starts_at": "2023-03-15T04:00:00Z", "deposit_expected_at": "2023-03-15T04:00:00Z", "total_debited": 0, "gross_earnings": 0, "employer_withholdings": 0, "net_earnings": 0, "currency": "USD" }, "links": { "self": "https://api.dailypay.com/rest/paychecks/f4e2fd6c-b567-447c-a003-b7315b8d22d2" }, "relationships": { "person": {}, "job": {} } } }

Request

Returns a collection of paycheck objects. This object details a person's pay and pay period. See Filtering Paychecks for a description of filterable fields.

Security
oauth_user_token
Query
filter[job.id]string

Limit the results to documents related to a specific job

filter[status]string

Limit the results to paychecks with the specified status

Enum"ESTIMATED""PROCESSING""IN_TRANSIT""DEPOSITED"
filter[deposit_expected_at__gte]string(date-time)

Limit the results to paychecks with deposit_expected_at greater than or equal to the specified date

Example: filter[deposit_expected_at__gte]=2023-03-15T04:00:00Z
filter[deposit_expected_at__lt]string(date-time)

Limit the results to paychecks with deposit_expected_at less than the specified date

Example: filter[deposit_expected_at__lt]=2023-03-15T04:00:00Z
filter[pay_period_ends_at__gte]string(date-time)

Limit the results to paychecks with pay_period_ends_at greater than or equal to the specified date

Example: filter[pay_period_ends_at__gte]=2023-03-15T04:00:00Z
filter[pay_period_ends_at__lt]string(date-time)

Limit the results to paychecks with pay_period_ends_at less than the specified date

Example: filter[pay_period_ends_at__lt]=2023-03-15T04:00:00Z
filter[pay_period_starts_at__gte]string(date-time)

Limit the results to paychecks with pay_period_starts_at greater than or equal to the specified date

Example: filter[pay_period_starts_at__gte]=2023-03-15T04:00:00Z
filter[pay_period_starts_at__lt]string(date-time)

Limit the results to paychecks with pay_period_starts_at less than the specified date

Example: filter[pay_period_starts_at__lt]=2023-03-15T04:00:00Z
filterstringDeprecated
Examples:
filter=job_id:"aa860051-c411-4709-9685-c1b716df611b"
filter=status:"DEPOSITED"
Headers
DailyPay-API-Versioninteger

The version of the DailyPay API to use for this request. If not provided, the latest version of the API will be used.

Default 3
Acceptstring

The media type of the requested payload. This should be set to application/vnd.api+json to signify your client can receive responses in the JSON:API format. For more details, see https://jsonapi.org.

Default application/vnd.api+json
Enum"application/vnd.api+json""*/*"
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.paychecks.list({
    filterDepositExpectedAtGte: new Date("2023-03-15T04:00:00Z"),
    filterDepositExpectedAtLt: new Date("2023-03-15T04:00:00Z"),
    filterPayPeriodEndsAtGte: new Date("2023-03-15T04:00:00Z"),
    filterPayPeriodEndsAtLt: new Date("2023-03-15T04:00:00Z"),
    filterPayPeriodStartsAtGte: new Date("2023-03-15T04:00:00Z"),
    filterPayPeriodStartsAtLt: new Date("2023-03-15T04:00:00Z"),
  });

  console.log(result);
}

run();

Responses

Returns the paycheck object.

Bodyapplication/vnd.api+json
dataArray of objects(PaycheckResource)required
data[].​typestringrequired
Value "paychecks"
data[].​idstring(uuid)required
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
data[].​attributesobject(PaycheckAttributes)required
data[].​attributes.​statusstringrequired

A paycheck expected for an open pay period will have the status ESTIMATED. At the end of the pay period, the paycheck will begin PROCESSING. When it is sent, it will become IN_TRANSIT. Finally, once deposited in an account it will have the status DEPOSITED.

Enum"ESTIMATED""PROCESSING""IN_TRANSIT""DEPOSITED"
data[].​attributes.​pay_period_ends_atstring(date-time)required

An ISO 8601 timestamp denoting the ending day of a paycheck's pay period. For example, a pay period that ends during the day of March 15 will have a value of 2023-03-15T04:00:00Z.

Example: "2023-03-15T04:00:00Z"
data[].​attributes.​pay_period_starts_atstring(date-time)required

An ISO 8601 timestamp denoting the first day of a paycheck's pay period. For example, a pay period that starts during the day of March 15 will have a value of 2023-03-15T04:00:00Z.

Example: "2023-03-15T04:00:00Z"
data[].​attributes.​deposit_expected_atstring(date-time)required

An ISO 8601 timestamp denoting the day the paycheck is scheduled to be delivered.

Example: "2023-03-15T04:00:00Z"
data[].​attributes.​total_debitedinteger or null>= 0required

The amount debited and settled from this paycheck prior to the end of the pay period. Debits are settled during a pay period in order to cover withdrawals from an earnings balance account. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { total_debited: 7050 } with currency USD resolves to $70.50.

Example: 0
data[].​attributes.​gross_earningsintegerrequired

The total earnings for this paycheck before any deductions are applied. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { gross_earnings: 55370 } with currency USD resolves to $553.70

Example: 0
data[].​attributes.​employer_withholdingsinteger or nullrequired

The amount withheld from this paycheck by the employer, usually for taxes. This amount is given as a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { withholdings: 5000 } with currency USD resolves to $50.00.

Example: 0
data[].​attributes.​net_earningsinteger or nullrequired

The net earnings for the paycheck once settled given in a monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { earnings: 50370 } with currency USD resolves to $503.70.

Example: 0
data[].​attributes.​currencystring(Currency)required

A three-letter ISO 4217 currency code. For example, USD for US Dollars, EUR for Euros, or JPY for Japanese Yen.

data[].​linksobject(PaycheckLinks)required
data[].​links.​selfstring(uri)(PaycheckLink)read-onlyrequired
data[].​relationshipsobject(PaycheckRelationships)required
data[].​relationships.​personobject(PersonRelationship)required
data[].​relationships.​person.​dataobject(PersonIdentifier)required
data[].​relationships.​person.​data.​typestringrequired
Value "people"
data[].​relationships.​person.​data.​idstring(uuid)required
Example: "3fa8f641-5717-4562-b3fc-2c963f66afa6"
data[].​relationships.​jobobject(JobRelationship)required
data[].​relationships.​job.​dataobject(JobIdentifier)required
data[].​relationships.​job.​data.​typestringread-onlyrequired
Value "jobs"
data[].​relationships.​job.​data.​idstring(uuid)read-onlyrequired
Example: "e9d84b0d-92ba-43c9-93bf-7c993313fa6f"
Response
application/vnd.api+json
{ "data": [ { "type": "paychecks", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "attributes": {}, "links": {}, "relationships": {} } ] }

People

The people endpoint allows you to see information related to who owns resources such as jobs and accounts.

Functionality: Retrieve limited details about a person, including their name, global status, and state of residence.

Operations

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

Operations

Card Tokenization

Securely tokenize personal cards for use in the accounts API.

Operations