ProvBratnet.resendB2G Method

Use this method to resend a previously submitted B2G invoice to myDATA. 
Only use this method if ΚΕΔ returns the "SoftReject" status, which indicates that your invoice is generally correct but requires some field changes.
Public Function resendB2G( _ 
ByVal correctB2G As correctB2G
) As Dictionary(Of String, String)
This language is not supported or no code example is available.
public Dictionary<string, string> resendB2G( 
correctB2G correctB2G 
)
This language is not supported or no code example is available.

Parameters

correctB2G
correctB2G

It contains the corrected B2G fields.

Return Value

Dictionary<string, string>
Example
 
 ProvBratnet bra = new ProvBratnet("BratnetUser", "BratnetPassword", "bratnetAPIKey", "arbUser", "arbKey", false);
 
 // In this example, the ΚΕΔ soft rejected our invoice due to the wrong government ID we provided.
 // So, we must only change the govID field and resend it.
 var newB2G = new ProvBratnet.correctB2G();
 newB2G.mark = "400000000000001"; // MANDATORY
 newB2G.govID = "0000.0000.0000.0000"; // Use the method myDATATools.getGovs to find the correct government organization.
 
 Dictionary<string, string> B2GRes = bra.resendB2G(newB2G);
 					
This language is not supported or no code example is available.
 Dim bra As ProvBratnet = New ProvBratnet("BratnetUser", "BratnetPassword", "bratnetAPIKey", "arbUser", "arbKey", false)
 
 'In this example, the ΚΕΔ soft rejected our invoice due to the wrong government ID we provided.
 'So, we must only change the govID field and resend it.
 Dim newB2G As New ProvBratnet.correctB2G
 newB2G.mark = "400000000000001" 'MANDATORY
 newB2G.govID = "0000.0000.0000.0000" 'Use the method myDATATools.getGovs to find the correct government organization.
 
 Dim B2GRes As Dictionary(Of String, String) = bra.resendB2G(newB2G)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition