WEBActivityAlreadyRegisteredForEvent
| Initial Build | n/a |
| xWeb | Web Method |
| Response Type | Boolean |
The WEBActivityAlreadyRegisteredForEvent web method returns true or false if a particular customer has registered for a specified event, based on the provided combination of CustomerKey and EventKey.
This method can be used to determine if a customer should be able to register for an event. If the customer has already registered, they should probably be warned (or stopped) from registering again.
If a customer registered for the event but cancelled, then the method returns true as it only checks for non-cancelled, non-deleted registrations.
Parameters
| Name | Type | Occurs | Description |
|---|---|---|---|
| CustomerKey | guid | 1..1 | The Customer Key of the customer. |
| EventKey | guid | 1..1 | The Event Key. |
Response
Boolean
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>**********************</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBActivityAlreadyRegisteredForEvent>
<ns:CustomerKey>b99e9c26-5e6a-4151-bfd1-ddb71398e3b8</ns:CustomerKey>
<ns:EventKey>926af761-d2d2-4ef8-92e6-b89afd0e8fb8</ns:EventKey>
</ns:WEBActivityAlreadyRegisteredForEvent>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>****************</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBActivityAlreadyRegisteredForEventResponse xmlns="http://www.avectra.com/2005/">
<WEBActivityAlreadyRegisteredForEventResult>true</WEBActivityAlreadyRegisteredForEventResult>
</WEBActivityAlreadyRegisteredForEventResponse>
</soap:Body>
</soap:Envelope>
JSON Method
Gets true or false if the customer is registered for the event.
GET /xweb/JSON/WEBActivityAlreadyRegisteredForEvent?CustomerKey=1335FB2F-288F-4848-8748-12F18B8A7452&EventKey=5AEBC6E3-91FA-4AD3-919A-050DF106CD7C
POST /xweb/JSON/WEBActivityAlreadyRegisteredForEvent
DATA: JSON{
"WEBActivityAlreadyRegisteredForEvent": {
"CustomerKey": "1335FB2F-288F-4848-8748-12F18B8A7452",
"EventKey": "5AEBC6E3-91FA-4AD3-919A-050DF106CD7C"
}
}
SAMPLE RESULT: Customer is registered for the event
HTTP STATUS: 200
DATA: JSONtrue
AMPLE RESULT: Either not registered, or the customer or event was not found.
HTTP STATUS: 200
DATA: JSONfalse