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

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

Request

Returns a list of transfer objects. See Filtering Transfers for a description of filterable fields.

Security
oauth_client_credentials_token or oauth_user_token
Query
filter[person.id]string

Limit the results to documents related to a specific person

includestring

Add related resources to the response.

The value of the include parameter must be a comma-separated (U+002C COMMA, “,”) list of relationship paths.

Examples:
include=estimated_funding_sources,final_funding_sources
filterstringDeprecated
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.transfers.list();

  console.log(result);
}

run();

Responses

A list of transfer objects.

Bodyapplication/vnd.api+json
dataArray of objects(TransferResource)required
data[].​typestringrequired
Value "transfers"
data[].​idstring(uuid)required
Example: "aba332a2-24a2-46de-8257-5040e71ab210"
data[].​attributesobject(TransferAttributes)required

An object representing a transfer of money from one account to another. Created when a person takes an advance against a future paycheck, or on a daily basis when we update estimated earnings based on current employment.

data[].​attributes.​previewboolean

Include this field to preview a transfer without sending it, to see, for example, the fee that would be charged. This will return the same response as a typical transfer request. When the preview field is true in the response to creating a transfer, that indicates no transfer was created.

Default false
Example: true
data[].​attributes.​amountinteger(Amount)>= 0required

The amount of funds requested to move from the origin account to the destination account. Any fees will be subtracted from this amount prior to landing in the destination account.

A monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { amount: 7250, currency: 'USD' } resolves to $72.50.

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[].​attributes.​statusstringread-onlyrequired

The status of the transfer.

Enum ValueDescription
PENDING

The transfer is in process, or funds have been scheduled but a final status is not yet known.

SETTLED

Funds have been successfully transferred.

FAILED

The transfer has failed.

data[].​attributes.​schedulestringrequired

Set the schedule for the transfer. If not set, the transfer will be processed immediately. A preview transfer will never send.

Enum"WITHIN_THIRTY_MINUTES""NEXT_BUSINESS_DAY"
Example: "WITHIN_THIRTY_MINUTES"
data[].​attributes.​submitted_atstring(date-time)read-onlyrequired

An ISO 8601 timestamp denoting the receipt for the request.

Example: "2021-04-21T21:30:58.051Z"
data[].​attributes.​resolved_atstring or null(date-time)read-onlyrequired

An ISO 8601 date denoting a successful or unsuccessful resolution for the request.

Example: "2021-04-21T21:30:58.051Z"
data[].​attributes.​feeinteger>= 0read-onlyrequired

A monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { amount: 7250, currency: 'USD' } resolves to $72.50. If a transfer incurs a fee, the fee will be deducted from the amount of the transfer.

Example: 0
data[].​linksobject(TransferLinks)read-onlyrequired
data[].​links.​selfstring(uri)(TransferLink)read-onlyrequired
data[].​relationshipsobject(TransferRelationships)required

The relationships between the transfer and other resources, including the destination account, the origination account, and the person who initiated the transfer.

data[].​relationships.​originAccountRelationship (object) or PaycheckRelationship (object)required

Origin may be a reference to either a Paycheck or an Account.

User-created transfers always originate from an Account with account_type EARNINGS_BALANCE.

A transfer that originates from a Paycheck is a
system-created record that describes a credit of earnings to an account with account_type EARNINGS_BALANCE.

One of:

Origin may be a reference to either a Paycheck or an Account.

User-created transfers always originate from an Account with account_type EARNINGS_BALANCE.

A transfer that originates from a Paycheck is a
system-created record that describes a credit of earnings to an account with account_type EARNINGS_BALANCE.

data[].​relationships.​origin.​dataobject(AccountIdentifier)required
data[].​relationships.​origin.​data.​typestringrequired
Value "accounts"
data[].​relationships.​origin.​data.​idstring(uuid)required
data[].​relationships.​destinationobject(AccountRelationship)required

The account to which funds are transferred.

User-created transfers should have a destination Account with account_type DEPOSITORY or CARD.

data[].​relationships.​destination.​dataobject(AccountIdentifier)required
data[].​relationships.​destination.​data.​typestringrequired
Value "accounts"
data[].​relationships.​destination.​data.​idstring(uuid)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.​estimated_funding_sourcesobject(FundingSourcesRelationship)read-onlyrequired

On user-created transfers, details the paychecks that are likely to be used to reimburse this transfer.

The paychecks impacted, and final amount allocated from each paycheck is subject to change. See final_funding_sources for the final allocations.

data[].​relationships.​estimated_funding_sources.​dataArray of objects(FundingSourceIdentifier)>= 0 itemsrequired
data[].​relationships.​estimated_funding_sources.​data[].​typestringread-onlyrequired
Value "funding_sources"
data[].​relationships.​estimated_funding_sources.​data[].​idstringread-onlyrequired
Example: "b5393c00b7c113fc2e5ae3e80c785bb2"
data[].​relationships.​final_funding_sourcesobject(FundingSourcesRelationship)read-onlyrequired

On user-created transfers, details the paychecks that were used to reimburse this transfer and the amount allocated from each paycheck.

If this relationship has members, its members and their values are immutable.

data[].​relationships.​final_funding_sources.​dataArray of objects(FundingSourceIdentifier)>= 0 itemsrequired
data[].​relationships.​final_funding_sources.​data[].​typestringread-onlyrequired
Value "funding_sources"
data[].​relationships.​final_funding_sources.​data[].​idstringread-onlyrequired
Example: "b5393c00b7c113fc2e5ae3e80c785bb2"
includedArray of objects(FundingSourceResource)
Response
application/vnd.api+json
{ "data": [ { "type": "transfers", "id": "aba332a2-24a2-46de-8257-5040e71ab210", "attributes": {}, "links": {}, "relationships": {} } ], "included": [ { "id": "b5393c00b7c113fc2e5ae3e80c785bb2", "type": "funding_sources", "attributes": {}, "relationships": {} } ] }

Request

Request transfer of funds from an EARNINGS_BALANCE account to a personal DEPOSITORY or CARD account.

Security
oauth_user_token
Query
includestring

Add related resources to the response.

The value of the include parameter must be a comma-separated (U+002C COMMA, “,”) list of relationship paths.

Examples:
include=estimated_funding_sources,final_funding_sources
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""*/*"
Idempotency-Keystring(uuid)required

An idempotency key is a unique string that you provide to ensure a request is only processed once. Any number of requests with the same idempotency key and payload will return an identical response.

Bodyapplication/vnd.api+jsonrequired
dataobject(TransferCreateResource)required
data.​typestringrequired
Value "transfers"
data.​idstring(uuid)

The unique identifier of the transfer. Any UUID version is valid, lower-cased.

Example: "aba332a2-24a2-46de-8257-5040e71ab210"
data.​attributesobject(TransferAttributes)required

An object representing a transfer of money from one account to another. Created when a person takes an advance against a future paycheck, or on a daily basis when we update estimated earnings based on current employment.

data.​attributes.​previewboolean

Include this field to preview a transfer without sending it, to see, for example, the fee that would be charged. This will return the same response as a typical transfer request. When the preview field is true in the response to creating a transfer, that indicates no transfer was created.

Default false
Example: true
data.​attributes.​amountinteger(Amount)>= 0required

The amount of funds requested to move from the origin account to the destination account. Any fees will be subtracted from this amount prior to landing in the destination account.

A monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { amount: 7250, currency: 'USD' } resolves to $72.50.

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.​attributes.​schedulestringrequired

Set the schedule for the transfer. If not set, the transfer will be processed immediately. A preview transfer will never send.

Enum"WITHIN_THIRTY_MINUTES""NEXT_BUSINESS_DAY"
Example: "WITHIN_THIRTY_MINUTES"
data.​relationshipsobject(TransferCreateRelationships)required

The relationships between the transfer and other resources, including the destination account, the origination account, and the person who initiated the transfer.

data.​relationships.​originobject(AccountRelationship)required

User-created transfers must originate from an Account with account_type EARNINGS_BALANCE.

data.​relationships.​origin.​dataobject(AccountIdentifier)required
data.​relationships.​origin.​data.​typestringrequired
Value "accounts"
data.​relationships.​origin.​data.​idstring(uuid)required
data.​relationships.​destinationobject(AccountRelationship)required

The account to which funds are transferred.

User-created transfers should have a destination Account with account_type DEPOSITORY or CARD.

data.​relationships.​destination.​dataobject(AccountIdentifier)required
data.​relationships.​destination.​data.​typestringrequired
Value "accounts"
data.​relationships.​destination.​data.​idstring(uuid)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"
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.transfers.create({
    idempotencyKey: "ea9f2225-403b-4e2c-93b0-0eda090ffa65",
    transferCreateData: {
      data: {
        type: "transfers",
        id: "aba332a2-24a2-46de-8257-5040e71ab210",
        attributes: {
          preview: true,
          amount: 2500,
          currency: "USD",
          schedule: "WITHIN_THIRTY_MINUTES",
        },
        relationships: {
          origin: {
            data: {
              type: "accounts",
              id: "2bc7d781-3247-46f6-b60f-4090d214936a",
            },
          },
          destination: {
            data: {
              type: "accounts",
              id: "2bc7d781-3247-46f6-b60f-4090d214936a",
            },
          },
          person: {
            data: {
              type: "people",
              id: "3fa8f641-5717-4562-b3fc-2c963f66afa6",
            },
          },
        },
      },
    },
  });

  console.log(result);
}

run();

Responses

Returns the newly created transfer object.

Bodyapplication/vnd.api+json
dataobject(TransferResource)required
data.​typestringrequired
Value "transfers"
data.​idstring(uuid)required
Example: "aba332a2-24a2-46de-8257-5040e71ab210"
data.​attributesobject(TransferAttributes)required

An object representing a transfer of money from one account to another. Created when a person takes an advance against a future paycheck, or on a daily basis when we update estimated earnings based on current employment.

data.​attributes.​previewboolean

Include this field to preview a transfer without sending it, to see, for example, the fee that would be charged. This will return the same response as a typical transfer request. When the preview field is true in the response to creating a transfer, that indicates no transfer was created.

Default false
Example: true
data.​attributes.​amountinteger(Amount)>= 0required

The amount of funds requested to move from the origin account to the destination account. Any fees will be subtracted from this amount prior to landing in the destination account.

A monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { amount: 7250, currency: 'USD' } resolves to $72.50.

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.​attributes.​statusstringread-onlyrequired

The status of the transfer.

Enum ValueDescription
PENDING

The transfer is in process, or funds have been scheduled but a final status is not yet known.

SETTLED

Funds have been successfully transferred.

FAILED

The transfer has failed.

data.​attributes.​schedulestringrequired

Set the schedule for the transfer. If not set, the transfer will be processed immediately. A preview transfer will never send.

Enum"WITHIN_THIRTY_MINUTES""NEXT_BUSINESS_DAY"
Example: "WITHIN_THIRTY_MINUTES"
data.​attributes.​submitted_atstring(date-time)read-onlyrequired

An ISO 8601 timestamp denoting the receipt for the request.

Example: "2021-04-21T21:30:58.051Z"
data.​attributes.​resolved_atstring or null(date-time)read-onlyrequired

An ISO 8601 date denoting a successful or unsuccessful resolution for the request.

Example: "2021-04-21T21:30:58.051Z"
data.​attributes.​feeinteger>= 0read-onlyrequired

A monetary quantity expressed in units of the lowest denomination in the associated currency. For example, { amount: 7250, currency: 'USD' } resolves to $72.50. If a transfer incurs a fee, the fee will be deducted from the amount of the transfer.

Example: 0
data.​linksobject(TransferLinks)read-onlyrequired
data.​links.​selfstring(uri)(TransferLink)read-onlyrequired
data.​relationshipsobject(TransferRelationships)required

The relationships between the transfer and other resources, including the destination account, the origination account, and the person who initiated the transfer.

data.​relationships.​originAccountRelationship (object) or PaycheckRelationship (object)required

Origin may be a reference to either a Paycheck or an Account.

User-created transfers always originate from an Account with account_type EARNINGS_BALANCE.

A transfer that originates from a Paycheck is a
system-created record that describes a credit of earnings to an account with account_type EARNINGS_BALANCE.

One of:

Origin may be a reference to either a Paycheck or an Account.

User-created transfers always originate from an Account with account_type EARNINGS_BALANCE.

A transfer that originates from a Paycheck is a
system-created record that describes a credit of earnings to an account with account_type EARNINGS_BALANCE.

data.​relationships.​origin.​dataobject(AccountIdentifier)required
data.​relationships.​origin.​data.​typestringrequired
Value "accounts"
data.​relationships.​origin.​data.​idstring(uuid)required
data.​relationships.​destinationobject(AccountRelationship)required

The account to which funds are transferred.

User-created transfers should have a destination Account with account_type DEPOSITORY or CARD.

data.​relationships.​destination.​dataobject(AccountIdentifier)required
data.​relationships.​destination.​data.​typestringrequired
Value "accounts"
data.​relationships.​destination.​data.​idstring(uuid)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.​estimated_funding_sourcesobject(FundingSourcesRelationship)read-onlyrequired

On user-created transfers, details the paychecks that are likely to be used to reimburse this transfer.

The paychecks impacted, and final amount allocated from each paycheck is subject to change. See final_funding_sources for the final allocations.

data.​relationships.​estimated_funding_sources.​dataArray of objects(FundingSourceIdentifier)>= 0 itemsrequired
data.​relationships.​estimated_funding_sources.​data[].​typestringread-onlyrequired
Value "funding_sources"
data.​relationships.​estimated_funding_sources.​data[].​idstringread-onlyrequired
Example: "b5393c00b7c113fc2e5ae3e80c785bb2"
data.​relationships.​final_funding_sourcesobject(FundingSourcesRelationship)read-onlyrequired

On user-created transfers, details the paychecks that were used to reimburse this transfer and the amount allocated from each paycheck.

If this relationship has members, its members and their values are immutable.

data.​relationships.​final_funding_sources.​dataArray of objects(FundingSourceIdentifier)>= 0 itemsrequired
data.​relationships.​final_funding_sources.​data[].​typestringread-onlyrequired
Value "funding_sources"
data.​relationships.​final_funding_sources.​data[].​idstringread-onlyrequired
Example: "b5393c00b7c113fc2e5ae3e80c785bb2"
includedArray of objects(FundingSourceResource)read-only
Response
application/vnd.api+json
{ "data": { "type": "transfers", "id": "aba332a2-24a2-46de-8257-5040e71ab210", "attributes": { "preview": true, "amount": 2500, "currency": "USD", "status": "PENDING", "schedule": "WITHIN_THIRTY_MINUTES", "submitted_at": "2021-04-21T21:30:58.051Z", "resolved_at": "2021-04-21T21:30:58.051Z", "fee": 0 }, "links": { "self": "https://api.dailypay.com/rest/transfers/aba332a2-24a2-46de-8257-5040e71ab210" }, "relationships": { "origin": {}, "destination": {}, "person": {}, "estimated_funding_sources": {}, "final_funding_sources": {} } }, "included": [ { "id": "b5393c00b7c113fc2e5ae3e80c785bb2", "type": "funding_sources", "attributes": {}, "relationships": {} } ] }

Card Tokenization

Securely tokenize personal cards for use in the accounts API.

Operations