Skip to content

Create Tax Refund Method

Create a new tax refund method.

This endpoint creates a new tax refund method for a user. Any subsequent updates to this method should use the update endpoint.

Each creation results in a new tax refund method with version 1.

Endpoint

MethodUrl
POST/v1.0/users/:user_id/tax-refund-methods

Path Parameters

user_id
string
required

ID of the user to create the tax refund method for.

Request Body

refund_type
string
required

Type of tax refund. Must be one of:

  • PERSONAL - For individual tax returns
  • BUSINESS - For business tax returns
delivery_method
object
required

Specification for how the refund should be delivered. See Tax Refund Method Resource.

Sample Request

Copied
1curl -X POST 'https://api.worklayer.com/v1.0/users/a385a314-12f9-4ee3-a838-c8785d5db610/tax-refund-methods' \
2-H 'Authorization: Bearer {token}' \
3-H 'Content-Type: application/json' \
4-d '{
5 "refund_type": "PERSONAL",
6 "delivery_method": {
7 "direct_deposit": {
8 "bank_account": {
9 "account_type": "CHECKING",
10 "routing_number": "123456789",
11 "account_number": "987654321"
12 }
13 }
14 }
15}'

Response

id
string

Unique identifier of the created tax refund method.

version
integer

Version number of the created tax refund method.

Sample Response

Copied
1{
2 "id": "550e8400-e29b-41d4-a716-446655440000",
3 "version": 1
4}

Errors

  • 400: Future tax credit as a delivery method is only allowed for business refund types
  • 403: Not authorized to create a refund method
Last updated on November 1, 2024