Documentation
¶
Overview ¶
Package stackin is the official Go SDK for the stackin fiscal document API — issue, consult, and cancel Brazilian NF-e and NFS-e electronic invoices with a single API key, no certificates or XML handling required.
See https://docs.stackin.io for the REST API reference and https://docs.stackin.io/blog/go-sdk for the Go SDK guide.
Index ¶
- Constants
- Variables
- type APIError
- type Address
- type AuthorizedCompanies
- type AuthorizedCompany
- type ClientAlreadyExistsError
- type ClientChanges
- type ClientFields
- type ClientInactiveError
- type ClientNotFoundError
- type ClientQuery
- type Clients
- func (c *Clients) Create(fields ClientFields) (map[string]any, error)
- func (c *Clients) Deactivate(clientID string) error
- func (c *Clients) ForCompany(company string) *Clients
- func (c *Clients) Get(clientID string) (map[string]any, error)
- func (c *Clients) List(query ClientQuery) (map[string]any, error)
- func (c *Clients) Reactivate(clientID string) (map[string]any, error)
- func (c *Clients) Update(clientID string, changes ClientChanges) (map[string]any, error)
- type CompanyNotInScopeError
- type CompanyRequiredError
- type ConnectionFailedError
- type Direction
- type DocumentType
- type Environment
- type Export
- type FiscalReference
- type HistoryQuery
- type InsufficientPermissionError
- type InvalidationRequest
- type Invoice
- func (inv *Invoice) Cancel(accessKey string, documentType DocumentType, reason string, ...) (map[string]any, error)
- func (inv *Invoice) Companies() (*AuthorizedCompanies, error)
- func (inv *Invoice) Consult(accessKey string, documentType DocumentType) (map[string]any, error)
- func (inv *Invoice) Correct(accessKey string, documentType DocumentType, correction string) (map[string]any, error)
- func (inv *Invoice) ForCompany(company string) *Invoice
- func (inv *Invoice) History(query HistoryQuery) (map[string]any, error)
- func (inv *Invoice) Invalidate(req InvalidationRequest) (map[string]any, error)
- func (inv *Invoice) Issue(req IssueRequest) (map[string]any, error)
- func (inv *Invoice) Manifest(accessKey string, manifestation Manifestation, reason string) (map[string]any, error)
- func (inv *Invoice) Pdf(accessKey string, documentType DocumentType) ([]byte, error)
- func (inv *Invoice) Received(limit, offset int) (map[string]any, error)
- func (inv *Invoice) Reissue(invoiceID string, opts ...RequestOption) (map[string]any, error)
- func (inv *Invoice) Submissions(invoiceID string) ([]map[string]any, error)
- func (inv *Invoice) SyncReceived() (*SyncResult, error)
- func (inv *Invoice) Usage() (*Usage, error)
- type InvoiceError
- type IssueRequest
- type Kind
- type Manifestation
- type Option
- type PaymentRequiredError
- type Purpose
- type RateLimitedError
- type RequestOption
- type SearchQuery
- type SyncResult
- type Taxpayer
- type Usage
Constants ¶
const AbroadState = "EX"
AbroadState is the State of a buyer abroad on an NF-e. Such an address may leave ZipCode and CityCode out and names its country with CountryCode (BACEN code) and CountryName instead.
const DefaultBaseURL = "https://sdk.stackin.io"
Variables ¶
var Kinds = []string{
"cfop",
"ncm",
"cest",
"cst",
"csosn",
"iss_service",
"icms_fuel",
"ibs_cbs_class",
}
Kinds are the classifications with a named accessor on FiscalReference. It is not the whole truth and is not meant to be: ask Kinds() for what the API actually has, because a classification published after this release is reachable through Kind() with no release at all.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
State string `json:"state,omitempty"`
CityCode string `json:"city_code,omitempty"`
Street string `json:"street,omitempty"`
Number string `json:"number,omitempty"`
Neighborhood string `json:"neighborhood,omitempty"`
City string `json:"city,omitempty"`
ZipCode string `json:"zip_code,omitempty"`
CountryCode string `json:"country_code,omitempty"`
CountryName string `json:"country_name,omitempty"`
}
type AuthorizedCompanies ¶ added in v0.15.0
type AuthorizedCompanies struct {
Environment string `json:"environment"`
Companies []AuthorizedCompany `json:"companies"`
}
AuthorizedCompanies is every company a credential covers, in one environment.
type AuthorizedCompany ¶ added in v0.15.0
type AuthorizedCompany struct {
CompanyID string `json:"company_id"`
Name string `json:"name"`
TaxID string `json:"tax_id"`
Permissions []string `json:"permissions"`
}
AuthorizedCompany is one company a credential may act on, and the permissions it holds there.
type ClientAlreadyExistsError ¶ added in v0.17.0
ClientAlreadyExistsError is the API's 409 CLIENT_EXISTS: the company already has a client with this tax id or foreign id. ClientID names it, to read or reactivate instead of searching for it. errors.As still finds the *APIError inside.
func (*ClientAlreadyExistsError) Unwrap ¶ added in v0.17.0
func (e *ClientAlreadyExistsError) Unwrap() error
type ClientChanges ¶ added in v0.17.0
type ClientChanges struct {
Name *string
TaxID *string
ForeignID *string
StateRegistration *string
MunicipalRegistration *string
Email *string
Phone *string
Address *Address
ClearAddress bool
Notes *string
// IsActive pointing at true brings a deactivated client back; see
// Reactivate.
IsActive *bool
}
ClientChanges is what Update changes. A nil field is not sent; a field pointing at "" is sent as null, which clears it. Address replaces the whole address; ClearAddress removes it.
type ClientFields ¶ added in v0.17.0
type ClientFields struct {
Name string `json:"name"`
TaxID string `json:"tax_id,omitempty"`
ForeignID string `json:"foreign_id,omitempty"`
StateRegistration string `json:"state_registration,omitempty"`
MunicipalRegistration string `json:"municipal_registration,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
Address *Address `json:"address,omitempty"`
Notes string `json:"notes,omitempty"`
}
ClientFields is a client as Create takes it. TaxID is required except for a buyer abroad (Address.State EX), who has a ForeignID instead. Empty fields are left out of the request.
type ClientInactiveError ¶ added in v0.18.0
ClientInactiveError is the API's 422 CLIENT_INACTIVE: the saved client named by ClientID is deactivated. Reactivate it, or issue without it. errors.As still finds the *APIError inside.
func (*ClientInactiveError) Unwrap ¶ added in v0.18.0
func (e *ClientInactiveError) Unwrap() error
type ClientNotFoundError ¶ added in v0.18.0
ClientNotFoundError is the API's 404 CLIENT_NOT_FOUND: no saved client of this company has that id. errors.As still finds the *APIError inside.
func (*ClientNotFoundError) Unwrap ¶ added in v0.18.0
func (e *ClientNotFoundError) Unwrap() error
type ClientQuery ¶ added in v0.17.0
type ClientQuery struct {
// Search matches part of the name, the tax id (masked or not) or the
// foreign id.
Search string
// Source is manual, issued or issuance.
Source string
// IsActive left nil lists the active clients, as the API does;
// pointing at false lists the deactivated ones.
IsActive *bool
Limit int
Offset int
// SortBy takes name, last_used_at, created_at or uses_count.
SortBy string
OrderBy string
}
ClientQuery narrows the client listing. Every field is optional; the zero value asks for the first page of active clients, by name.
type Clients ¶ added in v0.17.0
type Clients struct {
// contains filtered or unexported fields
}
Clients reads and edits the company's saved clients: the recipients it issues to again. A successful issuance saves a new recipient on its own, and IssueRequest.ClientID issues to a saved one.
It is company data, like everything on Invoice: WithCompany and ForCompany pick the company. Reading needs invoice:read; creating, editing and deactivating need invoice:issue. The rules on a client's fields are the issuance's own and they are the API's: a refusal comes back as an *APIError 422.
func NewClients ¶ added in v0.17.0
func (*Clients) Create ¶ added in v0.17.0
func (c *Clients) Create(fields ClientFields) (map[string]any, error)
Create saves a client by hand. A TaxID or ForeignID the company already holds is a *ClientAlreadyExistsError, whose ClientID names it.
func (*Clients) Deactivate ¶ added in v0.17.0
Deactivate deactivates a client. It is kept, left out of List by default and refused on issue until Reactivate brings it back.
func (*Clients) ForCompany ¶ added in v0.17.0
ForCompany returns a copy of the client bound to another company, for the calls chained on it. The receiver is left as it was.
func (*Clients) Get ¶ added in v0.17.0
Get returns one client, deactivated or not. Another company's client is a 404.
func (*Clients) List ¶ added in v0.17.0
func (c *Clients) List(query ClientQuery) (map[string]any, error)
List returns a page of the company's clients.
func (*Clients) Reactivate ¶ added in v0.17.0
Reactivate brings a deactivated client back, and returns it.
type CompanyNotInScopeError ¶ added in v0.15.0
type CompanyNotInScopeError struct {
APIError
Description string
Companies []AuthorizedCompany
}
CompanyNotInScopeError is the API's 403 company_not_in_scope: the company named is not one this credential covers. Companies lists the ones it does. Retrying the same request cannot succeed. errors.As still finds the *APIError inside.
func (*CompanyNotInScopeError) Unwrap ¶ added in v0.15.0
func (e *CompanyNotInScopeError) Unwrap() error
type CompanyRequiredError ¶ added in v0.15.0
type CompanyRequiredError struct {
APIError
Description string
Companies []AuthorizedCompany
}
CompanyRequiredError is the API's 422 company_required: the credential covers several companies and the request named none. Companies lists them; name one with WithCompany or ForCompany. Retrying the same request cannot succeed. errors.As still finds the *APIError inside.
func (*CompanyRequiredError) Unwrap ¶ added in v0.15.0
func (e *CompanyRequiredError) Unwrap() error
type ConnectionFailedError ¶
type ConnectionFailedError struct {
Message string
}
func (*ConnectionFailedError) Error ¶
func (e *ConnectionFailedError) Error() string
type Direction ¶ added in v0.14.0
type Direction string
Direction is whether an NF-e is outgoing or an incoming one the company issues itself (tpNF). The API defaults to DirectionOut when it is left out.
type DocumentType ¶
type DocumentType string
const ( NFE DocumentType = "nfe" NFSE DocumentType = "nfse" )
type Environment ¶
type Environment string
const ( Local Environment = "local" Test Environment = "test" Production Environment = "production" )
type Export ¶ added in v0.14.0
type Export struct {
ExitState string `json:"exit_state"`
Place string `json:"place"`
DispatchPlace string `json:"dispatch_place,omitempty"`
}
Export is where the goods of an NF-e to a buyer abroad leave Brazil (the exporta group): ExitState is a Brazilian state (UFSaidaPais, never EX), Place the place of shipment or border crossing (xLocExporta) and DispatchPlace the optional customs facility of dispatch (xLocDespacho).
type FiscalReference ¶ added in v0.10.0
type FiscalReference struct {
CFOP *Kind
NCM *Kind
CEST *Kind
CST *Kind
CSOSN *Kind
IssService *Kind
IcmsFuel *Kind
IbsCbsClass *Kind
// contains filtered or unexported fields
}
FiscalReference reads the published classification tables. Nothing here is the company's own data and nothing here is writable.
func NewFiscalReference ¶ added in v0.10.0
func NewFiscalReference(opts ...Option) *FiscalReference
func (*FiscalReference) Kind ¶ added in v0.10.0
func (r *FiscalReference) Kind(name string, country ...string) *Kind
Kind reaches any classification by name, including one with no accessor on this struct.
func (*FiscalReference) Kinds ¶ added in v0.10.0
func (r *FiscalReference) Kinds(country ...string) ([]string, error)
Kinds asks which classifications this country has rows for. The only honest answer to "what else is there" — a hard-coded list goes stale the next time the ETL grows one.
func (*FiscalReference) Search ¶ added in v0.10.0
func (r *FiscalReference) Search(query SearchQuery) (map[string]any, error)
Search spans every classification at once, which no accessor can express. It is the most expensive call the endpoint accepts: the whole country's tables, not one of them.
type HistoryQuery ¶ added in v0.5.0
type HistoryQuery struct {
DocumentType DocumentType
Status string
Limit int
Offset int
SortBy string
OrderBy string
// ExternalReference finds the documents issued with exactly this
// IssueRequest.ExternalReference.
ExternalReference string
// Fields set to "summary" returns a lighter item per invoice.
Fields string
}
HistoryQuery filters the issuance history. Every field is optional; the zero value asks for the newest page with the API's own defaults.
type InsufficientPermissionError ¶ added in v0.15.0
InsufficientPermissionError is the API's 403 INSUFFICIENT_PERMISSION: the credential reaches the company but lacks the permission the call needs. Description reads "needs X, has Y, company=<id>". Retrying the same request cannot succeed. errors.As still finds the *APIError inside.
func (*InsufficientPermissionError) Unwrap ¶ added in v0.15.0
func (e *InsufficientPermissionError) Unwrap() error
type InvalidationRequest ¶ added in v0.2.0
type Invoice ¶
type Invoice struct {
// contains filtered or unexported fields
}
func NewInvoice ¶
func (*Invoice) Cancel ¶
func (inv *Invoice) Cancel(accessKey string, documentType DocumentType, reason string, opts ...RequestOption) (map[string]any, error)
Cancel voids an authorized document. Pass WithIdempotencyKey to make a retry safe: repeating the same key with the same body replays the first answer instead of cancelling twice. This is the one irreversible operation here, with a legal window and no undo.
func (*Invoice) Companies ¶ added in v0.15.0
func (inv *Invoice) Companies() (*AuthorizedCompanies, error)
Companies lists the companies this credential reaches, with the permissions it holds on each: the ids WithCompany and ForCompany accept. An API key lists as its one company with every permission.
func (*Invoice) Correct ¶ added in v0.2.0
func (inv *Invoice) Correct(accessKey string, documentType DocumentType, correction string) (map[string]any, error)
Correct files a correction letter (CC-e). NF-e only: a key that is not an NF-e access key is refused before the call. A well-formed key sent with NFSE, or one for a document the API does not hold, is answered 409 by the API and comes back as an *APIError.
func (*Invoice) ForCompany ¶ added in v0.15.0
ForCompany returns a copy of the client bound to another company, for the calls chained on it: inv.ForCompany("00.000.000/0001-91").Issue(req). The receiver is left as it was and the copy shares its HTTP client. An empty company sends no header at all.
func (*Invoice) History ¶ added in v0.5.0
func (inv *Invoice) History(query HistoryQuery) (map[string]any, error)
History lists what this company issued, newest first.
The counterpart of Received: that one lists what was issued against the company, this one what the company issued.
func (*Invoice) Invalidate ¶ added in v0.2.0
func (inv *Invoice) Invalidate(req InvalidationRequest) (map[string]any, error)
func (*Invoice) Manifest ¶ added in v0.3.1
func (inv *Invoice) Manifest(accessKey string, manifestation Manifestation, reason string) (map[string]any, error)
Manifest files the recipient's formal answer to a received document.
Only OperacaoNaoRealizada takes a reason, and it requires one. Both are fixed rules, checked here rather than spending a round trip to be told.
func (*Invoice) Pdf ¶ added in v0.3.0
func (inv *Invoice) Pdf(accessKey string, documentType DocumentType) ([]byte, error)
Pdf returns the printable rendering of an authorized document, as raw bytes — the only method that does not return a parsed object. The API draws it itself from the authorized XML: the DANFE for an NF-e, the DANFSe for an NFS-e. The XML stays the legally valid document.
func (*Invoice) Received ¶ added in v0.3.1
Received lists documents other companies issued against this one.
Reads what the API already collected; it does not call the authorizer. Collecting runs on a schedule there, every six hours, and SyncReceived asks for it now. After a read that finds nothing more the SEFAZ makes the CNPJ wait an hour before the next one.
The first 50 received documents a month are included in every plan; each one after that takes R$ 0,05 from the account credit. Some accounts are exempt: Usage().ReceivedFree tells.
func (*Invoice) Submissions ¶ added in v0.6.0
Submissions returns every attempt made for one invoice, with what the authorizer answered to each.
Consult gives the status; this gives the reason. It takes the invoiceID, like Reissue and unlike everything else, because a rejected document has no access key to look it up by.
func (*Invoice) SyncReceived ¶ added in v0.18.0
func (inv *Invoice) SyncReceived() (*SyncResult, error)
SyncReceived asks the SEFAZ now for the documents issued against this company since the last read, instead of waiting for the scheduled collection, which runs every six hours. After a read that finds nothing more the SEFAZ makes the CNPJ wait an hour; a call inside that wait is a *RateLimitedError with Code DISTRIBUTION_COOLDOWN, RetryAt and RetryAfter.
type InvoiceError ¶
type InvoiceError struct {
Message string
}
func (*InvoiceError) Error ¶
func (e *InvoiceError) Error() string
type IssueRequest ¶
type IssueRequest struct {
DocumentType DocumentType
ClientName string
TaxID string
Items []br.Product
RecipientAddress *Address
Series string
Number string
// ExternalReference is the caller's own id for the document, an order
// number say. The API stores it as sent (at most 255 characters) and
// returns it on every read and webhook. Omitted when empty.
ExternalReference string
// IdempotencyKey makes a retry safe: the same key with the same body
// replays the first response instead of issuing a second document.
// Keys live 24 hours. Never generated for you — only the caller knows
// which two requests are meant to be the same one.
IdempotencyKey string
// Discount is a discount on the whole document, in BRL, zero or more.
// The API spreads it over the lines. Omitted when nil.
Discount *float64
// IssuedAt is the emission moment (dhEmi), sent as RFC 3339 in the
// offset of its own Location. NF-e: at most 30 days back and 5 minutes
// ahead; NFS-e: never ahead. The API defaults it to now. Omitted when
// nil.
IssuedAt *time.Time
// Purpose is why the NF-e is issued; Direction whether it is outgoing
// or incoming. NF-e only, omitted when empty.
Purpose Purpose
Direction Direction
// ReferencedKeys are the 44-character access keys of the NF-e, NFC-e
// or CF-e this NF-e refers to: required for PurposeComplementary and,
// but for a few CFOPs, PurposeReturn. NF-e only, omitted when empty.
ReferencedKeys []string
// ForeignID identifies a buyer abroad (idEstrangeiro, 5 to 20
// characters), for an NF-e whose RecipientAddress.State is EX. TaxID
// is then left out. Omitted when empty.
ForeignID string
// Export is where the goods leave Brazil, required for an outgoing
// NF-e to a buyer abroad. Omitted when nil.
Export *Export
// ClientID names a saved client of the company (see Clients). Its
// name, tax id, foreign id and address fill whichever of ClientName,
// TaxID, ForeignID and RecipientAddress are left empty; the ones set
// win, and the empty ones are left out of the request. The address
// checks then apply only to a RecipientAddress that is set: the API
// checks the merged request. Omitted when empty.
ClientID string
// UpdateClient rewrites an existing client with this request's
// recipient data after a successful issuance; a new recipient is
// saved as a client either way. Sent only when true.
UpdateClient bool
}
type Kind ¶ added in v0.10.0
Kind is one classification, bound to a country.
func (*Kind) Get ¶ added in v0.10.0
Get returns one code. A code that does not exist is a 404, which arrives as *APIError — there is no separate not-found type.
func (*Kind) Search ¶ added in v0.10.0
func (k *Kind) Search(query SearchQuery) (map[string]any, error)
Search returns a page of this classification, filtered by the query's term when it has one. An empty term is no term: the route rejects search="" with a 422, and sending it would invent a failure the caller cannot read.
type Manifestation ¶ added in v0.3.1
type Manifestation string
Manifestation is the recipient's answer to a document issued against it.
const ( Confirmacao Manifestation = "210200" Ciencia Manifestation = "210210" Desconhecimento Manifestation = "210220" OperacaoNaoRealizada Manifestation = "210240" )
type Option ¶
type Option func(*transport)
func WithAPIKey ¶
func WithBaseURL ¶
func WithCompany ¶ added in v0.15.0
WithCompany names the company every request acts on, by its id (UUID) or its CNPJ, punctuated or not. It is sent as the X-Stackin-Company header. Only a credential covering several companies needs it; an API key is one company already. Left empty, nothing is sent.
func WithCountry ¶ added in v0.10.0
WithCountry sets the ISO 3166-1 alpha-2 code FiscalReference and Taxpayer look codes up under. Defaults to BR.
func WithEnvironment ¶
func WithEnvironment(env Environment) Option
func WithTimeout ¶
type PaymentRequiredError ¶ added in v0.18.0
type PaymentRequiredError struct {
APIError
}
PaymentRequiredError is any 402: the plan's allowance is spent and neither an overage price nor the account credit covers the call. Detail says why. errors.As still finds the *APIError inside.
func (*PaymentRequiredError) Unwrap ¶ added in v0.18.0
func (e *PaymentRequiredError) Unwrap() error
type Purpose ¶ added in v0.14.0
type Purpose string
Purpose is why an NF-e is issued (finNFe). The API defaults to PurposeNormal when it is left out.
type RateLimitedError ¶ added in v0.18.0
RateLimitedError is any 429. RetryAfter is the Retry-After header in seconds; without the header it is derived from RetryAt, and zero when neither is there. RetryAt and Code come from the body when it carries them: DISTRIBUTION_COOLDOWN is the SEFAZ's one-hour wait after a received-invoices read that found nothing more. errors.As still finds the *APIError inside.
func (*RateLimitedError) Unwrap ¶ added in v0.18.0
func (e *RateLimitedError) Unwrap() error
type RequestOption ¶ added in v0.2.0
type RequestOption func(*requestConfig)
RequestOption tunes a single call, as opposed to Option, which tunes the client.
func WithIdempotencyKey ¶ added in v0.2.0
func WithIdempotencyKey(key string) RequestOption
WithIdempotencyKey attaches an Idempotency-Key to one call. See IssueRequest.IdempotencyKey for what the API does with it.
type SearchQuery ¶ added in v0.10.0
SearchQuery narrows a classification listing.
There is no SortBy or OrderBy: the route accepts both and discards them, so rows always come back ordered by kind then code. History on Invoice does honour them, which is why the difference is spelled out here rather than left to be discovered.
type SyncResult ¶ added in v0.18.0
SyncResult is what one read of the SEFAZ distribution brought back. NextSyncAt is set when the SEFAZ had nothing more to deliver: no read is allowed before it.
func (*SyncResult) UnmarshalJSON ¶ added in v0.18.0
func (s *SyncResult) UnmarshalJSON(raw []byte) error
type Taxpayer ¶ added in v0.10.0
type Taxpayer struct {
// contains filtered or unexported fields
}
Taxpayer reads the taxpayer registry, one tax id at a time.
One method, and it stays one method. The registry names and addresses real people and companies: an exact lookup answers the question an issuer has — who is this CNPJ I am about to invoice — and answers nothing else. A prefix or wildcard search over the same table is a bulk export wearing the costume of a query. Do not add one, not for parity with FiscalReference, not "just by name", not "just within one state".
func NewTaxpayer ¶ added in v0.10.0
func (*Taxpayer) Get ¶ added in v0.10.0
Get returns one taxpayer, by exact tax id.
A 404 arrives as *APIError and does not mean the taxpayer does not exist: the registry reloads monthly, so a company registered in the last few weeks is simply not in it yet. Never build a validation rule on top of it.
type Usage ¶ added in v0.18.0
type Usage struct {
PlanName string
PlanSlug string
IncludedInvoices int
UsedInvoices int
OveragePriceCents *int
IncludedReceived int
UsedReceived int
ReceivedPriceCents int
ReceivedFree bool
CurrentPeriodStart time.Time
CurrentPeriodEnd *time.Time
CreditBalance int
CompaniesOnAccount int
}
Usage is the plan behind the company and how much of it the current period has used. The numbers are the paying account's, shared by every company it holds; CompaniesOnAccount says whether that sharing is real. Prices and CreditBalance are in cents.
Received invoices: the first IncludedReceived a month come with every plan, then each costs ReceivedPriceCents from the account credit. ReceivedFree is true for the accounts exempt from that charge.
func (*Usage) UnmarshalJSON ¶ added in v0.18.0
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
cancel_invoice
command
|
|
|
consult_invoice
command
|
|
|
lookup_fiscal_reference
command
|
|
|
lookup_taxpayer
command
|
|
|
nfe/basic
command
|
|
|
nfe/full
command
|
|
|
nfe/icms_isento
command
|
|
|
nfe/imported
command
|
|
|
nfe/interstate_with_icms_dest
command
|
|
|
nfe/scale_manufactured
command
|
|
|
nfe/taxed_icms
command
|
|
|
nfe/unit_price
command
|
|
|
nfe/used_asset
command
|
|
|
nfe/with_barcode
command
|
|
|
nfe/with_extra_charges
command
|
|
|
nfe/with_purchase_order
command
|
|
|
nfe/with_quantity
command
|
|
|
nfe/with_tax_benefit
command
|
|
|
nfse/basic
command
|
|
|
nfse/full
command
|
|
|
nfse/with_discount
command
|
|
|
nfse/with_observations
command
|
|
|
nfse/with_service_code
command
|
|
|
nfse/with_tax_retained
command
|
|
|
reissue_invoice
command
|