Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:payment_workflow [2025/08/13 03:19] – created pr3 | en:payment_workflow [2025/08/13 03:26] (current) – [Get Your Form ID] pr3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Payment | + | ====== Fetch Customer Form Results via API ====== |
| + | |||
| + | This guide helps you set up a simple API call in the CX Genie customer service system to get form results from a specific customer form. | ||
| + | You don’t need a technical background — just follow the steps carefully! | ||
| + | |||
| + | ===== Step 1: Create a Workflow with API Call Block ===== | ||
| + | - Go to your workflow | ||
| + | - Add a block called **API Call** to your workflow. | ||
| + | |||
| + | ===== Step 2: Prepare the API URL ===== | ||
| + | |||
| + | ==== Choose the Environment ==== | ||
| + | Use the correct base API URL depending on where you're working: | ||
| + | |||
| + | ^ Environment ^ API Root URL ^ | ||
| + | | QC UAT | https:// | ||
| + | |||
| + | ==== Get Your Form ID ==== | ||
| + | To connect to the correct form, you need a **Form ID**. Here's how to find it: | ||
| + | |||
| + | - Open your form builder from the UI. | ||
| + | - Look at the address bar (URL). It will look like this: | ||
| + | |||
| + | `https:// | ||
| + | |||
| + | The part at the end is your **form ID**. | ||
| + | |||
| + | **Example: | ||
| + | `b1f5393f-8387-41ea-98f6-34982a5c1bab` | ||
| + | |||
| + | ==== Add Query Parameters ==== | ||
| + | You’ll need to add two types of info to the API URL: | ||
| + | |||
| + | * **Form ID** | ||
| + | Add it like this: | ||
| + | `? | ||
| + | |||
| + | * **Properties** (Optional) | ||
| + | If you want to get specific data fields from the form (e.g., `transaction_id`, | ||
| + | |||
| + | * **Comma-separated method: | ||
| + | `& | ||
| + | |||
| + | **Tip: | ||
| + | You can find the property names by opening your form in the form builder. | ||
| + | Each input has a **Property** value — use that. | ||
| + | |||
| + | ==== Final Example URL ==== | ||
| + | If you combine everything, your full API URL might look like: | ||
| + | |||
| + | `https:// | ||
| + | |||
| + | |||
| + | |||
| + | ===== Step 3: Add the API URL to the API Call Block ===== | ||
| + | - Paste the full API URL into the **URL** field. | ||
| + | - Choose the **GET** method. | ||
| + | - Save the block and test it. | ||
| + | |||
| + | ===== What Happens After Success? ===== | ||
| + | You’ll receive a message in the chat window if everything works. | ||
| + | |||
| + | Example result: | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | That means the API call worked and your data was fetched! | ||
| + | |||
| + | ===== 🎉 You're Done! ===== | ||
| + | You’ve successfully added an API call to your workflow! | ||
| + | The rest of your blocks will work as usual, and now you can fetch customer form results directly in your workflow. | ||