agency-invoicing

GET /v1/agency-invoicing/profile

Your agency's invoicing identity — what an invoice says it is FROM.

Todos os endpoints de agency-invoicing

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão agency.invoicing.view; uma chave sem ela é recusada com 403, e não 404.

Onde vai o ID da sua organização

Este endpoint aceita org_id como parâmetro de consulta. Omita-o e a chamada abrangerá toda a sua subárvore de locatários; envie-o para restringir a chamada a uma única organização.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

curl -X GET https://api.zinndigital.com/v1/agency-invoicing/profile \
  -H "Authorization: Bearer zdk_live_…"

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

Your registered name, address, tax number, logo, brand colour, defaults and your OWN invoice number series. ⛔ Separate from your panel branding: an invoice needs a legal entity, and you may bill under a different one from the one on your dashboard. Requires `agency.invoicing.view`.

Parâmetros

NomeTipoObrigatórioO que é
org_id (query)UuidNãoWhich 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…

Resposta

NomeTipoObrigatórioO que é
business_namestringNão
addressstringNãoThe registered address, one line per newline. Free-form because address shape is a property of a country, not of our schema.
emailstringNão
phonestringNão
websitestringNão
tax_number_labelstringNãoWhat the agency calls its tax registration — "VAT number", "ABN", "GSTIN", "EIN". ⛔ Printed only when the number is set too: a label with no number is an empty row, and a number…
tax_numberstringNão
payment_instructionsstringNãoBank details or a "PayPal me at …" line, printed on the document verbatim and shown on the payment page. ⭐ Never translated — translating a payment instruction is not a safe act.
logo_sha256stringNãoA digest into the content-addressed logo store, never a URL. That is what lets the PDF inline the mark with no network call at render time.
accent_colourstringNão
default_currencystringSim
default_payment_terms_daysintegerNão
default_footerstringNão
default_notesstringNão
number_prefixstringSim
number_paddingintegerNão
next_numberintegerSimThe next sequence number. ⛔ Read-only. Rewinding it would mint a duplicate number for a document already in a client's hands.
next_number_previewstringNãoWhat the next invoice will be called, e.g. `INV-0042`.

Erros que este endpoint pode retornar

401 · 403 · 404 · 429