# Create an Account object Create an account object to store a person's bank or card information as a destination for funds. Endpoint: POST /rest/accounts Version: 3.0.0-beta01 Security: oauth_user_token ## Header parameters: - `DailyPay-API-Version` (integer) The version of the DailyPay API to use for this request. If not provided, the latest version of the API will be used. - `Accept` (string) The media type of the requested payload. This should be set to to signify your client can receive responses in the JSON:API format. For more details, see https://jsonapi.org. Enum: "application/vnd.api+json", "*/*" ## Request fields (application/vnd.api+json): - `data` (object, required) - `data.type` (string, required) The type of the resource. Always . Example: "accounts" - `data.attributes` (any, required) - `data.relationships` (object, required) - `data.relationships.person` (object, required) ## Response 200 fields (application/vnd.api+json): - `data` (object, required) - `data.id` (string, required) The unique identifier of the Account. Example: "2bc7d781-3247-46f6-b60f-4090d214936a" - `data.type` (string, required) The type of the resource. Always . Example: "accounts" - `data.attributes` (any, required) - `data.links` (object, required) - `data.links.self` (string, required) The URI for the account - `data.relationships` (object, required) - `data.relationships.person` (object, required) ## Response 400 fields (application/vnd.api+json): - `errors` (array, required) A list of errors that occurred. - `errors.code` (string, required) A code that indicates what went wrong. Please consider this an open enum, where new codes may be added over time. - `errors.status` (string, required) The HTTP status code for the error. Example: "400" - `errors.detail` (string, required) A message that explains the meaning of the error code. Developers are advised not to make programmatic use of this value, as it may change Example: "The request failed because it was not in the correct format or did not contain valid data." - `errors.links` (object, required) A list of links to resources that may be helpful in resolving the error. - `errors.links.about` (string) Example: "https://developer.dailypay.com/tag/Errors" - `errors.source` (object) Location in the request that may have caused the error. - `errors.source.parameter` (string) The name of the parameter that caused the error. Example: "filter[first_name]" - `errors.source.pointer` (string) A JSON Pointer to the location in the request that caused the error. Example: "/data/attributes/first_name" - `errors.source.header` (string) The name of the header that caused the error. Example: "Accept" - `errors.meta` (object, required) Additional information about the error. - `errors.meta.request_id` (string) A UUID for the originating request. Example: "3c526bf4-f3c0-4c4a-a4cb-95f7db8b3bbe" - `errors.meta.trace_id` (string) An ID used for tracing purposes. Example: "4016616108459136584" ## Response 401 fields (application/vnd.api+json): - `errors` (array, required) A list of errors that occurred. - `errors.status` (string, required) The HTTP status code for the error. Example: "400" - `errors.detail` (string, required) A message that explains the meaning of the error code. Developers are advised not to make programmatic use of this value, as it may change Example: "The request failed because it was not in the correct format or did not contain valid data." - `errors.links` (object, required) A list of links to resources that may be helpful in resolving the error. - `errors.links.about` (string) Example: "https://developer.dailypay.com/tag/Errors" - `errors.source` (object) Location in the request that may have caused the error. - `errors.source.parameter` (string) The name of the parameter that caused the error. Example: "filter[first_name]" - `errors.source.pointer` (string) A JSON Pointer to the location in the request that caused the error. Example: "/data/attributes/first_name" - `errors.source.header` (string) The name of the header that caused the error. Example: "Accept" - `errors.meta` (object, required) Additional information about the error. - `errors.meta.request_id` (string) A UUID for the originating request. Example: "3c526bf4-f3c0-4c4a-a4cb-95f7db8b3bbe" - `errors.meta.trace_id` (string) An ID used for tracing purposes. Example: "4016616108459136584" - `errors.code` (string, required) A code that indicates what went wrong. Enum: "INVALID_TOKEN", "UNAUTHORIZED" ## Response 403 fields (application/vnd.api+json): - `errors` (array, required) A list of errors that occurred. - `errors.status` (string, required) The HTTP status code for the error. Example: "400" - `errors.detail` (string, required) A message that explains the meaning of the error code. Developers are advised not to make programmatic use of this value, as it may change Example: "The request failed because it was not in the correct format or did not contain valid data." - `errors.links` (object, required) A list of links to resources that may be helpful in resolving the error. - `errors.links.about` (string) Example: "https://developer.dailypay.com/tag/Errors" - `errors.source` (object) Location in the request that may have caused the error. - `errors.source.parameter` (string) The name of the parameter that caused the error. Example: "filter[first_name]" - `errors.source.pointer` (string) A JSON Pointer to the location in the request that caused the error. Example: "/data/attributes/first_name" - `errors.source.header` (string) The name of the header that caused the error. Example: "Accept" - `errors.meta` (object, required) Additional information about the error. - `errors.meta.request_id` (string) A UUID for the originating request. Example: "3c526bf4-f3c0-4c4a-a4cb-95f7db8b3bbe" - `errors.meta.trace_id` (string) An ID used for tracing purposes. Example: "4016616108459136584" - `errors.code` (string, required) A code that indicates what went wrong. Enum: "FORBIDDEN" ## Response 500 fields (application/vnd.api+json): - `errors` (array, required) A list of errors that occurred. - `errors.status` (string, required) The HTTP status code for the error. Example: "400" - `errors.detail` (string, required) A message that explains the meaning of the error code. Developers are advised not to make programmatic use of this value, as it may change Example: "The request failed because it was not in the correct format or did not contain valid data." - `errors.links` (object, required) A list of links to resources that may be helpful in resolving the error. - `errors.links.about` (string) Example: "https://developer.dailypay.com/tag/Errors" - `errors.source` (object) Location in the request that may have caused the error. - `errors.source.parameter` (string) The name of the parameter that caused the error. Example: "filter[first_name]" - `errors.source.pointer` (string) A JSON Pointer to the location in the request that caused the error. Example: "/data/attributes/first_name" - `errors.source.header` (string) The name of the header that caused the error. Example: "Accept" - `errors.meta` (object, required) Additional information about the error. - `errors.meta.request_id` (string) A UUID for the originating request. Example: "3c526bf4-f3c0-4c4a-a4cb-95f7db8b3bbe" - `errors.meta.trace_id` (string) An ID used for tracing purposes. Example: "4016616108459136584" - `errors.code` (string, required) A code that indicates what went wrong. Enum: "UNEXPECTED_ERROR"