Pagamentos
Criação de cabeçalhos e linhas
post
Body
datestringOptionalExample:
2023-01-01payment_mechanismstringOptionalExample:
MO|CH|DC|CC|TR|DDA|MB|OU|...document_series_idintegerOptionalExample:
1bank_account_idintegerOptionalExample:
1cash_account_idintegerOptionalExample:
1return_pdfbooleanOptionalExample:
trueResponses
200
OK
application/json
idintegerOptionalExample:
1datestringOptionalExample:
2023-01-01payment_mechanismstringOptionalExample:
MO|CH|DC|CC|TR|DDA|MB|OU|...document_series_idintegerOptionalExample:
1bank_account_idintegerOptionalExample:
1cash_account_idintegerOptionalExample:
1urlstringOptionalExample:
https://app.cloudware.pt/path_to_filepost
/v1/commercial_purchases_payments200
OK
Finalização do documento
Anulação de um documento (Caso seja preciso)
delete
Path parameters
idintegerRequired
id of the payment line to delete
Body
voided_reasonstringRequiredExample:
Texto descritivo do motivo de anulaçãoResponses
200
OK
No content
delete
/v1/commercial_purchases_payments/{id}200
OK
No content
Edição do documento, após criação
patch
Path parameters
idintegerRequired
id of the payment to edit the information of
Body
datestringRequiredExample:
15-7-2022payment_mechanismstringRequiredExample:
MO|CH|DC|CC|TR|DDA|MB|OU|...commercial_document_series_idintegerOptional
bank_account_idintegerOptional
cash_account_idintegerOptional
Responses
200
OK
No content
patch
/v1/commercial_purchases_payments/{id}200
OK
No content
Adição de linhas
post
Path parameters
idintegerRequired
id of the payment to add the line to
Body
Responses
200
OK
No content
post
/v1/commercial_purchases_payment_lines/{id}200
OK
No content
Remoção de linhas
delete
Path parameters
idintegerRequired
id of the payment line to delete
Responses
200
OK
No content
delete
/v1/commercial_purchases_payment_lines/{id}200
OK
No content
Consultar documento
get
Path parameters
idintegerRequired
id of the payment to get the information of
Responses
200
OK
application/json
get
/v1/commercial_purchases_payments/{id}200
OK
Last updated