---
title: "POST {dataType}.write.unsuccessful"
method: POST
path: "{dataType}.write.unsuccessful"
---

# POST {dataType}.write.unsuccessful

`POST {dataType}.write.unsuccessful` (webhook)

Indicates that a `dataType` has not been successfully created, updated, deleted, or had an attachment uploaded in the accounting software.

Codat now refers to push operations as write requests.

For example, to subscribe to events where a bill is written into the accounting software, use the `bills.write.unsuccessful` webhook.

### Supported data types and write types

| `dataType`       | Create  | Update  | Delete  | UploadAttachment |
|------------------|---------|---------|---------|------------------|
| bankAccounts     | &#9989; | &#9989; | -       | -                |  
| bankTransactions | &#9989; | -       | -       | -                |
| billCreditNotes  | &#9989; | &#9989; | -       | &#9989;          |  
| billPayments     | &#9989; | -       | &#9989; | -                | 
| bills            | &#9989; | &#9989; | &#9989; | &#9989;          | 
| chartOfAccounts  | &#9989; | -       | -       | -                | 
| creditNotes      | &#9989; | &#9989; | -       | -                | 
| customers        | &#9989; | &#9989; | -       | -                | 
| directCosts      | &#9989; | -       | &#9989; | &#9989;          | 
| directIncomes    | &#9989; | -       | -       | &#9989;          | 
| invoices         | &#9989; | &#9989; | &#9989; | &#9989;          | 
| items            | &#9989; | -       | -       | -                | 
| journalEntries   | &#9989; | -       | &#9989; | -                | 
| journals         | &#9989; | -       | -       | -                | 
| payments         | &#9989; | -       | -       | -                | 
| purchaseOrders   | &#9989; | &#9989; | -       | -                | 
| suppliers        | &#9989; | &#9989; | -       | -                | 
| transfers        | &#9989; | -       | -       | &#9989;          |

## Payload

- DataTypeWriteWebhook
  - `id` string, uuid — Unique identifier of the event.
  - `eventType` string — The type of event.
  - `generatedDate` string — In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example: ``` 2020-10-08T22:40:50Z 2021-01-01T00:00:00 ``` When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` - Unqualified local time: `2021-11-15T01:00:00` - UTC time offsets: `2021-11-15T01:00:00-05:00` > Time zones > > Not all dates from Codat will contain information about time zones. > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
  - `payload` DataTypeWriteWebhookPayload — unresolved $ref

## Acknowledgement `200`

Return a 200 status to indicate that the webhook was received.

---

[API](https://skmtc.dev/codatio/apis/platform-api.md) · [All operations](https://skmtc.dev/codatio/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codatio/platform-api/revisions/bff9b9776ecf/schema)
