younifyd
Menu

Import Coupons

Import coupons

POST/v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Import Coupons action (under management).
  3. Fill in the fields below, then reference the result from later steps as {{importCoupons.response.data}}.

Request

Path parameters

applicationIdinteger (int64)required

The ID of the Application. It is displayed in your Talon.One deployment URL.

campaignIdinteger (int64)required

The ID of the campaign. It is displayed in your Talon.One deployment URL.

Query parameters

skipDuplicatesboolean

An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`.

Request body

Enter the body as JSON in the step's Body field.

upFilestring (csv)

The file containing the data that is being imported.

json
{
  "upFile": "string"
}

Response

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

idinteger (int64)

The internal ID of this entity.

createdstring (date-time)

The time this entity was created.

accountIdinteger (int64)

The ID of the account that owns this entity.

userIdinteger (int64)

The ID of the user associated with this entity.

entitystring

The name of the entity that was imported.

amountinteger (int64)

The number of values that were imported.

json
{
  "id": 6,
  "created": {},
  "accountId": 3886,
  "userId": 388,
  "entity": "AttributeAllowedList",
  "amount": 10
}

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