Skip to main content
POST
/
v1
/
exports
Create Export
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/exports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "exported_object": "voucher",
  "parameters": {
    "order": "-created_at",
    "fields": [
      "code"
    ],
    "filters": {
      "junction": "and",
      "created_at": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "updated_at": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "created_date": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "active": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "redemption_status": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "start_date": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "expiration_date": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "validity_day_of_week": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "code": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "categories": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "vouchers": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "holder_id": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "is_referral_code": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "published_for_customer_id": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "validity_timeframe": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      },
      "category_ids": {
        "conditions": {
          "$in": [
            "<string>"
          ],
          "$not_in": [
            "<string>"
          ],
          "$is": [
            "<string>"
          ],
          "$is_days_ago": [
            "<string>"
          ],
          "$is_days_in_future": [
            "<string>"
          ],
          "$is_not": [
            "<string>"
          ],
          "$has_value": [
            "<string>"
          ],
          "$is_unknown": [
            "<string>"
          ],
          "$contains": [
            "<string>"
          ],
          "$not_contain": [
            "<string>"
          ],
          "$starts_with": [
            "<string>"
          ],
          "$ends_with": [
            "<string>"
          ],
          "$more_than": [
            "<string>"
          ],
          "$less_than": [
            "<string>"
          ],
          "$more_than_ago": [
            "<string>"
          ],
          "$less_than_ago": [
            "<string>"
          ],
          "$more_than_future": [
            "<string>"
          ],
          "$less_than_future": [
            "<string>"
          ],
          "$more_than_equal": [
            "<string>"
          ],
          "$less_than_equal": [
            "<string>"
          ],
          "$after": [
            "<string>"
          ],
          "$before": [
            "<string>"
          ],
          "$count": [
            "<string>"
          ],
          "$count_less": [
            "<string>"
          ],
          "$count_more": [
            "<string>"
          ]
        }
      }
    },
    "campaign_id": "camp_0dJG7cCAjquzcxWmZ634bA0C"
  }
}'
{
"id": "<string>",
"object": "export",
"created_at": "2023-11-07T05:31:56Z",
"status": "SCHEDULED",
"channel": "<string>",
"result": null,
"user_id": "<string>",
"exported_object": "voucher",
"parameters": {
"order": "-created_at",
"fields": [
"code"
],
"filters": {
"junction": "and",
"created_at": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"updated_at": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"created_date": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"active": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"redemption_status": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"start_date": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"expiration_date": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"validity_day_of_week": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"code": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"categories": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"vouchers": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"holder_id": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"is_referral_code": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"published_for_customer_id": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"validity_timeframe": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
},
"category_ids": {
"conditions": {
"$in": [
"<any>"
],
"$not_in": [
"<any>"
],
"$is": [
"<any>"
],
"$is_days_ago": [
"<any>"
],
"$is_days_in_future": [
"<any>"
],
"$is_not": [
"<any>"
],
"$has_value": [
"<any>"
],
"$is_unknown": [
"<any>"
],
"$contains": [
"<any>"
],
"$not_contain": [
"<any>"
],
"$starts_with": [
"<any>"
],
"$ends_with": [
"<any>"
],
"$more_than": [
"<any>"
],
"$less_than": [
"<any>"
],
"$more_than_ago": [
"<any>"
],
"$less_than_ago": [
"<any>"
],
"$more_than_future": [
"<any>"
],
"$less_than_future": [
"<any>"
],
"$more_than_equal": [
"<any>"
],
"$less_than_equal": [
"<any>"
],
"$after": [
"<any>"
],
"$before": [
"<any>"
],
"$count": [
"<any>"
],
"$count_less": [
"<any>"
],
"$count_more": [
"<any>"
]
}
}
},
"campaign_id": "camp_0dJG7cCAjquzcxWmZ634bA0C"
}
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Specify the details of the export that you would like to create.

  • Export Vouchers
  • Export Redemptions
  • Export Customers
  • Export Publications
  • Export Orders
  • Export Points Expirations
  • Export Vouchers Transactions

Request body schema for POST v1/exports.

exported_object
enum<string>
default:voucher
required

The type of object to be exported.

Available options:
voucher
parameters
object

Response

Returns export object and URL of CSV file.

  • Export Vouchers Scheduled
  • Export Redemptions Scheduled
  • Export Customers Scheduled
  • Export Publications Scheduled
  • Export Orders Scheduled
  • Export Points Expiration Scheduled
  • Export Vouchers Transactions Scheduled

Response body schema for POST v1/exports.

id
string
required

Unique export ID.

object
enum<string>
default:export
required

The type of object being represented. This object stores information about the export.

Available options:
export
created_at
string<date-time>
required

Timestamp representing the date and time when the export was scheduled in ISO 8601 format.

status
enum<string>
default:SCHEDULED
required

Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.

Available options:
SCHEDULED
result
object | null
required

Contains the URL of the CSV file.

user_id
string
required

Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE.

exported_object
enum<string>
default:voucher
required

The type of object to be exported.

Available options:
voucher
channel
string

The channel through which the export was triggered.

parameters
object
I