Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

The Invitations API is used to access and modify the invitation objects on your business' account. The Invitations API is connected to


On this page





Invitations API Endpoints

These are the endpoints that are available under the /invitations path, which lists all the different gift cards on your business' account.

EndpointDescription
GET /invitation/{invitationId}Returns a JSON object for specified invitation.
GET /invitation/invitationCampaign/{invitationCampaignId}Returns a JSN object for specified invitationCampaign.
GET /invitationCampaignReturns all invitationCampaign objects on a business' account in array format.
GET /invitationCampaign/{invitationCampaignId}Returns a all invitation objects for specified invitationCampaign.
POST /invitationCampaign/client/{commaSeparatedStringOfClientIds}

Sends an email invitation to specified clients.

Request body/payload: Must pass an invitation campaign object in request body/payload. 

For these calls, you need to pass an invitation campaign object with all required fields and any fields you want to update or set filled in the body of the payload. We have an example of an invitation campaign object in the responses section below and have indicated the required fields in the object values table at the bottom of this page.

PUT /invitationCampaign

Updates an existing invitation campaign object. Can only be used to update description and expiration date.





Invitations API Parameters

ParameterTypeEndpoints to be used withDescription
pageNumberstringGET /invitationCampaignWorks with the pageSize parameter to determine how invitations get returned following a GET invitationCampaign call. The pageNumber value represents the number of pages on which the invitations that get returned appear.
pageSizeintegerGET /invitationCampaignWorks with the pageNumber parameter to determine how invitations gets returned following a GET invitationCampaign call. The pageSize value represents the number of invitations appearing on each page that gets returned.
professionalIdintegerGET /invitationCampaignShould be set to the professionalId of person who sent the invitationCampaign to be returned. 




Invitations API Responses

GET /invitation/{invitationUUId}
{
    "businessId": 43111,
    "clickDate": 1540317889771,
    "clicked": true,
    "completed": true,
    "completedDate": 1540317921105,
    "createdDate": 1540317840787,
    "createdUser": "JoeSchmo",
    "declineDate": null,
    "declined": false,
    "email": {Email object for email of specified invitation-see emails API page},
    "invitationCampaignId": 123733,
    "invitationUUId": "ivtce7769a717fa480a907847b99c4574d1",
    "modifiedDate": 1540317921105,
    "modifiedUser": "WebClient",
    "objectId": 5146945,
    "objectType": "CLIENT",
    "openDate": 1540317881254,
    "opened": true,
    "sent": true,
    "status": "COMPLETED",
    "unsubscribed": false
}
GET /invitationCampaign
[{
    "businessId": 43111,
    "coordinatorStaffId": null,
    "createdDate": 1539962301620,
    "createdUser": "JoeSchmo",
    "description": "Campaign sent on 10/19/2018 @ 11:18AM",
    "email": null,
    "emailTemplateId": 70689,
    "employmentDurationType": null,
    "eventDefinitionList": null,
    "expireDate": null,
    "invitationCampaignId": 121587,
    "jobRequisitionId": null,
    "jobTitle": null,
    "locationId": null,
    "locationName": null,
    "modifiedDate": null,
    "modifiedUser": null,
    "parameterMap": null,
    "parameters": "{"staffId":"154514","reasonId":"255109","locationId":"157670"}",
    "professionalId": 77961,
    "reasonId": null,
    "requisitionNumber": null,
    "staffId": null,
    "status": null
}]
GET /invitation/invitationCampaign/{invitationCampaignId}
[{
    "businessId": 43111,
    "clickDate": null,
    "clicked": false,
    "completed": false,
    "completedDate": null,
    "createdDate": 1539792767824,
    "createdUser": "JoeSchmo",
    "declineDate": null,
    "declined": false,
    "email": {Email object for email of specified invitation-see emails API page},
    "invitationCampaignId": 120697,
    "invitationUUId": "ivt8f729ce8a71a49889959bacf620f4ec4",
    "modifiedDate": 1539892787456,
    "modifiedUser": "webhook",
    "objectId": 5143212,
    "objectType": "CLIENT",
    "openDate": null,
    "opened": false,
    "sent": true,
    "status": "SENT",
    "unsubscribed": false
}]
POST /invitationCampaign/client/{commaSeparatedStringOfClientIds}
{
    "businessId": 43111,
    "coordinatorStaffId": null,
    "createdDate": 1540306834662,
    "createdUser": "JoeSchmo",
    "description": "Campaign set on 10/23/2018 @ 11:00AM",
    "email": {Email object connected to specified invitation campaign-see emails API page},
    "emailTemplateId": 70689,
    "employmentDurationType": null,
    "eventDefinitionList": [],
    "expireDate": null,
    "invitationCampaignId": 123468,
    "jobRequisitionId": null,
    "jobTitle": null,
    "locationId": 157670,
    "locationName": null,
    "modifiedDate": null,
    "modifiedUser": null,
    "parameterMap": {staffId: "77961", reasonId: "255109", locationId: "157670"},
    "parameters": "{"staffId":"77961","reasonId":"255109","locationId":"157670"}",
    "professionalId": 77961,
    "reasonId": 255109,
    "requisitionNumber": null,
    "staffId": 77961,
    "status": null
}
PUT /invitationCampaign
{
    "businessId": 43111,
    "coordinatorStaffId": null,
    "createdDate": 1539956304696,
    "createdUser": "JoeSchmo",
    "description": "Campaign set on 10/19/2018 @ 9:38AM",
    "email": null,
    "emailTemplateId": 70689,
    "employmentDurationType": null,
    "eventDefinitionList": null,
    "expireDate": 1540944000000,
    "invitationCampaignId": 121455,
    "jobRequisitionId": null,
    "jobTitle": null,
    "locationId": null,
    "locationName": null,
    "modifiedDate": 1540302776156,
    "modifiedUser": "JoeSchmo",
    "parameterMap": null,
    "parameters": "{"staffId":"81651","reasonId":"153346","locationId":"157670"}",
    "professionalId": 77961,
    "reasonId": null,
    "requisitionNumber": null,
    "staffId": null,
    "status": null
}


Invitations Object Values

GET /invitations

Property NameTypeRequiredDescription
businessIdintegerYesProvides unique numeric ID for the business to which specified invitation belongs.
clickDateinteger
Displays as date specified invitation was clicked in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
clickedboolean
Flag for whether or not specified invitation should show as clicked.
completedboolean
Flag for whether or not specified invitation should show as completed.
completedDateinteger
Displays as date specified invitation was completed in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
createdDateinteger
Displays as date specified invitation was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
createdUserstring
Displays the username of user who created specified invitation.
declineDateinteger
Displays as date specified invitation was declined in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
declinedboolean
Flag for whether or not specified invitation should show as declined.
emailobject
Displays as email object connected to specified invitation.
invitationCampaignIdinteger
Provides unique numeric ID for invitation campaign connected to specified invitation.
invitationUUIdstring
Provides unique alphanumeric ID for specified invitation.
modifiedDateinteger
Displays as date specified invitation was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
modifiedUserstring
Displays as user who last modified specified invitation.
objectIdinteger
Provides unique numeric ID for object connected to specified invitation.
objectTypestring
Displays as the objectType of specified invitation. Has available options "CLIENT'", "STAFF", and "APPOINTMENT".
openDateinteger
Displays as date specified invitation was opened in milliseconds elapsed since January 1, 1970 00:00:00 UTC form.
openedboolean
Flag for whether or not specified invitation should show as opened.
sentboolean
Flag for whether or not specified invitation should show as sent.
statusstring
Displays as status of specified invitation. Has available options "PENDING", "CLICKED", "COMPLETED",
unsubscribedboolean
Flag for whether or not specified invitation should show as unsubscribed.

GET /invitationCampaign

Property NameTypeRequiredDescription
businessIdintegerYesProvides unique numeric ID for the business to which specified invitation campaign belongs.
coordinatorStaffIdinteger
Provides unique numeric ID for any coordinator staff connected to specified invitation campaign.
createdDateintegerYesDisplays as date specified invitation campaign was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. 
createdUserstringYesDisplays as username of the user who created specified invitation campaign.
descriptionstring
Displays as description of specified invitation campaign.
emailobject
Displays as email object connected to specified campaign.
emailTemplateIdinteger
Provides unique numeric ID of email template used for specified invitation campaign.
employmentDurationType


eventDefinitionListarray

expireDateinteger
Displays as date specified invitation campaign is set to expire in milliseconds elapsed since January 1, 1970 00:00:00 UTC form..
invitationCampaignIdinteger
Provides unique numeric ID for specified invitation campaign.
jobRequisitionId


jobTitle


modifiedDateinteger
Displays as date specified invitation campaign was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. 
modifiedUserstring
Displays as username of the user who last modified specified invitation campaign.
parameterMapobject
Displays parameters for call being made in object form.
parametersstring
Displays as string representations of parameters for call being made.
professionalIdinteger
Provides unique numeric ID for any staff connected to specified invitation campaign.
publicVisibleboolean
Flag for whether or not specified invitation campaign is visible to the public.
reasonIdinteger
Provides unique numeric ID for any reason connected to specified invitation campaign.
requisitionNumber


staffIdinteger
Provides unique numeric ID for any staff connected to specified invitation campaign.
statusstring
Displays as status of specified invitation campaign.
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.