NC365 Invoice API (11260770)

Created by Tys van den Heuvel, Modified on Wed, 5 Jul, 2023 at 11:12 PM by Tys van den Heuvel

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


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article