Trace Connect APIs
- Introduction
- Authentication using JWT
- OAuth 2.0
- Basic APIs
- Advanced APIs
- Accounts
- Catalogs
- Forms
- Supply Chain
- Product Transactions
- Payment Transactions
Catalogs
Create Premium Endpoint
Create Premium endpoint allows you to create a new premium by making a POST request. Provide the required information in the request body, such as premium options, owner, name, type, amount, and other relevant details.
POST
/
catalogs
/
premiums
/
Copy
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>"
}'
Copy
{
"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
Body
application/json
Response
201 - application/json
The response is of type object
.
Copy
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>"
}'
Copy
{
"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>"
}
Assistant
Responses are generated using AI and may contain mistakes.