How do I create a receipt for the total amount for a specific invoice?

0

Good afternoon,

I've been searching the API reference and even the examples from Postman and I have tried the endpoints /invoiceReceipt/invoices and /accountsReceivable/processOpenItems and none seems to work as described in API reference .

I have yet to understand what the endpoint is and what body I have to use to be able to issue a receipt in the total invoice amount (without having to send the value of the same) and now how to issue the receipt with a value inserted by me relative to a specific invoice.

    
asked by anonymous 17.12.2018 / 18:21

1 answer

2

The receipt can not be created directly from a specific invoice. However, it is possible to make a receipt for a set of invoices. If you want to settle only one invoice, you should only select this invoice in the set.

Endpoint: POST {{url}}/api/{{tenant}}/{{organization}}/accountsReceivable/processOpenItems/{{companyKey}}

Body

[
    {
        "sourceDoc": "FA.2018.6",
        "discount": 0,
        "settled": 10
    }
]

Note: In the settled value, the total or partial value of the invoice can be entered.

    
21.12.2018 / 13:39