---
title: "File an entry summary"
method: POST
path: "/entries"
tags: ["Entries"]
---

# File an entry summary

`POST /entries`

## Request

- Base URL: `https://api.tarifflo.com/api/v2`
- URL: `https://api.tarifflo.com/api/v2/entries`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Validates, writes and submits a whole entry summary. CBP's answer arrives as an `entry.disposition` webhook. A repeat of an Idempotency-Key answers the first result with `Idempotent-Replayed: true`.

Requires the API key scope `entries:write`.

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `entry` union, required
    - string
    - number
    - boolean
    - Schema0[]
    - object
  - `webhookUrl` string: Where the `entry.disposition` webhook goes; defaults to the key environment's URL.

## Response `201`

Filed and submitted to CBP

- object
  - `efid` string, required
  - `entryNumber` number
  - `shortJobId` string, required
  - `status` 'AWAITING_CBP', required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `409`: The first request with this Idempotency-Key is still filing
- `412`: No webhook URL for the key's environment
- `422`: The entry is not valid
- `500`: Internal server error
- `502`: Submitting to CBP failed

---

[API](https://skmtc.dev/tarifflo/apis/tarifflo-api.md) - [All operations](https://skmtc.dev/tarifflo/apis/tarifflo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tarifflo/apis/tarifflo-api/revisions/f048ebac1ac5?raw)
