eShop Example
Overview
Using Atollon to bill/invoice eShop purchases
How to use Atollon to quickly send invoices to eShop clients? See the illustration below describing the scheme necessary to adopt when billing from Atollon.
Used Functions
Functions to create objects:(there may be some other functions necessary, if listing is required)
CreateContact (main.wsdl)
Use for both company & person
CreateSimpleFolder (project.wsdl)
For both company & person clients
CreateProject (project.wsdl)
CreateProjectItem (item.wsdl)
Create New Customer (Person)
First create new contact
CreateContact (main.wsdl) Request
acme6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04JackBuyerLondonUnited Kingdom1LondonOur Street 101320271011100jackbuyer@gmail.com111320311013399988801132035101990888333011320331013Dear Adam131428101
CreateContact Response
OK139663101
Create New Customer Folder
CreateSimpleFolder (project.wsdl) Request
acme6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04Buyer, Jack130944101
139633101
139663101130944101
CreateSimpleFolder Response
OK139676101Client13271610110
Create New Deal
First Create Project Folder
CreateProject (project.wsdl) Request
acme6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04139676101139676101133150101Super Sales133297101132740101
CreateProject Response
OK139704101133295101Deal02
Second Create Billing Item
CreateProjectItem (item.wsdl) Request
acme6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD0412342020-05-14T00:00:0035190CZK133629101AAA Batteries13970410113056170678710100
CreateProjectItem Response
OK0139721101Create New Invoice
Create Invoice from Billing Items in For approval Status
CreateInvoicesFromItems (invoice.wsdl) Request
acme6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04139704101
CreateInvoicesFromItems Response
OK139758101232010001Create Recurring Billing Request
On top of created project (deal), it is possible to create recurring billing request.
See the documentation of CreateFolderItem function for more details.
Example CreateFolderItem (item.wsdl) Request
acme7CDF678513DCBF0379DDD26A6961B604D7F1515CBD0412342020-05-14T00:00:0025190CZK133629101Repeated serviceBilling the yearly service.130513967610161706787101002020-05-14T00:00:0012020-05-14T00:00:002099-05-04T00:00:001397041012
CreateFolderItem (Response)
OK0139812101Execute Workflow Actions Immediately
In case your integration requires executing workflow actions immediately after your request, it is necessary to call CheckWorkflowQueue function that is part of features.wsdl.
yourserver---yoursessionstring---Create New Marketing Trigger
Marketing triggers are used to track any activity of the contact / public user, which have some meaning in your company sales or marketing process.
The example below notifies Atollon about new phone number added to contact. Atollon may therefore create call task.
Example Request
acme61A...DBD04new-phone-number132716101139663101www.yourcompany.com/product/pagewww.company.com/product/pageExtranet user added new phone number2020-07-31 12:001
Example Response
OK400097101
Fields Description
Field name
Example
Description
baseType
new-phone-number
url-visit
goal-achieved
Text identification of the marketing trigger (what actually happened)
contextId
123456789000
Identification of Folder ID, Project ID or Activity ID in Atollon's context structure. It is necessary to enter context ID in case it should be displayed in context Timeline.
contactId
113456789000
Identification of contact, who caused the trigger
url
https://yourcompany.atollon.com/pub/23423432
Page that the contact visited (optional)
trackingCode
yourSuperCampaignXYZ
Any text string representing one particular campaign / marketing activity / message template
description
Contact visited URL
Any descriptive text that will be visible to Atollon users in Timeline
triggerDate
2020-08-12 12:00
When the trigger happened?
numberOfVisits
45
In case the target user is super active (or robot), we may want to avoid spamming Atollon with unnecessary records and aggregate page visits