Show/Hide Toolbars

Additional Resources

Creates the purchase invoice in Business Central with all line items. The invoice is not posted and can be found under Purchasing -> Purchase invoices, from where it can be posted.

 

Endpoint: https://api.businesscentral.dynamics.com/v2.0/<environment name>/sandbox/api/v2.0/companies(<company id>)/purchaseInvoices

 

Request Script:

conn_md365_bc_060a

Body Mapping:

 

JSON Name

JSON Value

Type

invoiceDate

invDate

Value

vendorNumber

IndexData.GetField("Vendor_No")

Value

vendorInvoiceNumber

IndexData.GetField("Vendor_Invoice_No")

Value

purchaseInvoiceLines

TWFm128

Object

    itemId

IndexData.GetField("Item_Id")

Value

    lineType

IndexData.GetField("Type")

Value

    Quantity

IndexData.GetField("Quantity")

Value

 

 

Response Mapping:

 

Category Field

Assignment

InvoiceID

Json.GetValue("id")

Invoice No

Json.GetValue("number")

© 2023 Therefore Corporation, all rights reserved.