> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.solvimon.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.solvimon.com/_mcp/server.

# Create a workflow action

POST https://test.api.solvimon.com/v{version}/workflow-actions
Content-Type: application/json

Creates a workflow action linked to an existing workflow. The action payload must match the selected action type. Requires the WORKFLOW_ACTION.CREATE permission.

Reference: https://docs.solvimon.com/api-docs/configuration-api/workflow-actions/post-workflow-actions

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://test.api.solvimon.com` (The TEST environment for our API, default)
- `https://api.solvimon.com` (The live environment for our API)

## Request

### Path parameters

- `version` (string, required, default: 1) — version

### Headers

- `x-platform-id` (string, optional) — Platform ID.

### Body (application/json)

This endpoint expects a WorkflowActionCreateRequest.

- `object_type` (string, optional, nullable)
- `id` (string, optional, nullable)
- `workflow_id` (string, optional) — Workflow that owns this action.
- `type` (enum, optional) — Action type that selects the matching action configuration.
  - Allowed values: `SEND_EMAIL_TO_CUSTOMER`, `EXPORT_TO_ERP`, `SEND_WEBHOOK`
- `description` (string, optional, nullable) — Description of what this action does.
- `status` (enum, optional) — Status of the action.
  - Allowed values: `ACTIVE`, `INACTIVE`, `DRAFT`, `ARCHIVED`
- `created_at` (string, optional, nullable) — Date time when the action was created.
- `updated_at` (string, optional, nullable) — Date time when the action was last updated.
- `send_email_to_customer` (SendEmailToCustomer, optional) — Email action configuration used to send an email to the customer.
- `export_to_erp` (ExportToErpAction, optional) — Export-to-ERP action configuration. Used when type is EXPORT_TO_ERP.
- `send_webhook` (SendWebhookAction, optional) — Send-webhook action configuration. Used when type is SEND_WEBHOOK.

## Response

### 201

Created

- `object_type` (string, optional, nullable)
- `id` (string, optional, nullable)
- `workflow_id` (string, optional) — Workflow that owns this action.
- `type` (enum, optional) — Action type that selects the matching action configuration.
  - Allowed values: `SEND_EMAIL_TO_CUSTOMER`, `EXPORT_TO_ERP`, `SEND_WEBHOOK`
- `description` (string, optional, nullable) — Description of what this action does.
- `status` (enum, optional) — Status of the action.
  - Allowed values: `ACTIVE`, `INACTIVE`, `DRAFT`, `ARCHIVED`
- `created_at` (string, optional, nullable) — Date time when the action was created.
- `updated_at` (string, optional, nullable) — Date time when the action was last updated.
- `send_email_to_customer` (SendEmailToCustomer, optional) — Email action configuration used to send an email to the customer.
- `export_to_erp` (ExportToErpAction, optional) — Export-to-ERP action configuration. Used when type is EXPORT_TO_ERP.
- `send_webhook` (SendWebhookAction, optional) — Send-webhook action configuration. Used when type is SEND_WEBHOOK.

## Errors

### 401 Unauthorized Error

Unauthorized

- `type` (enum, required)
  - Allowed values: `API_ERROR`, `INVALID_REQUEST`
- `code` (enum, required)
  - Allowed values: `RESOURCE_NOT_FOUND`, `RESOURCES_NOT_FOUND`, `UNABLE_TO_PROCESS_INSTRUCTIONS`, `BAD_REQUEST`, `UNSUPPORTED_MEDIA_TYPE`, `RESOURCE_ALREADY_EXISTS`, `CUSTOM_FIELD_VALUE_ALREADY_EXISTS`, `COULD_NOT_CREATE_RESOURCE`, `COULD_NOT_UPDATE_RESOURCE`, `COULD_NOT_DELETE_RESOURCE`, `MISSING_VERSION`, `UNSUPPORTED_VERSION`, `UNAUTHORISED`, `CUSTOMER_NOT_FOUND`, `PLATFORM_NOT_FOUND`, `PRICING_PLAN_NOT_FOUND`, `PRODUCT_NOT_FOUND`, `PRODUCT_ITEM_NOT_FOUND`, `PRICING_NOT_FOUND`, `PRICING_ITEM_NOT_FOUND`, `USER_NOT_FOUND`, `METER_NOT_FOUND`, `METER_VALUE_NOT_FOUND`, `METER_PROPERTY_NOT_FOUND`, `PRICING_ITEM_SUMMARIES_NOT_FOUND`, `MISSING_ID`, `INVALID_ID`, `MISSING_REFERENCE`, `MISSING_FIELD`, `INVALID_FIELD`, `INVALID_OPERATION`, `INTERNAL_ERROR`, `USER_NOT_ALLOWED`, `IDEMPOTENCY_CHECK_FAILED`, `INVALID_REQUEST`
- `message` (string, required)
- `field` (string, optional, nullable)
- `resource_id` (string, optional, nullable)
- `resource_type` (enum, optional, nullable)
  - Allowed values: `CUSTOMER`, `CUSTOM_FIELD`, `PLATFORM`, `PLATFORM_UPTODATE`, `METER`, `METER_VALUE`, `METER_PROPERTY`, `METER_PROPERTY_VARIABLE`, `METER_VALUE_CALCULATION`, `INGEST_DATA`, `METER_DATA`, `CHARGE_DATA`, `PERSIST_DATA`, `ADJUSTMENT_DATA`, `PRODUCT_CATEGORY`, `PRODUCT`, `PRODUCT_ITEM`, `PRICING`, `PRICING_GROUP`, `PRICING_ITEM`, `PRICING_ITEM_CONFIG`, `PRICING_PLAN_SUBSCRIPTION`, `PRICING_PLAN_SUBSCRIPTION_GROUP`, `PRICING_PLAN_SCHEDULE`, `SEAT_ASSIGNMENT`, `SHIPPING_ADDRESS`, `PRICING_PLAN`, `PRICING_PLAN_VERSION`, `PRICING_PLAN_GROUP`, `QUOTE`, `QUOTE_VERSION`, `QUOTE_TEMPLATE`, `QUOTE_VERSION_SUMMARY`, `API_KEY`, `USER`, `ROLE`, `PROXY_USER`, `EXTERNAL_CREDENTIALS`, `TOKEN`, `INVOICE`, `E_INVOICE`, `PDF`, `BILLING_ENTITY`, `FEATURE`, `MEMBERSHIP`, `PAYMENT`, `PAYMENT_ACCEPTOR`, `PAYMENT_METHOD`, `PAYMENT_METHOD_OPTIONS`, `PAYMENT_SCHEDULE`, `PAYMENT_REQUEST`, `INTEGRATION`, `WEBHOOK`, `WEBHOOK_EVENT`, `FILE`, `FILE_PROCESSING_SETTINGS`, `TEAM`, `DOWNLOAD_URL`, `CSV_REPORT`, `REPORT`, `REPORT_GENERATE_REQUEST`, `REPORT_CONFIGURATION`, `REPORT_SUBSCRIPTION`, `REPORT_DEFINITION`, `ACCOUNT_GROUP`, `ENTITY`, `EVENT_TRACE`, `EVENT_TRACE_LINK`, `PRICING_CATEGORY`, `CONTACT`, `ALERT_RULE`, `ALERT`, `USAGE_LIMIT`, `AUDIT_RECORD`, `PORTAL_URL`, `AUTHENTICATION_PROVIDER`, `REPROCESS`, `APPROVAL_POLICY`, `APPROVAL_REQUEST`, `BULK_ACTION`, `COUPON`, `PROMOTION_CODE`, `WALLET`, `WALLET_TYPE`, `WALLET_GRANT`, `AUTO_TOPUP_CONFIG`, `WORKFLOW`, `WORKFLOW_TRIGGER`, `WORKFLOW_ACTION`, `WORKFLOW_ACTION_EXECUTION`, `CREDIT_TYPE`, `SIGNATURE_REQUEST`, `ATTACHMENT`, `DOCUMENT`, `EXCHANGE_RATE`

### 403 Forbidden Error

Forbidden

- `type` (enum, required)
  - Allowed values: `API_ERROR`, `INVALID_REQUEST`
- `code` (enum, required)
  - Allowed values: `RESOURCE_NOT_FOUND`, `RESOURCES_NOT_FOUND`, `UNABLE_TO_PROCESS_INSTRUCTIONS`, `BAD_REQUEST`, `UNSUPPORTED_MEDIA_TYPE`, `RESOURCE_ALREADY_EXISTS`, `CUSTOM_FIELD_VALUE_ALREADY_EXISTS`, `COULD_NOT_CREATE_RESOURCE`, `COULD_NOT_UPDATE_RESOURCE`, `COULD_NOT_DELETE_RESOURCE`, `MISSING_VERSION`, `UNSUPPORTED_VERSION`, `UNAUTHORISED`, `CUSTOMER_NOT_FOUND`, `PLATFORM_NOT_FOUND`, `PRICING_PLAN_NOT_FOUND`, `PRODUCT_NOT_FOUND`, `PRODUCT_ITEM_NOT_FOUND`, `PRICING_NOT_FOUND`, `PRICING_ITEM_NOT_FOUND`, `USER_NOT_FOUND`, `METER_NOT_FOUND`, `METER_VALUE_NOT_FOUND`, `METER_PROPERTY_NOT_FOUND`, `PRICING_ITEM_SUMMARIES_NOT_FOUND`, `MISSING_ID`, `INVALID_ID`, `MISSING_REFERENCE`, `MISSING_FIELD`, `INVALID_FIELD`, `INVALID_OPERATION`, `INTERNAL_ERROR`, `USER_NOT_ALLOWED`, `IDEMPOTENCY_CHECK_FAILED`, `INVALID_REQUEST`
- `message` (string, required)
- `field` (string, optional, nullable)
- `resource_id` (string, optional, nullable)
- `resource_type` (enum, optional, nullable)
  - Allowed values: `CUSTOMER`, `CUSTOM_FIELD`, `PLATFORM`, `PLATFORM_UPTODATE`, `METER`, `METER_VALUE`, `METER_PROPERTY`, `METER_PROPERTY_VARIABLE`, `METER_VALUE_CALCULATION`, `INGEST_DATA`, `METER_DATA`, `CHARGE_DATA`, `PERSIST_DATA`, `ADJUSTMENT_DATA`, `PRODUCT_CATEGORY`, `PRODUCT`, `PRODUCT_ITEM`, `PRICING`, `PRICING_GROUP`, `PRICING_ITEM`, `PRICING_ITEM_CONFIG`, `PRICING_PLAN_SUBSCRIPTION`, `PRICING_PLAN_SUBSCRIPTION_GROUP`, `PRICING_PLAN_SCHEDULE`, `SEAT_ASSIGNMENT`, `SHIPPING_ADDRESS`, `PRICING_PLAN`, `PRICING_PLAN_VERSION`, `PRICING_PLAN_GROUP`, `QUOTE`, `QUOTE_VERSION`, `QUOTE_TEMPLATE`, `QUOTE_VERSION_SUMMARY`, `API_KEY`, `USER`, `ROLE`, `PROXY_USER`, `EXTERNAL_CREDENTIALS`, `TOKEN`, `INVOICE`, `E_INVOICE`, `PDF`, `BILLING_ENTITY`, `FEATURE`, `MEMBERSHIP`, `PAYMENT`, `PAYMENT_ACCEPTOR`, `PAYMENT_METHOD`, `PAYMENT_METHOD_OPTIONS`, `PAYMENT_SCHEDULE`, `PAYMENT_REQUEST`, `INTEGRATION`, `WEBHOOK`, `WEBHOOK_EVENT`, `FILE`, `FILE_PROCESSING_SETTINGS`, `TEAM`, `DOWNLOAD_URL`, `CSV_REPORT`, `REPORT`, `REPORT_GENERATE_REQUEST`, `REPORT_CONFIGURATION`, `REPORT_SUBSCRIPTION`, `REPORT_DEFINITION`, `ACCOUNT_GROUP`, `ENTITY`, `EVENT_TRACE`, `EVENT_TRACE_LINK`, `PRICING_CATEGORY`, `CONTACT`, `ALERT_RULE`, `ALERT`, `USAGE_LIMIT`, `AUDIT_RECORD`, `PORTAL_URL`, `AUTHENTICATION_PROVIDER`, `REPROCESS`, `APPROVAL_POLICY`, `APPROVAL_REQUEST`, `BULK_ACTION`, `COUPON`, `PROMOTION_CODE`, `WALLET`, `WALLET_TYPE`, `WALLET_GRANT`, `AUTO_TOPUP_CONFIG`, `WORKFLOW`, `WORKFLOW_TRIGGER`, `WORKFLOW_ACTION`, `WORKFLOW_ACTION_EXECUTION`, `CREDIT_TYPE`, `SIGNATURE_REQUEST`, `ATTACHMENT`, `DOCUMENT`, `EXCHANGE_RATE`

## Types

### SendEmailToCustomer

Defines the email content, sender details, recipients, and template configuration used by the action.

- `integration_id` (string, optional) — Integration that provides the email delivery channel configuration.
- `use_template_subject` (boolean, optional) — When enabled, no subject override is sent to the email provider. Cannot be combined with `subject`. Defaults to true.
- `subject` (string, optional, nullable) — Subject line used for the email.
- `from` (EmailIdentifier, optional) — Sender address and display information for the email.
- `reply_to` (EmailIdentifier, optional) — Reply-to address and display information for the email.
- `support_email` (string, optional, nullable) — Support email address exposed to templates as the `support_email` variable. Falls back to the reply-to address when not set.
- `cc_recipients` (list of string, optional, nullable) — CC recipient email addresses.
- `bcc_recipients` (list of string, optional, nullable) — BCC recipient email addresses.
- `tags` (list of string, optional, nullable) — Optional tags for this workflow email. A maximum of 3 ASCII tags, each up to 128 characters.
- `template_name` (string, optional) — Template name used to render the email.
- `localize_template_names` (boolean, optional) — When enabled, the template name is localized based on the customer's locale. At send time the action looks up `<template_name>_<language>-<country>` (e.g. `credit.invoice_en-us`) and falls back to `<template_name>` when that localized template does not exist. Defaults to false.
- `variant` (enum, optional) — Template variant that selects the matching target-specific email configuration.
  - Allowed values: `INVOICE`, `PAYMENT`, `PRICING_PLAN_SUBSCRIPTION`, `WALLET`
- `date_format` (string, optional, nullable) — Optional format applied to date variables in the email (e.g. invoice_date, invoice_due_date). Uses Java DateTimeFormatter pattern syntax, for example "dd.MM.yyyy" or "yyyy-MM-dd". When omitted, dates are formatted as "MMMM d, yyyy" (e.g. "July 21, 2026").
- `invoice` (SendEmailInvoiceConfiguration, optional) — Invoice email settings used when the action runs for an invoice workflow.
- `payment` (SendEmailPaymentConfiguration, optional) — Payment email settings used when the action runs for a payment workflow.
- `pricing_plan_subscription` (SendEmailPricingPlanSubscriptionConfiguration, optional) — Pricing plan subscription email settings used when the action runs for a pricing plan subscription workflow.
- `wallet` (SendEmailWalletConfiguration, optional) — Wallet email settings used when the action runs for a wallet workflow.

### ExportToErpAction

Configures how an invoice (or, later, other resources) is exported to an ERP. The executor selects which integration performs the export.

- `executor` (enum, optional) — Selects which integration is responsible for performing the export.
  - Allowed values: `THIRD_PARTY`, `NATIVE`
- `integration_id` (string, optional, nullable) — ERP integration associated with this export. Currently informational only and does not affect execution.

### SendWebhookAction

Configures a webhook delivery action. The referenced webhook is invoked when the workflow runs.

- `webhook_id` (string, optional) — The webhook that is invoked when this action runs.

### EmailIdentifier

- `name` (string, optional, nullable)
- `email` (string, optional)

### SendEmailInvoiceConfiguration

Defines invoice-specific options for emails sent by the workflow action. Fields allowed/required depend on `type`.

- `type` (enum, optional) — Invoice email type.
  - Allowed values: `TO_FINAL`, `OVERDUE`, `UPCOMING_PAYMENT_REMINDER`
- `include_pdf` (boolean, optional) — Attach the invoice PDF to the email. Only applicable for TO_FINAL and OVERDUE
- `include_payment_link` (boolean, optional) — Include a payment link in the email. Only applicable for TO_FINAL and OVERDUE
- `include_customer_contacts_as_cc` (boolean, optional) — Add the customer's configured contacts as CC recipients. Defaults to false when absent.

### SendEmailPaymentConfiguration

Defines payment-specific options for emails sent by the workflow action.

- `include_customer_contacts_as_cc` (boolean, optional) — Controls whether the customer's configured contacts are added as CC recipients.

### SendEmailPricingPlanSubscriptionConfiguration

Defines subscription-specific options for emails sent by the workflow action.

- `include_customer_contacts_as_cc` (boolean, optional) — Controls whether the customer's configured contacts are added as CC recipients.

### SendEmailWalletConfiguration

Defines wallet-specific options for emails sent by the workflow action.

- `include_customer_contacts_as_cc` (boolean, optional) — Controls whether the customer's configured contacts are added as CC recipients.

## Examples

**Request**

```json
{
  "workflow_id": "work_JwDeeN0vxxHyVXCtJx1t",
  "type": "SEND_EMAIL_TO_CUSTOMER",
  "description": "Send the finalised invoice with a payment link",
  "status": "ACTIVE",
  "send_email_to_customer": {
    "integration_id": "intg_NwDeeN0vxxHypvCFXw1n",
    "use_template_subject": false,
    "subject": "Your Lumen AI invoice",
    "support_email": "support@lumen-ai.example.com",
    "template_name": "invoice-final",
    "variant": "INVOICE",
    "invoice": {
      "type": "TO_FINAL",
      "include_pdf": true,
      "include_payment_link": true,
      "include_customer_contacts_as_cc": true
    }
  }
}
```

**Response**

```json
{
  "object_type": "string",
  "id": "string",
  "workflow_id": "string",
  "type": "SEND_EMAIL_TO_CUSTOMER",
  "description": "string",
  "status": "ACTIVE",
  "created_at": "string",
  "updated_at": "string",
  "send_email_to_customer": {
    "integration_id": "string",
    "use_template_subject": true,
    "subject": "string",
    "from": {
      "name": "string",
      "email": "string"
    },
    "reply_to": {
      "name": "string",
      "email": "string"
    },
    "support_email": "string",
    "cc_recipients": [
      "string"
    ],
    "bcc_recipients": [
      "string"
    ],
    "tags": [
      "string"
    ],
    "template_name": "string",
    "localize_template_names": true,
    "variant": "INVOICE",
    "date_format": "string",
    "invoice": {
      "type": "TO_FINAL",
      "include_pdf": true,
      "include_payment_link": true,
      "include_customer_contacts_as_cc": true
    },
    "payment": {
      "include_customer_contacts_as_cc": true
    },
    "pricing_plan_subscription": {
      "include_customer_contacts_as_cc": true
    },
    "wallet": {
      "include_customer_contacts_as_cc": true
    }
  },
  "export_to_erp": {
    "executor": "THIRD_PARTY",
    "integration_id": "string"
  },
  "send_webhook": {
    "webhook_id": "string"
  }
}
```

**SDK Code**

```python WorkflowActions_postWorkflowActions_example
import requests

url = "https://test.api.solvimon.com/v1/workflow-actions"

payload = {
    "workflow_id": "work_JwDeeN0vxxHyVXCtJx1t",
    "type": "SEND_EMAIL_TO_CUSTOMER",
    "description": "Send the finalised invoice with a payment link",
    "status": "ACTIVE",
    "send_email_to_customer": {
        "integration_id": "intg_NwDeeN0vxxHypvCFXw1n",
        "use_template_subject": False,
        "subject": "Your Lumen AI invoice",
        "support_email": "support@lumen-ai.example.com",
        "template_name": "invoice-final",
        "variant": "INVOICE",
        "invoice": {
            "type": "TO_FINAL",
            "include_pdf": True,
            "include_payment_link": True,
            "include_customer_contacts_as_cc": True
        }
    }
}
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript WorkflowActions_postWorkflowActions_example
const url = 'https://test.api.solvimon.com/v1/workflow-actions';
const options = {
  method: 'POST',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"workflow_id":"work_JwDeeN0vxxHyVXCtJx1t","type":"SEND_EMAIL_TO_CUSTOMER","description":"Send the finalised invoice with a payment link","status":"ACTIVE","send_email_to_customer":{"integration_id":"intg_NwDeeN0vxxHypvCFXw1n","use_template_subject":false,"subject":"Your Lumen AI invoice","support_email":"support@lumen-ai.example.com","template_name":"invoice-final","variant":"INVOICE","invoice":{"type":"TO_FINAL","include_pdf":true,"include_payment_link":true,"include_customer_contacts_as_cc":true}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go WorkflowActions_postWorkflowActions_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://test.api.solvimon.com/v1/workflow-actions"

	payload := strings.NewReader("{\n  \"workflow_id\": \"work_JwDeeN0vxxHyVXCtJx1t\",\n  \"type\": \"SEND_EMAIL_TO_CUSTOMER\",\n  \"description\": \"Send the finalised invoice with a payment link\",\n  \"status\": \"ACTIVE\",\n  \"send_email_to_customer\": {\n    \"integration_id\": \"intg_NwDeeN0vxxHypvCFXw1n\",\n    \"use_template_subject\": false,\n    \"subject\": \"Your Lumen AI invoice\",\n    \"support_email\": \"support@lumen-ai.example.com\",\n    \"template_name\": \"invoice-final\",\n    \"variant\": \"INVOICE\",\n    \"invoice\": {\n      \"type\": \"TO_FINAL\",\n      \"include_pdf\": true,\n      \"include_payment_link\": true,\n      \"include_customer_contacts_as_cc\": true\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby WorkflowActions_postWorkflowActions_example
require 'uri'
require 'net/http'

url = URI("https://test.api.solvimon.com/v1/workflow-actions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"workflow_id\": \"work_JwDeeN0vxxHyVXCtJx1t\",\n  \"type\": \"SEND_EMAIL_TO_CUSTOMER\",\n  \"description\": \"Send the finalised invoice with a payment link\",\n  \"status\": \"ACTIVE\",\n  \"send_email_to_customer\": {\n    \"integration_id\": \"intg_NwDeeN0vxxHypvCFXw1n\",\n    \"use_template_subject\": false,\n    \"subject\": \"Your Lumen AI invoice\",\n    \"support_email\": \"support@lumen-ai.example.com\",\n    \"template_name\": \"invoice-final\",\n    \"variant\": \"INVOICE\",\n    \"invoice\": {\n      \"type\": \"TO_FINAL\",\n      \"include_pdf\": true,\n      \"include_payment_link\": true,\n      \"include_customer_contacts_as_cc\": true\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java WorkflowActions_postWorkflowActions_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://test.api.solvimon.com/v1/workflow-actions")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"workflow_id\": \"work_JwDeeN0vxxHyVXCtJx1t\",\n  \"type\": \"SEND_EMAIL_TO_CUSTOMER\",\n  \"description\": \"Send the finalised invoice with a payment link\",\n  \"status\": \"ACTIVE\",\n  \"send_email_to_customer\": {\n    \"integration_id\": \"intg_NwDeeN0vxxHypvCFXw1n\",\n    \"use_template_subject\": false,\n    \"subject\": \"Your Lumen AI invoice\",\n    \"support_email\": \"support@lumen-ai.example.com\",\n    \"template_name\": \"invoice-final\",\n    \"variant\": \"INVOICE\",\n    \"invoice\": {\n      \"type\": \"TO_FINAL\",\n      \"include_pdf\": true,\n      \"include_payment_link\": true,\n      \"include_customer_contacts_as_cc\": true\n    }\n  }\n}")
  .asString();
```

```php WorkflowActions_postWorkflowActions_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://test.api.solvimon.com/v1/workflow-actions', [
  'body' => '{
  "workflow_id": "work_JwDeeN0vxxHyVXCtJx1t",
  "type": "SEND_EMAIL_TO_CUSTOMER",
  "description": "Send the finalised invoice with a payment link",
  "status": "ACTIVE",
  "send_email_to_customer": {
    "integration_id": "intg_NwDeeN0vxxHypvCFXw1n",
    "use_template_subject": false,
    "subject": "Your Lumen AI invoice",
    "support_email": "support@lumen-ai.example.com",
    "template_name": "invoice-final",
    "variant": "INVOICE",
    "invoice": {
      "type": "TO_FINAL",
      "include_pdf": true,
      "include_payment_link": true,
      "include_customer_contacts_as_cc": true
    }
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp WorkflowActions_postWorkflowActions_example
using RestSharp;

var client = new RestClient("https://test.api.solvimon.com/v1/workflow-actions");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"workflow_id\": \"work_JwDeeN0vxxHyVXCtJx1t\",\n  \"type\": \"SEND_EMAIL_TO_CUSTOMER\",\n  \"description\": \"Send the finalised invoice with a payment link\",\n  \"status\": \"ACTIVE\",\n  \"send_email_to_customer\": {\n    \"integration_id\": \"intg_NwDeeN0vxxHypvCFXw1n\",\n    \"use_template_subject\": false,\n    \"subject\": \"Your Lumen AI invoice\",\n    \"support_email\": \"support@lumen-ai.example.com\",\n    \"template_name\": \"invoice-final\",\n    \"variant\": \"INVOICE\",\n    \"invoice\": {\n      \"type\": \"TO_FINAL\",\n      \"include_pdf\": true,\n      \"include_payment_link\": true,\n      \"include_customer_contacts_as_cc\": true\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift WorkflowActions_postWorkflowActions_example
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "workflow_id": "work_JwDeeN0vxxHyVXCtJx1t",
  "type": "SEND_EMAIL_TO_CUSTOMER",
  "description": "Send the finalised invoice with a payment link",
  "status": "ACTIVE",
  "send_email_to_customer": [
    "integration_id": "intg_NwDeeN0vxxHypvCFXw1n",
    "use_template_subject": false,
    "subject": "Your Lumen AI invoice",
    "support_email": "support@lumen-ai.example.com",
    "template_name": "invoice-final",
    "variant": "INVOICE",
    "invoice": [
      "type": "TO_FINAL",
      "include_pdf": true,
      "include_payment_link": true,
      "include_customer_contacts_as_cc": true
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://test.api.solvimon.com/v1/workflow-actions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```