agency-invoicing

PATCH /v1/agency-invoicing/tax-rates/{rateId}

Change a tax rate.

Todos los endpoints de agency-invoicing

Autenticación

Envía una clave de API como token de portador. La clave debe tener el permiso agency.invoicing.manage; una clave que no lo tenga se rechazará con un código 403, no 404.

Donde va el ID de tu organización

Este endpoint acepta org_id como parámetro de consulta. Omítelo y la llamada abarcará todo tu subárbol de inquilinos; envíalo para acotar la llamada a una sola organización.

El id de tu organización se encuentra en la pantalla de claves de API en tu panel de control, junto a la propia clave. Es el mismo id en cada llamada que realices.

Pruébalo

Reemplaza cualquier elemento entre corchetes angulares por tus propios valores, y el marcador de posición key con una clave de tu panel de control.

curl -X PATCH https://api.zinndigital.com/v1/agency-invoicing/tax-rates/{rateId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

¿Has iniciado sesión? La consola de la API en tu panel de control rellena el ID de tu organización real y tu propia clave, y ejecuta la solicitud contra la API en vivo para que puedas ver la respuesta real. Abre este endpoint en la consola de la API

Detalles

⭐ Changing a rate does NOT restate any invoice that already carries it — the percentage and the name are copied onto each line when it is saved. That is what lets you move VAT from 20% to 17.5% next April without rewriting last month. Requires `agency.invoicing.manage`.

Parámetros

NombreTipoObligatorio¿Qué es esto?
rateId (path)Uuid
org_id (query)UuidNoWhich of your organizations is invoicing. Required only when you belong to more than one — otherwise it is inferred from your DIRECT membership, never from the subtree-expanded…

Cuerpo de la solicitud

NombreTipoObligatorio¿Qué es esto?
namestringNo
rate_bpsintegerNo
registration_numberstringNo
notestringNo
is_defaultbooleanNo

Respuesta

NombreTipoObligatorio¿Qué es esto?
idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringWhat the document calls it. ⛔ Free text, not an enum: the line must read "VAT", "MwSt.", "TVA" or "Sales tax" depending on who is being invoiced.
rate_bpsinteger
registration_numberstringNo
notestringNo
is_defaultbooleanNo

Errores que este endpoint puede devolver

401 · 403 · 404 · 422 · 429