1Fetch Client API

<back to all web services

SubscriptionList

The following routes are available for this service:
GET/subscriptionGet a list of subscription events that you are subscribed to
ApiServiceRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringYesThe API Key required for authentication
SubscriptionListResponse Parameters:
NameParameterData TypeRequiredDescription
SubscriptionsformList<SubscriptionDetail>No
ApiServiceResponse Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringYesInformation about the response.
HeadingformstringYesHeading or summary of the response.
WasSuccessfulformbooleanYesDid the intended operation for this response complete successfully?
SubscriptionDetail Parameters:
NameParameterData TypeRequiredDescription
EventTypeformWebhookSubscriptionEventTypeNo
EventNameformstringNo
SubscriptionUrlformstringNo
WebhookSubscriptionEventType Enum:
NameValue
DriverOnTheWay0
ArrivedAtWaypoint1
DepartedWaypoint2
OrderCompleted3
OrderCancelled4

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /subscription HTTP/1.1 
Host: api.1fetch.co.za 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Subscriptions":[{"EventType":0,"EventName":"String","SubscriptionUrl":"String"}],"Description":"String","Heading":"String","WasSuccessful":false}