---
title: "Prepare invoice action now exposed via the \"SalesOrder\" and \"{}SalesOrderBasic\" endpoints{}"
description: "Two new endpoints have been introduced for the action ‘Prepare invoice’ for sales orders…"
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2023-11-21-prepare-invoice-action-now-exposed-via-the-salesorder-and-salesorderbasic/index.md
lastmod: 2023-11-21
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/llms.txt


# Prepare invoice action now exposed via the "SalesOrder" and "{}SalesOrderBasic" endpoints{}

Last modified November 21, 2023

2023-11-21


Label: api


Version: 9.71



Two new endpoints have been introduced for the action 'Prepare invoice' for sales orders:

- v2/salesorderbasic/\{SOType\]/\{SOOrderNumber\]/action/prepareInvoice
- v2/salesorder/\{SOType\]/\{SOOrderNumber\]/action/prepareInvoice

If the action is successful, the 200 OK response includes a reference number to an invoice. For example:

```json
{
    "referenceNumber": "002625",
    "actionId": "f9496e2a-3319-4439-bf24-7f4ced2252e5",
    "actionResult": "Done"
}
```



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2023-11-21-prepare-invoice-action-now-exposed-via-the-salesorder-and-salesorderbasic/)
