Bongo API
Back to
United Kingdom / English
Back to Documentation


public static ConnectOrderRemove ( Object ConnectOrderRemoveRequest )
    Return: Object ConnectOrderRemoveResponse

This Function is used to REMOVE an exsisting order made with the ConnectOrder function. 

Bongo Connect
Object ConnectOrderRemoveRequest Required

Input object required by the function

String partnerKey Required

Required Key to access the functions of Connect API

String language Required

Defines the language in which the return error will be shown. Supported Languages.

String orderNumber Required

Order number

Object ConnectOrderRemoveResponse

Object returned by the function.

Integer error

Numerical code error message.

String errorMessage

Text string describing the error message.

Examples (3)

download example code

[1] ConnectOrderRemove1.PHP

<?php$client = new SoapClient("");$request = (object)array(    'partnerKey' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',    'language' => 'en',    'orderNumber' => '12345');$response = $client->ConnectOrderRemove($request);print_r($response);?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>PHP Page</title>    </head>    <body>        <h1>ConnectOrderRemove</h1>        <br /><strong>error:</strong> <?php echo $response->error ?>        <br /><strong>errorMessage:</strong> <?php echo $response->errorMessage ?>    </body></html>

[2] ConnectOrderRemove2.Java

<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   ""><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>JSP Page</title>    </head>    <body>        <h1>ConnectOrderRemove</h1>        <%            ws.BongoServiceV4Service service = new ws.BongoServiceV4Service_Impl();            ws.BongoServiceV4Port port = service.getBongoServiceV4Port();            ws.ConnectOrderRemoveRequest cRequest = new ws.ConnectOrderRemoveRequest();            cRequest.setPartnerKey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");            cRequest.setLanguage("es");            cRequest.setOrderNumber("65465465");            ws.ConnectOrderRemoveResponse cResponse = port.connectOrderRemove(cRequest);            out.println("<br /><strong>Error:</strong> " + cResponse.getError());            out.println("<br /><strong>ErrorMessage:</strong> " + cResponse.getErrorMessage());        %>    </body></html>

[3] ConnectOrderRemove3.VBNET

Imports System.DataImports com.bongous.apiPartial Class _Default    Inherits System.Web.UI.Page    Protected Sub Process_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Process.Click        Dim objBongoApi As New BongoServiceV4Service        Dim objinput As New ConnectOrderRemoveRequest        Dim objresult As New ConnectOrderRemoveResponse        'validation ordernumber        If String.IsNullOrEmpty(Me.orderNumber.Text.Trim) Then            Me.lblresult.Text = "Please type <b>orderNumber</b><br/>"        End If        Try            objinput.partnerKey = Me.partnerkey.Text            objinput.language = Me.language.Text            objinput.orderNumber = Me.orderNumber.Text            objresult = objBongoApi.ConnectOrderRemove(objinput)            Me.lblresult.Text = "error: " & objresult.error & "<br/>" & _                           "errorMessage: " & objresult.errorMessage & "<br/>"        Catch ex As Exception            Me.lblresult.Text = ex.ToString        End Try    End SubEnd Class