HTTP Operation Type Object DTO Why-DTOs?
(Mutation) postPurchaseInvoice PostPurchaseInvoiceGLDtoInput

Description

The PostPurchaseInvoice service allows for the posting of a Purchase invoice to generate ledger entries that are associated with the Purchase invoice journal.
This service also creates ledger entries based on the provided Purchase invoice details, facilitating financial tracking and management within the system.

This functionality can be related to Open Items Settlement as it is necessary for an invoice to be posted before settlements can be applied to it.

img

Functionality

Input Parameters

Invoice Details: Specify the details of the Purchase invoice that is being posted.

Response

The service can return the following fields:

These fields confirm that the sales invoice has been successfully posted.

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 Query
mutation($input: PostPurchaseInvoiceGLDtoInput!) {
  postPurchaseInvoice(input: $input) {
    accountingEntryId
    accountingEntryNumber
  }
}
graphQL Variables
{
  "input": {
    "PurchaseInvoiceId": "96771689-53b9-4f4c-add3-40eb31e38254",
    "accountingEntryDescription": "Purchase Invoice No. 0007 27/06/2024",
    "journalTypeId": "6fdf8926-cfdd-4ef8-8f89-39d6bfa622da"
  }
}
Example Response: Returns the Identifiers of the Accounting Entry
{
  "accountingEntryId": "bb8f0f4d-5537-4e29-842d-6b0d9db8abfe"
  "accountingEntryNumber": 230
}

postPurchaseInvoice Input parameters

Fields Type Description Length
purchaseInvoiceId UUID Unique identifier of the Purchase invoice  
accountingEntryDescription String Description of the accounting entry being created 200
journalTypeId UUID Identifier for the PURCHASE_INVOICE journal  

postPurchaseInvoice Response

Fields Type Description
id UUID Unique identifier of the ledger entry created