Documentos de venda
As rotas aqui descritas permitem gerir todos os processos relativos a documentos de venda — orçamentos, faturas-proforma, guias, faturas e notas —, incluindo a sua descarga em PDF.
Criação do documento
post
Body
document_typestringRequiredExample:
FT|FS|FRdatestringOptionalExample:
2023-01-01document_series_idintegerOptionalExample:
1document_series_prefixstringOptionalExample:
Prefixo da sériecustomer_idintegerOptionalExample:
1customer_tax_registration_numberstringOptionalExample:
999999990customer_business_namestringOptionalExample:
Nome do clientecustomer_address_detailstringOptionalExample:
Morada do clientecustomer_postcodestringOptionalExample:
0000-000customer_citystringOptionalExample:
Cidade/Localidade do clientecustomer_countrystringOptionalExample:
PTdue_datestringOptionalExample:
2023-01-01settlement_expressionstringOptionalExample:
7.5payment_mechanismstringOptionalExample:
MO|CH|DC|CC|TR|CO|CS|DE|LC|MB|OU|RT|DDAbank_account_idintegerOptionalExample:
1cash_account_idintegerOptionalExample:
1vat_included_pricesbooleanOptionalExample:
falsetax_exemption_reason_idintegerOptionalExample:
1operation_countrystringOptionalExample:
PT-MAcurrency_idintegerOptionalExample:
1currency_iso_codestringOptionalExample:
USDcurrency_conversion_ratenumberOptionalExample:
1.21retentionnumberOptionalExample:
7.5retention_typestringOptionalExample:
IRS|IRCapply_retention_when_paidbooleanOptionalExample:
truenotesstringOptionalExample:
Notas ao documentoexternal_referencestringOptionalExample:
Referência do documento externofinalizebooleanOptionalExample:
truereturn_pdfbooleanOptionalExample:
trueResponses
200
OK
application/json
post
/v1/commercial_sales_documents200
OK
Eliminação do documento
delete
Path parameters
idintegerRequired
id of the document to delete
Responses
200
OK
No content
delete
/v1/commercial_sales_documents/{id}200
OK
No content
Finalização do documento
patch
Path parameters
idintegerRequired
id of the document to finalize
Body
return_pdfbooleanOptionalExample:
trueResponses
200
OK
application/json
patch
/v1/commercial_sales_documents/{id}/finalize200
OK
Anulação do documento
patch
Path parameters
idintegerRequired
id of the document to void
Body
voided_reasonstringRequiredExample:
Texto descritivo do motivo de anulaçãoResponses
200
OK
application/json
patch
/v1/commercial_sales_documents/{id}/void200
OK
Alteração do documento
patch
Path parameters
idintegerRequired
id of the document to update
Body
idintegerOptionalExample:
1document_typestringOptionalExample:
FT|FS|FRdatestringOptionalExample:
2023-01-01document_series_idintegerOptionalExample:
1document_series_prefixstringOptionalExample:
Prefixo da sériecustomer_idintegerOptionalExample:
1customer_tax_registration_numberstringOptionalExample:
999999990customer_business_namestringOptionalExample:
Nome do clientecustomer_address_detailstringOptionalExample:
Morada do clientecustomer_postcodestringOptionalExample:
0000-000customer_citystringOptionalExample:
Cidade/Localidade do clientecustomer_countrystringOptionalExample:
PTdue_datestringOptionalExample:
2023-01-01settlement_expressionstringOptionalExample:
7.5payment_mechanismstringOptionalExample:
MO|CH|DC|CC|TR|CO|CS|DE|LC|MB|OU|RT|DDAbank_account_idintegerOptionalExample:
1cash_account_idintegerOptionalExample:
1vat_included_pricesbooleanOptionalExample:
falsetax_exemption_reason_idintegerOptionalExample:
1operation_countrystringOptionalExample:
PT-MAcurrency_idintegerOptionalExample:
1currency_iso_codestringOptionalExample:
USDcurrency_conversion_ratenumberOptionalExample:
1.21retentionnumberOptionalExample:
7.5retention_typestringOptionalExample:
IRS|IRCapply_retention_when_paidbooleanOptionalExample:
truenotesstringOptionalExample:
Notas ao documentoexternal_referencestringOptionalExample:
Referência do documento externofinalizebooleanOptionalExample:
truereturn_pdfbooleanOptionalExample:
trueResponses
200
OK
application/json
patch
/v1/commercial_sales_documents/{id}200
OK
Eliminação de uma linha
delete
Path parameters
idintegerRequired
id of the document
lineIdintegerRequired
id of the document line to delete
Responses
200
OK
No content
delete
/v1/commercial_sales_documents/{id}/lines/{lineId}200
OK
No content
Consulta do documento
get
Path parameters
idintegerRequired
id of the document of which to get the information
Responses
200
OK
application/json
get
/v1/commercial_sales_documents/{id}200
OK
Last updated