POST
/
v1
/
businesses
/
{businessId}
/
reports
/
tax-packets
Create tax packet
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/reports/tax-packets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "year": 123,
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "include_general_ledger": true,
  "include_account_transactions": true
}'
{
  "id": "<string>",
  "business_id": "<string>",
  "year": 123,
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "status": "PENDING",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "download_urls": {
    "profit_and_loss": "<string>",
    "general_ledger": "<string>",
    "account_transactions": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to create the tax packet for

Body

application/json
year
integer

Tax year for the packet (alternative to start_date/end_date)

start_date
string<date-time>

Start date for custom date range (alternative to year)

end_date
string<date-time>

End date for custom date range (alternative to year)

include_general_ledger
boolean
default:true

Whether to include general ledger details

include_account_transactions
boolean
default:true

Whether to include account transaction details

Response

Tax packet request created successfully

id
string

Unique identifier for the tax packet request

business_id
string

Business ID the tax packet belongs to

year
integer

Tax year for the packet

start_date
string<date-time>

Start date of the tax packet period

end_date
string<date-time>

End date of the tax packet period

status
enum<string>

Status of the tax packet generation

Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED
created_at
string<date-time>

When the tax packet request was created

completed_at
string<date-time>

When the tax packet generation was completed

download_urls
object

Download URLs for tax packet components