DailyPay Accounts API

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 4

GET /rest/accounts/{account_id} Get an Account object #
DELETE /rest/accounts/{account_id} Delete an Account #
GET /rest/accounts Get a list of Account objects #
POST /rest/accounts Create an Account object #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dailypay-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dailypay-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 3.0.0-beta.117
  termsOfService: https://www.dailypay.com/en-us/legal/direct/dailypay-client-api-terms-of-use/
  title: DailyPay Rest Accounts API
  x-logo:
    url: https://developer.dailypay.com/static/svgs/dp_text.svg
  contact:
    name: DailyPay Developer Support
    url: https://developer.dailypay.com
  description: Embed DailyPay and On Demand Pay features into your application.
servers:
- url: https://api.{environment}.com
  description: DailyPay REST API server
  variables:
    environment:
      default: dailypay
      enum:
      - dailypay
      - dailypayuat
security:
- oauth_client_credentials_token:
  - client:admin
- oauth_user_token:
  - user:read
tags:
- name: Accounts
  description: '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.

    '
paths:
  /rest/accounts/{account_id}:
    parameters:
    - $ref: '#/components/parameters/apiversion'
    - $ref: '#/components/parameters/account_id'
    get:
      tags:
      - Accounts
      summary: Get an Account object
      description: Returns details about an account. This object represents a person's bank accounts, debit and pay cards, and earnings balance accounts.
      operationId: readAccount
      security:
      - oauth_client_credentials_token:
        - client:lookup
        - client:admin
      - oauth_user_token:
        - user:read
      responses:
        '200':
          $ref: '#/components/responses/Account200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/Unexpected'
      x-codeSamples:
      - lang: C#
        source: "using DailyPay.SDK.DotNet8;\nusing DailyPay.SDK.DotNet8.Models.Components;\nusing DailyPay.SDK.DotNet8.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthClientCredentialsToken = new SchemeOauthClientCredentialsToken() {\n            ClientID = \"<YOUR_CLIENT_ID_HERE>\",\n            ClientSecret = \"<YOUR_CLIENT_SECRET_HERE>\",\n            TokenURL = \"<YOUR_TOKEN_URL_HERE>\",\n        },\n    }\n);\n\nReadAccountRequest req = new ReadAccountRequest() {\n    AccountId = \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n};\n\nvar res = await sdk.Accounts.ReadAsync(req);\n\n// handle response"
      - lang: Java
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.SchemeOauthClientCredentialsToken;\nimport com.dailypay.sdk.models.components.Security;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.ReadAccountRequest;\nimport com.dailypay.sdk.models.operations.ReadAccountResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws ErrorBadRequest, ErrorUnauthorized, ErrorForbidden, ErrorNotFound, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthClientCredentialsToken(SchemeOauthClientCredentialsToken.builder()\n                        .clientID(\"<id>\")\n                        .clientSecret(\"<value>\")\n                        .tokenURL(\"https://auth.dailypay.com/oauth2/token\")\n                        .build())\n                    .build())\n            .build();\n\n        ReadAccountRequest req = ReadAccountRequest.builder()\n                .accountId(\"2bc7d781-3247-46f6-b60f-4090d214936a\")\n                .build();\n\n        ReadAccountResponse res = sdk.accounts().read()\n                .request(req)\n                .call();\n\n        if (res.accountData().isPresent()) {\n            System.out.println(res.accountData().get());\n        }\n    }\n}"
      - lang: Go
        source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/components\"\n\tdailypay \"github.com/dailypay/dailypay-go-sdk\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := dailypay.New(\n        dailypay.WithVersion(3),\n        dailypay.WithSecurity(components.Security{\n            OauthClientCredentialsToken: &components.SchemeOauthClientCredentialsToken{\n                ClientID: \"<YOUR_CLIENT_ID_HERE>\",\n                ClientSecret: \"<YOUR_CLIENT_SECRET_HERE>\",\n                TokenURL: \"<YOUR_TOKEN_URL_HERE>\",\n            },\n        }),\n    )\n\n    res, err := s.Accounts.Read(ctx, operations.ReadAccountRequest{\n        AccountID: \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.AccountData != nil {\n        // handle response\n    }\n}"
      - lang: JavaScript
        source: "import { SDK } from \"@dailypay/dailypay\";\n\nconst sdk = new SDK({\n  version: 3,\n  security: {\n    oauthClientCredentialsToken: {\n      clientID: \"<YOUR_CLIENT_ID_HERE>\",\n      clientSecret: \"<YOUR_CLIENT_SECRET_HERE>\",\n      tokenURL: \"<YOUR_TOKEN_URL_HERE>\",\n    },\n  },\n});\n\nasync function run() {\n  const result = await sdk.accounts.read({\n    accountId: \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n  });\n\n  console.log(result);\n}\n\nrun();"
      - lang: csharp
        label: readAccount
        source: "using DailyPay.SDK.DotNet9;\nusing DailyPay.SDK.DotNet9.Models.Components;\nusing DailyPay.SDK.DotNet9.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthClientCredentialsToken = new SchemeOauthClientCredentialsToken() {\n            ClientID = \"<YOUR_CLIENT_ID_HERE>\",\n            ClientSecret = \"<YOUR_CLIENT_SECRET_HERE>\",\n            TokenURL = \"<YOUR_TOKEN_URL_HERE>\",\n        },\n    }\n);\n\nReadAccountRequest req = new ReadAccountRequest() {\n    AccountId = \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n};\n\nvar res = await sdk.Accounts.ReadAsync(req);\n\n// handle response"
      - lang: java
        label: readAccount
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.SchemeOauthClientCredentialsToken;\nimport com.dailypay.sdk.models.components.Security;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.ReadAccountRequest;\nimport com.dailypay.sdk.models.operations.ReadAccountResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws ErrorBadRequest, ErrorUnauthorized, ErrorForbidden, ErrorNotFound, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthClientCredentialsToken(SchemeOauthClientCredentialsToken.builder()\n                        .clientID(\"<id>\")\n                        .clientSecret(\"<value>\")\n                        .tokenURL(\"https://api.dailypay.com/oauth/token\")\n                        .build())\n                    .build())\n            .build();\n\n        ReadAccountRequest req = ReadAccountRequest.builder()\n                .accountId(\"2bc7d781-3247-46f6-b60f-4090d214936a\")\n                .build();\n\n        ReadAccountResponse res = sdk.accounts().read()\n                .request(req)\n                .call();\n\n        if (res.accountData().isPresent()) {\n            // handle response\n        }\n    }\n}"
    delete:
      tags:
      - Accounts
      summary: Delete an Account
      description: Removes a previously added DEPOSITORY or CARD account. EARNINGS_BALANCE accounts cannot be deleted.
      operationId: deleteAccount
      security:
      - oauth_user_token:
        - user:read_write
      responses:
        '204':
          description: Account successfully deleted
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/Unexpected'
      x-codeSamples:
      - lang: C#
        source: "using DailyPay.SDK.DotNet8;\nusing DailyPay.SDK.DotNet8.Models.Components;\nusing DailyPay.SDK.DotNet8.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthUserToken = \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n    }\n);\n\nDeleteAccountRequest req = new DeleteAccountRequest() {\n    AccountId = \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n};\n\nvar res = await sdk.Accounts.DeleteAccountAsync(req);\n\n// handle response"
      - lang: Java
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.Security;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.DeleteAccountRequest;\nimport com.dailypay.sdk.models.operations.DeleteAccountResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws ErrorBadRequest, ErrorUnauthorized, ErrorForbidden, ErrorNotFound, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthUserToken(System.getenv().getOrDefault(\"OAUTH_USER_TOKEN\", \"\"))\n                    .build())\n            .build();\n\n        DeleteAccountRequest req = DeleteAccountRequest.builder()\n                .accountId(\"2bc7d781-3247-46f6-b60f-4090d214936a\")\n                .build();\n\n        DeleteAccountResponse res = sdk.accounts().deleteAccount()\n                .request(req)\n                .call();\n\n        // handle response\n    }\n}"
      - lang: Go
        source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/components\"\n\tdailypay \"github.com/dailypay/dailypay-go-sdk\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := dailypay.New(\n        dailypay.WithVersion(3),\n        dailypay.WithSecurity(components.Security{\n            OauthUserToken: dailypay.Pointer(\"<YOUR_OAUTH_USER_TOKEN_HERE>\"),\n        }),\n    )\n\n    res, err := s.Accounts.DeleteAccount(ctx, operations.DeleteAccountRequest{\n        AccountID: \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res != nil {\n        // handle response\n    }\n}"
      - lang: JavaScript
        source: "import { SDK } from \"@dailypay/dailypay\";\n\nconst sdk = new SDK({\n  version: 3,\n  security: {\n    oauthUserToken: \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n  },\n});\n\nasync function run() {\n  const result = await sdk.accounts.deleteAccount({\n    accountId: \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n  });\n\n  console.log(result);\n}\n\nrun();"
      - lang: csharp
        label: deleteAccount
        source: "using DailyPay.SDK.DotNet9;\nusing DailyPay.SDK.DotNet9.Models.Components;\nusing DailyPay.SDK.DotNet9.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthUserToken = \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n    }\n);\n\nDeleteAccountRequest req = new DeleteAccountRequest() {\n    AccountId = \"2bc7d781-3247-46f6-b60f-4090d214936a\",\n};\n\nvar res = await sdk.Accounts.DeleteAccountAsync(req);\n\n// handle response"
  /rest/accounts:
    parameters:
    - $ref: '#/components/parameters/apiversion'
    get:
      tags:
      - Accounts
      summary: Get a list of Account objects
      description: 'Returns a list of account objects. An account object represents a person''s bank accounts, debit and pay cards, and earnings balance accounts.

        '
      security:
      - oauth_client_credentials_token:
        - client:lookup
        - client:admin
      - oauth_user_token:
        - user:read
      x-speakeasy-usage-example:
        title: Look up accounts
        description: Fetch a list of accounts, including earnings balance accounts.
        position: 1
      operationId: listAccounts
      parameters:
      - $ref: '#/components/parameters/filter.person.id'
      - $ref: '#/components/parameters/filter.account_type'
      - $ref: '#/components/parameters/filter.account_subtype'
      - $ref: '#/components/parameters/filter'
      responses:
        '200':
          $ref: '#/components/responses/Accounts200'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/Unexpected'
      x-codeSamples:
      - lang: C#
        source: "using DailyPay.SDK.DotNet8;\nusing DailyPay.SDK.DotNet8.Models.Components;\nusing DailyPay.SDK.DotNet8.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthClientCredentialsToken = new SchemeOauthClientCredentialsToken() {\n            ClientID = \"<YOUR_CLIENT_ID_HERE>\",\n            ClientSecret = \"<YOUR_CLIENT_SECRET_HERE>\",\n            TokenURL = \"<YOUR_TOKEN_URL_HERE>\",\n        },\n    }\n);\n\nListAccountsRequest req = new ListAccountsRequest() {\n    FilterPersonId = \"aa860051-c411-4709-9685-c1b716df611b\",\n    FilterAccountType = FilterAccountType.EarningsBalance,\n    FilterSubtype = \"ODP\",\n};\n\nvar res = await sdk.Accounts.ListAsync(req);\n\n// handle response"
      - lang: Java
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.*;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.ListAccountsRequest;\nimport com.dailypay.sdk.models.operations.ListAccountsResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws ErrorBadRequest, ErrorUnauthorized, ErrorForbidden, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthClientCredentialsToken(SchemeOauthClientCredentialsToken.builder()\n                        .clientID(\"<id>\")\n                        .clientSecret(\"<value>\")\n                        .tokenURL(\"https://auth.dailypay.com/oauth2/token\")\n                        .build())\n                    .build())\n            .build();\n\n        ListAccountsRequest req = ListAccountsRequest.builder()\n                .filterPersonId(\"aa860051-c411-4709-9685-c1b716df611b\")\n                .filterAccountType(FilterAccountType.EARNINGS_BALANCE)\n                .filterSubtype(\"ODP\")\n                .build();\n\n        ListAccountsResponse res = sdk.accounts().list()\n                .request(req)\n                .call();\n\n        if (res.accountsData().isPresent()) {\n            System.out.println(res.accountsData().get());\n        }\n    }\n}"
      - lang: Go
        source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/components\"\n\tdailypay \"github.com/dailypay/dailypay-go-sdk\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := dailypay.New(\n        dailypay.WithVersion(3),\n        dailypay.WithSecurity(components.Security{\n            OauthClientCredentialsToken: &components.SchemeOauthClientCredentialsToken{\n                ClientID: \"<YOUR_CLIENT_ID_HERE>\",\n                ClientSecret: \"<YOUR_CLIENT_SECRET_HERE>\",\n                TokenURL: \"<YOUR_TOKEN_URL_HERE>\",\n            },\n        }),\n    )\n\n    res, err := s.Accounts.List(ctx, operations.ListAccountsRequest{\n        FilterPersonID: dailypay.Pointer(\"aa860051-c411-4709-9685-c1b716df611b\"),\n        FilterAccountType: components.FilterAccountTypeEarningsBalance.ToPointer(),\n        FilterSubtype: dailypay.Pointer(\"ODP\"),\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.AccountsData != nil {\n        // handle response\n    }\n}"
      - lang: JavaScript
        source: "import { SDK } from \"@dailypay/dailypay\";\n\nconst sdk = new SDK({\n  version: 3,\n  security: {\n    oauthClientCredentialsToken: {\n      clientID: \"<YOUR_CLIENT_ID_HERE>\",\n      clientSecret: \"<YOUR_CLIENT_SECRET_HERE>\",\n      tokenURL: \"<YOUR_TOKEN_URL_HERE>\",\n    },\n  },\n});\n\nasync function run() {\n  const result = await sdk.accounts.list({\n    filterPersonId: \"aa860051-c411-4709-9685-c1b716df611b\",\n    filterAccountType: \"EARNINGS_BALANCE\",\n    filterSubtype: \"ODP\",\n  });\n\n  console.log(result);\n}\n\nrun();"
      - lang: csharp
        label: listAccounts
        source: "using DailyPay.SDK.DotNet9;\nusing DailyPay.SDK.DotNet9.Models.Components;\nusing DailyPay.SDK.DotNet9.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthClientCredentialsToken = new SchemeOauthClientCredentialsToken() {\n            ClientID = \"<YOUR_CLIENT_ID_HERE>\",\n            ClientSecret = \"<YOUR_CLIENT_SECRET_HERE>\",\n            TokenURL = \"<YOUR_TOKEN_URL_HERE>\",\n        },\n    }\n);\n\nListAccountsRequest req = new ListAccountsRequest() {\n    FilterPersonId = \"aa860051-c411-4709-9685-c1b716df611b\",\n    FilterAccountType = FilterAccountType.EarningsBalance,\n    FilterSubtype = \"ODP\",\n};\n\nvar res = await sdk.Accounts.ListAsync(req);\n\n// handle response"
      - lang: java
        label: listAccounts
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.*;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.ListAccountsRequest;\nimport com.dailypay.sdk.models.operations.ListAccountsResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws ErrorBadRequest, ErrorUnauthorized, ErrorForbidden, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthClientCredentialsToken(SchemeOauthClientCredentialsToken.builder()\n                        .clientID(\"<id>\")\n                        .clientSecret(\"<value>\")\n                        .tokenURL(\"https://api.dailypay.com/oauth/token\")\n                        .build())\n                    .build())\n            .build();\n\n        ListAccountsRequest req = ListAccountsRequest.builder()\n                .filterAccountType(FilterAccountType.EARNINGS_BALANCE)\n                .build();\n\n        ListAccountsResponse res = sdk.accounts().list()\n                .request(req)\n                .call();\n\n        if (res.accountsData().isPresent()) {\n            // handle response\n        }\n    }\n}"
    post:
      tags:
      - Accounts
      summary: Create an Account object
      description: Create an account object to store a person's bank or card information as a destination for funds.
      operationId: createAccount
      security:
      - oauth_user_token:
        - user:read_write
      requestBody:
        $ref: '#/components/requestBodies/AccountCreate'
      responses:
        '200':
          $ref: '#/components/responses/Account200'
        '400':
          $ref: '#/components/responses/AccountCreate400'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/Unexpected'
      x-codeSamples:
      - lang: C#
        source: "using DailyPay.SDK.DotNet8;\nusing DailyPay.SDK.DotNet8.Models.Components;\nusing DailyPay.SDK.DotNet8.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthUserToken = \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n    }\n);\n\nCreateAccountRequest req = new CreateAccountRequest() {\n    AccountCreateData = new AccountCreateData() {\n        Data = new AccountCreateResource() {\n            Attributes = AccountCreateAttributes.CreateAccountCreateAttributesDepository(\n                new AccountCreateAttributesDepository() {\n                    Name = \"Acme Bank Checking Account\",\n                    Subtype = AccountCreateAttributesDepositorySubtype.Checking,\n                    DepositoryAccountDetails = new AccountCreateAttributesDepositoryDepositoryAccountDetails() {\n                        FirstName = \"Edith\",\n                        LastName = \"Clarke\",\n                        RoutingNumber = \"XXXXX2021\",\n                        AccountNumber = \"XXXXXX4321\",\n                    },\n                }\n            ),\n            Relationships = new AccountRelationships() {\n                Person = new PersonRelationship() {\n                    Data = new PersonIdentifier() {\n                        Id = \"3fa8f641-5717-4562-b3fc-2c963f66afa6\",\n                    },\n                },\n            },\n        },\n    },\n};\n\nvar res = await sdk.Accounts.CreateAsync(req);\n\n// handle response"
      - lang: Java
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.*;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.CreateAccountResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws AccountCreateError, ErrorUnauthorized, ErrorForbidden, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthUserToken(System.getenv().getOrDefault(\"OAUTH_USER_TOKEN\", \"\"))\n                    .build())\n            .build();\n\n        AccountCreateData req = AccountCreateData.builder()\n                .data(AccountCreateResource.builder()\n                    .attributes(AccountCreateAttributes.of(AccountCreateAttributesDepository.builder()\n                        .name(\"Acme Bank Checking Account\")\n                        .subtype(AccountCreateAttributesDepositorySubtype.CHECKING)\n                        .depositoryAccountDetails(AccountCreateAttributesDepositoryDepositoryAccountDetails.builder()\n                            .firstName(\"Edith\")\n                            .lastName(\"Clarke\")\n                            .routingNumber(\"XXXXX2021\")\n                            .accountNumber(\"XXXXXX4321\")\n                            .build())\n                        .build()))\n                    .relationships(AccountRelationships.builder()\n                        .person(PersonRelationship.builder()\n                            .data(PersonIdentifier.builder()\n                                .id(\"3fa8f641-5717-4562-b3fc-2c963f66afa6\")\n                                .build())\n                            .build())\n                        .build())\n                    .build())\n                .build();\n\n        CreateAccountResponse res = sdk.accounts().create()\n                .request(req)\n                .call();\n\n        if (res.accountData().isPresent()) {\n            System.out.println(res.accountData().get());\n        }\n    }\n}"
      - lang: Go
        source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/dailypay/dailypay-go-sdk/models/components\"\n\tdailypay \"github.com/dailypay/dailypay-go-sdk\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := dailypay.New(\n        dailypay.WithVersion(3),\n        dailypay.WithSecurity(components.Security{\n            OauthUserToken: dailypay.Pointer(\"<YOUR_OAUTH_USER_TOKEN_HERE>\"),\n        }),\n    )\n\n    res, err := s.Accounts.Create(ctx, components.AccountCreateData{\n        Data: components.AccountCreateResource{\n            Attributes: components.CreateAccountCreateAttributesAccountCreateAttributesDepository(\n                components.AccountCreateAttributesDepository{\n                    Name: \"Acme Bank Checking Account\",\n                    Subtype: components.AccountCreateAttributesDepositorySubtypeChecking,\n                    DepositoryAccountDetails: components.AccountCreateAttributesDepositoryDepositoryAccountDetails{\n                        FirstName: \"Edith\",\n                        LastName: \"Clarke\",\n                        RoutingNumber: \"XXXXX2021\",\n                        AccountNumber: \"XXXXXX4321\",\n                    },\n                },\n            ),\n            Relationships: components.AccountRelationships{\n                Person: components.PersonRelationship{\n                    Data: components.PersonIdentifier{\n                        ID: \"3fa8f641-5717-4562-b3fc-2c963f66afa6\",\n                    },\n                },\n            },\n        },\n    })\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.AccountData != nil {\n        // handle response\n    }\n}"
      - lang: JavaScript
        source: "import { SDK } from \"@dailypay/dailypay\";\n\nconst sdk = new SDK({\n  version: 3,\n  security: {\n    oauthUserToken: \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n  },\n});\n\nasync function run() {\n  const result = await sdk.accounts.create({\n    data: {\n      type: \"accounts\",\n      attributes: {\n        name: \"Acme Bank Checking Account\",\n        accountType: \"DEPOSITORY\",\n        subtype: \"CHECKING\",\n        depositoryAccountDetails: {\n          firstName: \"Edith\",\n          lastName: \"Clarke\",\n          routingNumber: \"XXXXX2021\",\n          accountNumber: \"XXXXXX4321\",\n        },\n      },\n      relationships: {\n        person: {\n          data: {\n            type: \"people\",\n            id: \"3fa8f641-5717-4562-b3fc-2c963f66afa6\",\n          },\n        },\n      },\n    },\n  });\n\n  console.log(result);\n}\n\nrun();"
      - lang: csharp
        label: createAccount
        source: "using DailyPay.SDK.DotNet9;\nusing DailyPay.SDK.DotNet9.Models.Components;\nusing DailyPay.SDK.DotNet9.Models.Requests;\n\nvar sdk = new SDK(\n    version: 3,\n    security: new Security() {\n        OauthUserToken = \"<YOUR_OAUTH_USER_TOKEN_HERE>\",\n    }\n);\n\nCreateAccountRequest req = new CreateAccountRequest() {\n    AccountCreateData = new AccountCreateData() {\n        Data = new AccountCreateResource() {\n            Attributes = AccountCreateAttributes.CreateAccountCreateAttributesDepository(\n                new AccountCreateAttributesDepository() {\n                    Name = \"Acme Bank Checking Account\",\n                    Subtype = AccountCreateAttributesDepositorySubtype.Checking,\n                    DepositoryAccountDetails = new AccountCreateAttributesDepositoryDepositoryAccountDetails() {\n                        FirstName = \"Edith\",\n                        LastName = \"Clarke\",\n                        RoutingNumber = \"XXXXX2021\",\n                        AccountNumber = \"XXXXXX4321\",\n                    },\n                }\n            ),\n            Relationships = new AccountRelationships() {\n                Person = new PersonRelationship() {\n                    Data = new PersonIdentifier() {\n                        Id = \"3fa8f641-5717-4562-b3fc-2c963f66afa6\",\n                    },\n                },\n            },\n        },\n    },\n};\n\nvar res = await sdk.Accounts.CreateAsync(req);\n\n// handle response"
      - lang: java
        label: createAccount
        source: "package hello.world;\n\nimport com.dailypay.sdk.DailyPay;\nimport com.dailypay.sdk.models.components.*;\nimport com.dailypay.sdk.models.errors.*;\nimport com.dailypay.sdk.models.operations.CreateAccountResponse;\nimport java.lang.Exception;\n\npublic class Application {\n\n    public static void main(String[] args) throws AccountCreateError, ErrorUnauthorized, ErrorForbidden, ErrorUnexpected, Exception {\n\n        DailyPay sdk = DailyPay.builder()\n                .version(3L)\n                .security(Security.builder()\n                    .oauthClientCredentialsToken(SchemeOauthClientCredentialsToken.builder()\n                        .clientID(\"<id>\")\n                        .clientSecret(\"<value>\")\n                        .tokenURL(\"https://api.dailypay.com/oauth/token\")\n                        .build())\n                    .build())\n            .build();\n\n        AccountDataInput req = AccountDataInput.builder()\n                .data(AccountResourceInput.builder()\n                    .attributes(AccountAttributesInput.of(DepositoryInput.builder()\n                        .name(\"Acme Bank Checking Account\")\n                        .subtype(AccountAttributesDepositorySubtype.CHECKING)\n                        .depositoryAccountDetails(DepositoryAccountDetails.builder()\n                            .firstName(\"Edith\")\n                            .lastName(\"Clarke\")\n                            .routingNumber(\"XXXXX2021\")\n                            .accountNumber(\"XXXXXX4321\")\n                            .build())\n                        .build()))\n                    .relationships(AccountRelationships.builder()\n                        .person(PersonRelationship.builder()\n                            .data(PersonIdentifier.builder()\n                                .id(\"3fa8f641-5717-4562-b3fc-2c963f66afa6\")\n                                .build())\n                            .build())\n                        .build())\n                    .build())\n                .build();\n\n        CreateAccountResponse res = sdk.accounts().create()\n                .request(req)\n                .call();\n\n        if (res.accountData().isPresent()) {\n            // handle response\n        }\n    }\n}"
components:
  requestBodies:
    AccountCreate:
      required: true
      content:
        application/vnd.api+json:
          schema:
            $ref: '#/components/schemas/AccountCreateData'
          examples:
            Depository:
              summary: Add a checking account
              value:
                data:
                  type: accounts
                  attributes:
                    name: Acme Bank Checking Account
                    account_type: DEPOSITORY
                    subtype: CHECKING
                    details:
                      first_name: Edith
                      last_name: Clarke
                      routing_number: XXXXX2021
                      account_number: XXXXXX4321
                  relationships:
                    person:
                      data:
                        type: people
                        id: 3fa8f641-5717-4562-b3fc-2c963f66afa6
            Card:
              summary: Add a debit card account
              value:
                data:
                  type: accounts
                  attributes:
                    name: Acme Bank Debit Card
                    account_type: CARD
                    subtype: DEBIT
                    details:
                      token: abc.efg.123
                      first_name: Edith
                      last_name: Clarke
                      expiration_month: '02'
                      expiration_year: '2027'
                      address_line_one: 123 Kebly Street
                      address_city: Fort Lee
                      address_state: NJ
                      address_zip_code: '72374'
                      address_country: US
                      issuer: '411600'
                  relationships:
                    person:
                      data:
                        type: people
                        id: 3fa8f641-5717-4562-b3fc-2c963f66afa6
  responses:
    Unexpected:
      description: Unexpected error occ

# --- truncated at 32 KB (65 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/dailypay/refs/heads/main/openapi/dailypay-accounts-api-openapi.yml