Accounts

Create an Account object

Create an account object to store a person's bank or card information as a destination for funds.

post/rest/accounts

Request

Request body

Example request

{
  "data": {
    "type": "accounts",
    "attributes": {
      "name": "Debit Card",
      "subtype": "DEBIT",
      "details": {
        "token": "HX46TY794RG",
        "first_name": "Edith",
        "last_name": "Clarke",
        "expiration_month": "02",
        "expiration_year": "2025",
        "address_line_one": "123 Kebly Street",
        "address_line_two": "Apt #12",
        "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"
        }
      }
    }
  }
}

Response

Returns the account object.

Example response

{
  "data": {
    "id": "2bc7d781-3247-46f6-b60f-4090d214936a",
    "type": "accounts",
    "attributes": {
      "verification_status": "VERIFIED",
      "balances": {
        "available": 12000,
        "current": 50000,
        "currency": "USD"
      },
      "capabilities": {
        "transfer_destination": [
          {
            "schedule": "WITHIN_THIRTY_MINUTES",
            "fee": 300,
            "currency": "USD"
          },
          {
            "schedule": "NEXT_BUSINESS_DAY",
            "fee": 0,
            "currency": "USD"
          }
        ]
      },
      "name": "Debit Card",
      "subtype": "DEBIT",
      "details": {
        "last_four": "0003",
        "issuer": "411600",
        "first_name": "Edith",
        "last_name": "Clarke",
        "expiration_month": "02",
        "expiration_year": "2025"
      }
    },
    "links": {
      "self": "https://api.dailypay.com/rest/accounts/2bc7d781-3247-46f6-b60f-4090d214936a"
    },
    "relationships": {
      "person": {
        "data": {
          "type": "people",
          "id": "3fa8f641-5717-4562-b3fc-2c963f66afa6"
        }
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.