Create Coupon Collection

Create а coupon collection

Options

Body
Values to create a coupon collection

Request body which must comply to the following JSON Schema:

{
  "required" : [ "defaultCoupon", "name" ],
  "type" : "object",
  "properties" : {
    "name" : {
      "type" : "string",
      "description" : "Name of the coupons collection",
      "example" : "10%OFF"
    },
    "defaultCoupon" : {
      "type" : "string",
      "description" : "Default coupons collection name",
      "example" : "Winter"
    },
    "expirationDate" : {
      "type" : "string",
      "description" : "Specify an expiration date for the coupon collection in RFC3339 format. Use null to remove the expiration date.",
      "format" : "date-time",
      "example" : "2022-01-02T00:00:00Z"
    },
    "remainingDaysAlert" : {
      "type" : "integer",
      "description" : "Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number. Use null to disable alerts.",
      "example" : 5
    },
    "remainingCouponsAlert" : {
      "type" : "integer",
      "description" : "Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number. Use null to disable alerts.",
      "example" : 5
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.