POST
/
catalogs
/
premiums
curl --request POST \
  --url http://localhost:3000/connect/v1/catalogs/premiums/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "options": [
    {
      "id": "<string>",
      "name": "<string>",
      "amount": 123,
      "is_active": true,
      "creator": "<string>",
      "updater": "<string>"
    }
  ],
  "category": "PAYOUT",
  "name": "<string>",
  "type": "PER_TRANSACTION",
  "amount": 123,
  "included": true,
  "dependant_on_card": true,
  "applicable_activity": "BUY",
  "calculation_type": "NORMAL",
  "is_active": true,
  "creator": "<string>",
  "updater": "<string>",
  "owner": "<string>"
}'
{
  "id": "<string>",
  "options": [
    {
      "id": "<string>",
      "updated_on": "2023-11-07T05:31:56Z",
      "created_on": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "amount": 123,
      "is_active": true,
      "creator": "<string>",
      "updater": "<string>"
    }
  ],
  "updated_on": "2023-11-07T05:31:56Z",
  "created_on": "2023-11-07T05:31:56Z",
  "category": "PAYOUT",
  "name": "<string>",
  "type": "PER_TRANSACTION",
  "amount": 123,
  "included": true,
  "dependant_on_card": true,
  "applicable_activity": "BUY",
  "calculation_type": "NORMAL",
  "is_active": true,
  "creator": "<string>",
  "updater": "<string>",
  "owner": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 100
id
string
options
object[]
category
enum<string>
Available options:
PAYOUT,
TRANSACTION
type
enum<string>
Available options:
PER_TRANSACTION,
PER_KG,
PER_UNIT_CURRENCY,
PER_FARMER
amount
number | null
included
boolean
dependant_on_card
boolean
applicable_activity
enum<string>
Available options:
BUY,
SELL
calculation_type
enum<string>
Available options:
NORMAL,
MANUAL,
OPTIONS
is_active
boolean
creator
string
updater
string
owner
string

Response

201 - application/json
name
string
required
Required string length: 1 - 100
id
string
options
object[]
updated_on
string
created_on
string
category
enum<string>
Available options:
PAYOUT,
TRANSACTION
type
enum<string>
Available options:
PER_TRANSACTION,
PER_KG,
PER_UNIT_CURRENCY,
PER_FARMER
amount
number | null
included
boolean
dependant_on_card
boolean
applicable_activity
enum<string>
Available options:
BUY,
SELL
calculation_type
enum<string>
Available options:
NORMAL,
MANUAL,
OPTIONS
is_active
boolean
creator
string
updater
string
owner
string