V1
Campaign
Contain all the operations related to campaigns.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| x-retool-groups | header | string | false | ‘none’ |
| body | body | CampaignRequest | false | ‘none’ |
Request body - instance of CampaignRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | true | none |
| commercialProfile | string | true | none |
| subchannels | [string] | true | none |
| conditions | [CampaignRules] | false | [CampaignRules] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created | Campaign |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
| 500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| campaign_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Campaign |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
| 404 | Not Found | Custom information not found | ApiErrorResponse |
| 500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| x-retool-groups | header | string | false | ‘none’ |
| campaign_id | path | integer | true | ‘none’ |
| body | body | CampaignRequest | false | ‘none’ |
Request body - instance of CampaignRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | true | none |
| commercialProfile | string | true | none |
| subchannels | [string] | true | none |
| conditions | [CampaignRules] | false | [CampaignRules] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | No Content | None |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
| 404 | Not Found | Custom information not found | ApiErrorResponse |
| 500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| x-retool-groups | header | string | false | ‘none’ |
| campaign_id | path | integer | true | ‘none’ |
| body | body | CampaignChangeStatusRequest | false | ‘none’ |
Request body - instance of CampaignChangeStatusRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | false | none |
| Property | Values |
|---|---|
| status | one of [ACTIVATED, DEACTIVATED] |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | No content. | None |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
| 500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| x-retool-groups | header | string | false | ‘none’ |
| body | body | CampaignSearchRequest | false | ‘none’ |
Request body - instance of CampaignSearchRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| active | boolean | false | none |
| subchannels | [string] | false | none |
| dealers | [integer] | false | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response. | [Campaign] |
| 204 | No Content | No content. | None |
| 401 | Unauthorized | Unauthorized | string |
200 - instance of Campaign
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | false | none |
| name | string | false | none |
| commercialProfile | string | false | none |
| active | boolean | false | none |
| subchannels | [SubchannelSummary] | false | [SubchannelSummary] |
| conditions | [CampaignRules] | false | [CampaignRules] |
401 - JsonObject
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | false | none |
| name | string | false | none |
| commercialProfile | string | false | none |
| active | boolean | false | none |
| subchannels | [SubchannelSummary] | false | [SubchannelSummary] |
| conditions | [CampaignRules] | false | [CampaignRules] |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| x-retool-groups | header | string | false | ‘none’ |
| users | query | string | false | ‘none’ |
| subchannel | query | string | false | ‘none’ |
| campaign | query | string | false | ‘none’ |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response. | [CampaignUser] |
| 204 | No Content | No content. | None |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
200 - instance of CampaignUser
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | true | none |
| code | string | true | none |
| commercialName | string | false | none |
| subchannel | string | false | none |
| systemAccounts | [SystemAccount] | false | [A Dealer’s system account] |
| campaign | object | false | A commercial campaign |
| » id | integer | false | none |
| » name | string | false | none |
| » commercialProfile | string | false | none |
| » active | boolean | false | none |
| » subchannels | [Subchannel] | false | [A subchannel] |
| » conditions | any | false | none |
400 - instance of ApiErrorResponse
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| restErrors | [ApiError] | false | none |
401 - JsonObject
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| restErrors | [ApiError] | false | none |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | ChangeCampaignRequest | true | ‘none’ |
Request body - instance of ChangeCampaignRequest
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | integer | false | none |
| requestId | integer | false | none |
| dealerId | [DealerId] | false | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | No content. | None |
| 400 | Bad Request | Bad request | ApiErrorResponse |
| 401 | Unauthorized | Unauthorized | string |
| 500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Endpoints
Default
Dealer
Fiscal data
Custom information
Campaign
Subchannel
Store
Iam
Brand
Request