Philia: Generate Discount Code icon

Philia: Generate Discount Code

Generates a discount code for users or segments

Philia: Generate Discount Code

AI-generated

Summary

Posts a payload to Philia’s flow-state event endpoint for each incoming item. The UI declares Segment ID, Name, and Text as required, but the implementation reads a node parameter named payload to build the request.

Inputs

  • Segment ID (required) — String field declared by the node UI; the implementation does not read it directly.
  • Name (required) — String field declared by the node UI; the implementation does not read it directly.
  • Text (required) — String field declared by the node UI; the implementation does not read it directly.
  • Payload — The implementation uses the payload node parameter as the POST request body, though it is not declared in the supplied UI properties.
  • Philia API credentials (required) — Provides the base URL and API key used to authenticate and send the request.

Output shape

A list of items, one per incoming item, each containing request and response fields.

request is the payload sent to Philia; response is the API response. The implementation posts to /v1/api/integration/flow-state/event/add/.

Links

Discussion