---
title: "Refresh tax-agency status"
method: GET
path: "/purchases/credit-notes/{id}/tax_agency_status/"
tags: ["Procurement"]
---

# Refresh tax-agency status

`GET /purchases/credit-notes/{id}/tax_agency_status/`

## Request

- Base URL: `https://api.piriod.com`
- URL: `https://api.piriod.com/purchases/credit-notes/{id}/tax_agency_status/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/piriod/apis/piriod-api/docs/purchases/credit-notes/:id/tax_agency_status/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Refreshed credit note.

- PurchaseCreditNote: Credit note that adjusts (or fully cancels) a purchase.
  - `id` integer
  - `purchase` integer, required: Purchase ID being adjusted.
  - `document` integer, required: Credit-note document type.
  - `number` integer, required
  - `date` string, date, required
  - `note` string, nullable
  - `internal_note` string, nullable
  - `amount` number, nullable
  - `exempt` number, nullable
  - `tax` number, nullable
  - `tax_percent` number, nullable
  - `subtotal` number, nullable
  - `total` number, nullable
  - `retention` number, nullable
  - `discount` number, nullable
  - `discount_scheme` '%' | '$', nullable
  - `status` 'draft' | 'finalized' | 'cancelled'
  - `biller_status` string
  - `tax_agency` object
  - `local_file` string, uri, nullable
  - `imported` boolean
  - `test_mode` boolean
  - `lines` PurchaseCreditNoteLine[], required
    - `id` integer
    - `name` string, required
    - `description` string, nullable
    - `amount` number, required
    - `quantity` number, required
    - `exempt` boolean
    - `tax` number, nullable
    - `tax_percent` number, nullable
    - `total` number
    - `discount` number, nullable
    - `discount_scheme` '%' | '$', nullable
    - `code` string, nullable
    - `retention` number, nullable
    - `retention_percent` number
  - `created` string, date-time
  - `updated` string, date-time

## Other responses

- `400`: Request body or query parameters failed validation.

---

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