-
Notifications
You must be signed in to change notification settings - Fork 2
GetInvoicesBySupplierCode
Arivetti edited this page Aug 8, 2025
·
2 revisions
The GetInvoicesBySupplierCode function retrieves a list of Purchases Invoices that have been created for a given Supplier.
public WSResult2OfArrayOfInvoice GetInvoicesBySupplierCode(string token, string SupplierCode)Public Function GetInvoicesBySupplierCode(ByVal token As String, ByVal SupplierCode As String) As WSResult2OfArrayOfInvoice| Parameter | Type | Description |
|---|---|---|
| token | String | The session token retrieved during authentication. |
| SupplierCode | String | Code of the Supplier to retrieve the invoices of. |
Integration ws = new Integration();
String auth = "";// See Authentication page for more
if (auth != null)
{
WSResult2OfArrayOfInvoice invoices = ws.GetInvoicesBySupplier(auth, "TESTINTEGR");
// Use the invoices
}Dim ws As New Integration
Dim auth As String = "" // See Authentication page for more
If (Not auth Is Nothing) Then
Dim invoices As WSResult2OfArrayOfInvoice = ws.GetInvoicesBySupplierCode(Me.auth, "TESTINTEGR")
If ((invoices.Status = OperationStatus.Success) AndAlso (Not invoices.Result Is Nothing)) Then
Dim invoice As Invoice
For Each invoice In invoices.Result
' Use the invoice
Next
End If
End If