Transformation

Create

Create a new Transformation record.

post/api/cp/transformation

Request body

idinteger

Id

card_idstring required

Card Id

prefixstring

Prefix

prefix_set_idinteger

Prefix Set Id

profit_type'absolute' | 'relative' | 'percent'

Profit Type

costnumber

Cost

percentnumber

Percent

edit_max_costnumber

Edit Max Cost

priorityinteger required

Priority

new_namestring

New Name

mcdinteger

Mcd

pulseinteger

Pulse

cost_connectnumber

Cost Connect

roundinginteger

Rounding

apply_tostring

Apply To

actionstring

Action

statusstring

Status

Example request

{
  "id": 12345,
  "card_id": 1,
  "prefix": "example_prefix",
  "prefix_set_id": 1,
  "profit_type": "absolute",
  "cost": 99.99,
  "percent": 99.99,
  "edit_max_cost": 99.99,
  "priority": 1,
  "new_name": "example_new_name",
  "mcd": 1,
  "pulse": 1,
  "cost_connect": 99.99,
  "rounding": 1,
  "apply_to": "example_apply_to",
  "action": "example_action",
  "status": "Active"
}

Response

Successful response

statusstring

Operation status

Example response

{
  "id": 12345,
  "status": "OK"
}

Changes