Skip to main content

NC365 Invoice API (11260770)

CreateHeader

CreateHeader(DocumentNo: Code[20]; StagingOrderNo: Code[20]): Record "NC365 Invoice Header"

Creates an NC365 Invoice Header based for a custom implementation.

Parameters:

  • DocumentNo - The no. of the source document (e.g., the sales invoice no.)
  • StagingOrderNo - The staging order no

Returns: The created NC365 Invoice Header

CreateHeader

CreateHeader(DocumentNo: Code[20]; StagingOrderNo: Code[20]; MagentoBillingAddressID: Integer; MagentoShippingAddressID: Integer; MagentoCustomerID: Integer; MagentoStoreID: Integer; MagentoOrderID: Integer): Record "NC365 Invoice Header"

Creates an NC365 Invoice Header for a custom implementation.

Parameters:

  • DocumentNo - The no. of the source document (e.g., the sales invoice no.)
  • StagingOrderNo - The staging order no
  • MagentoBillingAddressID - The Magento billing address ID
  • MagentoShippingAddressID - The Magento shipping address ID
  • MagentoCustomerID - The Magento customer ID
  • MagentoStoreID - The Magento store ID
  • MagentoOrderID - The Magento order ID

Returns: The created NC365 Invoice Header

Complete

Complete(var NC365InvoiceHeader: Record "NC365 Invoice Header"): Boolean

Use this function to mark an invoice as completed.

Parameters:

  • NC365ShipmentHeader - The NC365 Invoice Header

Returns: nothing

CreateLine

CreateLine(NC365InvoiceHeader: Record "NC365 Invoice Header"; LineNo: Integer; StagingOrderNo: Code[20]; StagingOrderLineNo: Integer): Record "NC365 Invoice Line"

Creates an NC365 Invoice Line for a custom implementation.

Parameters:

  • NC365InvoiceHeader - The NC365 Invoice Header
  • LineNo - The line no
  • StagingOrderNo - The staging order no
  • StagingOrderLineNo - The staging order no.The staging order line no

Returns: The created NC365 Invoice Line

CreateLine

CreateLine(NC365InvoiceHeader: Record "NC365 Invoice Header"; LineNo: Integer; SourceDocumentType: Enum "Sales Document Type"; SourceDocumentNo: Code[20]; SourceDocumentLineNo: Integer; Quantity: Decimal; Weight: Decimal; ItemNo: Code[20]; VariantCode: Code[10]; Description: Text[100]; MagentoOrderItemID: Integer; MagentoProductID: Integer; UnitPrice: Decimal): Record "NC365 Invoice Line"

Creates an NC365 Invoice Line for a custom implementation.

Parameters:

  • NC365InvoiceHeader - The NC365 Invoice Header
  • LineNo - The line no
  • SourceDocumentType - The source document type
  • SourceDocumentNo - The source document no
  • SourceDocumentLineNo - The source document line no
  • Quantity - The quantity
  • Weight - The weight
  • ItemNo - The item no
  • VariantCode - The variant code
  • Description - The description
  • MagentoOrderItemID - The Magento order item ID
  • MagentoProductID - The Magento product ID
  • UnitPrice - The unit price

Returns: The created NC365 Invoice Line

Fully automated installation and onboarding

Install via AppSource

Click on the AppSource button, install the free trial and just follow the instructions