Authentication
Zapier authentication.
Login
Zapier login.
Request
POST /api/login
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Body parameters
Parameter | Value |
---|---|
STRING REQUIRED | The email of the user E.g. admin@thiio.com |
password STRING REQUIRED | The password for the email E.g. 123456789 |
integration STRING REQUIRED |
|
Response
Check user logged in
Zapier check user logged.
Request
GET /api/check
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Authorization STRING REQUIRED | Base 64 encoded string containing the |
Response
Triggers
All triggers use same endpoint for subscribe and unsubscribe.
Subscribe
Request
POST /api/integrations/{integration_uuid}/channels
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Authorization STRING REQUIRED | Base 64 encoded string containing the |
Path parameters
Parameter | Value |
---|---|
integration_uuid STRING REQUIRED | The uuid of integration for system notifications, this value is sent by the Login endpoint. |
Body parameters
Parameter | Value |
---|---|
url STRING REQUIRED | Zapier webhook url stored in |
method STRING REQUIRED |
|
alias STRING REQUIRED | Alias for the trigger in Thiio, the value should be like this |
event STRING REQUIRED | Event for trigger in Thiio, posible values:
|
Response
200 OK
{ "data": { "id": "716fcaa4-4554-449a-aa85-cc75f24ebb77", "metadata": { "alias": "Zapier - Transaction declined", "method": "zapier", "url": "https:\/\/hooks.zapier.com\/hooks\/standard\/19665925\/e47c7eefa5ed47d59379c29158b96c67\/", "event": "transaction-declined" } }, "message": "Integration Channel created" }
Unsubscribe
Request
DELETE /api/channels/{id}
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Authorization STRING REQUIRED | Base 64 encoded string containing the |
Path parameters
Parameter | Value |
---|---|
id STRING REQUIRED | Zapier subscribe id stored in |
Response
200 OK
{ "message": "Integration Channel deleted", "data": null }
Perform list
Request
GET /api/zapier/{list}
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Authorization STRING REQUIRED | Base 64 encoded string containing the |
Path parameters
Parameter | Value |
---|---|
list STRING REQUIRED | Posible values
|
Response for customers
200 OK
{ "first_name": "krista", "last_name": "durgan", "email": "durganfb5a8jf3@gmail.com", "id": 1, "url": "http://koelpin.net/temporibus-sit-et-et-incidunt", "type": "customer", "date": "2024-08-12", "customer_since": "2024-08-12T22:31:00Z", "lifetime_value": 0, "activations_count": 0 }
Response for orders
Response for shippings
Response for subscriptions
Response for surveys
200 OK
{ "title": "Survey recusandae sint tempora voluptatibus modi", "description": "Laudantium repudiandae est ea corporis.", "take": "once", "capture_name": true, "capture_phone": true, "capture_at_end": true, "status": true, "start_question_id": null, "lead_capture": "at_end", "metadata": { "end": { "x_position": 890, "y_position": 100 }, "start": { "x_position": 100, "y_position": 100 } } }
Response for transactions
Response for transaction-histories
Actions
Create customer
Request
POST /api/zapier/store-customer-order
Header parameters
Parameter | Value |
---|---|
Accept STRING REQUIRED |
|
Authorization STRING REQUIRED | Base 64 encoded string containing the |
Body parameters
Parameter | Value |
---|---|
event |
|
source |
|
contact OBJECT REQUIRED | The contact object |
contact.email STRING REQUIRED | The customer email E.g. customer@thiio.com |
contact.first_name STRING REQUIRED | The customer first name E.g. John |
contact.last_name STRING REQUIRED | The customer last_name E.g. Doe |
phone OBJECT REQUIRED | The phone object |
phone.country STRING REQUIRED | The customer phone country code E.g. US |
phone.number STRING REQUIRED | The customer phone number E.g. +17723611127 |
Response
200 OK
{ "event": "customer", "source": "zapier", "contact": { "email": "customer@thiio.com", "last_name": "Doe", "first_name": "John" }, "phone": { "country": "US", "number": "+17723611127" } }