younifyd
Menu

List Validation Rules

List Validation Rules

GET/v1/validation-rules

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the List Validation Rules action (under Validation Rules).
  3. Fill in the fields below, then reference the result from later steps as {{listValidationRules.response.data}}.

Request

Query parameters

limitinteger

Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.

pageinteger

Which page of results to return. The lowest value is `1`.

orderstring

This is a property that controls the sorting direction of the results. Sort the results using one of the filtering options, where the dash `-` preceding a sorting option means sorting in a descending order.

One ofcreated_at-created_atupdated_at-updated_atname-name

start_datestring (date-time)

Timestamp representing the date and time which results must start on. Represented in ISO 8601 format.

end_datestring (date-time)

Timestamp representing the date and time which results must end on. Represented in ISO 8601 format.

Response

Returns 200 with an object. Read it in later steps with {{listValidationRules.response.data.<field>}}.

objectstring

The type of the object represented by JSON. This object stores information about validation rules.

Default "list"

data_refstring

Identifies the name of the attribute that contains the array of validation rules.

Default "data"

dataarray<any>

An array of validation rules.

totalinteger

Total number of validation rules in the project.

json
{
  "object": "list",
  "data_ref": "data",
  "data": [
    null
  ],
  "total": 0
}

Need more? See the Voucherify guide for connection setup and behaviour shared by every action.