DeliveryNote.ConfirmDeliveryOutcome Method

The method is called either by the carrier to declare the result of the delivery or by the receiver to confirm receipt. 
For B2B transactions, the receiver must call this method too, after the carrier has delivered the packages, to call the delivery "completed".
Public Function ConfirmDeliveryOutcome( _ 
ByVal outcome As DeliveryOutcome, _ 
Optional ByVal GreekErrors As Boolean = False _ 
) As String
This language is not supported or no code example is available.
public string ConfirmDeliveryOutcome( 
DeliveryOutcome outcome
bool GreekErrors = False 
)
This language is not supported or no code example is available.

Parameters

outcome
DeliveryOutcome

The Delivery Outcome, type of DeliveryOutcome

GreekErrors
bool

Determines if the error will be returned in Greek or not.

Return Value

string

The Outcome MARK as string, in a format like: mark:400000000000001

Example
 
 DeliveryNote del = new DeliveryNote("AADEUserID", "OcpApimSubscriptionKey", "Arbitrans User", "Arbitrans Key", false);
 DeliveryNote.DeliveryOutcome tra = del.newDeliveryOutcome;
 var packs = new List<DeliveryNote.packages>(); // Initialize a new list of Packages
 
 tra.qrURL = "https://mydataapidev.aade.gr/TimologioQR/QRInfo?q=1jRnA50t";
 tra.outcome = 1;
 DeliveryNote.packages pack = del.newPackage; // Initialize a new Package
 pack.packagingType = 1; // set the package type
 pack.quantity = 4; // set the quantity (integer only)
 
 packs.Add(pack); // add the package into the list of packages
 tra.deliveredPacking = packs; // set the list of packages to the delivery outcome
 
 string result = del.ConfirmDeliveryOutcome(tra);
 string exp = del.ExportDataForValidation();
 					
This language is not supported or no code example is available.
 Dim del As DeliveryNote = New DeliveryNote("AADEUserID", "OcpApimSubscriptionKey", "Arbitrans User", "Arbitrans Key", False)
 Dim tra As DeliveryNote.DeliveryOutcome = del.newDeliveryOutcome
 Dim packs As New List(Of DeliveryNote.packages) 'Initialize a new list of Packages
 
 tra.qrURL = "https://mydataapidev.aade.gr/TimologioQR/QRInfo?q=1jRnA50t"
 tra.outcome = 1
 Dim pack As DeliveryNote.packages = del.newPackage 'Initialize a new Package
 pack.packagingType = 1 'set the package type
 pack.quantity = 4 'set the quantity (integer only)
 
 packs.Add(pack) 'add the package into the list of packages
 tra.deliveredPacking = packs 'set the list of packages to the delivery outcome
 
 Dim result As String = del.ConfirmDeliveryOutcome(tra)
 Dim exp As String = del.ExportDataForValidation()
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition