younifyd
Menu

Create Additional Cost

Create additional cost

POST/v1/additional_costs

Use it in a workflow

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

Request

Request body

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

namestringrequired

The internal name used in API requests.

titlestringrequired

The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.

descriptionstringrequired

A description of this additional cost.

subscribedApplicationsIdsarray<integer (int64)>

A list of the IDs of the applications that are subscribed to this additional cost.

typestring

The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session.

One ofsessionitembothDefault "session"

json
{
  "name": "shippingFee",
  "title": "Shipping fee",
  "description": "A shipping fee",
  "subscribedApplicationsIds": [
    3,
    13
  ],
  "type": "session"
}

Response

Returns 201 with an object. Read it in later steps with {{createAdditionalCost.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.

namestring

The internal name used in API requests.

titlestring

The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.

descriptionstring

A description of this additional cost.

subscribedApplicationsIdsarray<integer (int64)>

A list of the IDs of the applications that are subscribed to this additional cost.

typestring

The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session.

One ofsessionitembothDefault "session"

json
{
  "id": 6,
  "created": {},
  "accountId": 3886,
  "name": "shippingFee",
  "title": "Shipping fee",
  "description": "A shipping fee",
  "subscribedApplicationsIds": [
    3,
    13
  ],
  "type": "session"
}

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