User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_other_income", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_other_income_agricultural", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{"kind": {"service"}},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_other_income_preview", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
bad_amount
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_other_income_id", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reason\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_other_income_id_cancel", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
already_cancelled
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_other_income_id_epdd_response", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"filing_id\": 1,\n \"decision_date\": \"2026-01-01\",\n \"approved\": true\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_other_income_id_epdd_response", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
epdd_pdf
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reference\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_other_income_id_filed", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
missing_reference
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_pit_annual", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"year\": 2026,\n \"employee_id\": \"00000000-0000-4000-8000-000000000001\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_pit_annual", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_pit_annual_people", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{"employee_id": {"00000000-0000-4000-8000-000000000001"}},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_pit_annual_preview", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_pit_annual_id", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reason\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_pit_annual_id_cancel", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reference\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_pit_annual_id_filed", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
missing_reference
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"date\": \"2026-01-01\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax_account_maps", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"account_prefix\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax_account_maps", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax_preview", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax_proposal", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"date\": \"2026-01-01\",\n \"aop\": 1,\n \"amount\": 1,\n \"reason\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax_proposal_corrections", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"date\": \"2026-01-01\",\n \"limit_code\": \"example\",\n \"units\": 1\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax_proposal_units", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax_rates", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"valid_from\": \"2026-01-01\",\n \"rate\": 1,\n \"source\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax_rates", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
bad_profit_tax
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_profit_tax_id", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reason\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_profit_tax_id_cancel", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
already_cancelled
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_tax_regimes", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"valid_from\": \"2026-01-01\",\n \"regime\": \"profit\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_tax_regimes", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_total_income_tax", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"date\": \"2026-01-01\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_total_income_tax", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
bad_total_income_tax
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_total_income_tax_params", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_total_income_tax_preview", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_total_income_tax_id", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
body := json.RawMessage("{\n \"reason\": \"example\"\n}")
options := kc.Options{
Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
Query: map[string][]string{},
Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_total_income_tax_id_cancel", options, &result)
if err != nil { panic(err) }
fmt.Println(result)
Errors and constraints
already_cancelled
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.
User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.
Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.