HTTP Operation Type Object DTO Why-DTOs?
(Mutation) closeSalesInvoice CloseSalesInvoiceGLDtoInput

Description


The CloseSalesInvoice service allows for confirming a sales invoice, meaning its content can no longer be modified.
This step is essential to proceed with posting the invoice, which generates accounting entries and enables tracking payments associated with the invoice.

After closing, the invoice status changes from Pending (Draft) to Closed (Unposted), making it ready for posting and further financial processing.


img

Functionality

Input Parameters

Invoice Details: Specify the details of the sales invoice to be closed.

Response

The service can return the following fields:

These fields confirm that the invoice has been successfully closed.

Key Value
Authorization Bearer Current access Token How to find?
X-TenantId Current tenant id How to find?
X-OrganizationId Current organization Id How to find?
x-api-key Primary or secondary subscription key of your app How to find?
GraphQL Mutation
mutation($input: CloseSalesInvoiceGLDtoInput!) {
  closeSalesInvoice(input: $input) {
    id
    operationalNumber
  }
}
GraphQL Variables
{
  "input": {
    "salesInvoiceId": "96771689-53b9-4f4c-add3-40eb31e38254"
  }
}
Example Response
{
    "data": {
        "closeSalesInvoice": {
            "id": "96771689-53b9-4f4c-add3-40eb31e38254",
            "operationalNumber": "0038"
        }
    }
}

closeSalesInvoice Input parameters

Fields Type Description Length
salesInvoiceId UUID Unique identifier of the sales invoice  

closeSalesInvoice Response

Fields Type Description
id UUID Unique identifier of the closed invoice