Skip to main content

List Campaigns

Purpose: Retrieves a list of all available financing campaigns for a specific client. Optionally, the list can be filtered to include only campaigns applicable for a given amount.


Endpoint Details

  • HTTP Verb: GET
  • URL Segment: /v3/client/{clientId}/campaigns
  • OpenAPI Spec: View in Swagger UI
  • Notes: If the optional creditAmount parameter is provided, the list will be filtered to only include campaigns that are applicable for the given amount.

Path Parameters

This method uses a parameter passed directly in the URL path.

Field NameDescriptionTypeAdditional Information
clientIdThe unique ID of the client whose campaigns are to be listed.string ($uuid)Required.

Query Parameters

This method uses an optional parameter passed in the URL query string for filtering.

Field NameDescriptionTypeAdditional Information
creditAmountFilters the campaigns to only those that can be used for an order of this specific amount.number ($double)Optional. Non-decimal.

Request Body

No Request Body Required.


Successful Response (200 OK)

The API returns a JSON array. This array contains one or more objects, each representing a single Campaign entity upon successful retrieval.

Field NameDescriptionTypeAdditional Information
campaignIdThe unique identifier for the campaign.integer ($int32)
campaignNameThe descriptive name of the campaign.string
monthlyCostThe estimated monthly cost for the campaign.number ($double)
nominalInterestThe nominal interest rate.number ($double)
effectiveInterestThe effective interest rate (true cost of credit).number ($double)
administrationFeeThe recurring monthly administration fee.number ($double)
numberOfPaymentsThe total number of payments in the payment plan.integer ($int32)
paymentFreeMonthsThe number of initial months with no required payments.integer ($int32)
totalCostThe total cost of the credit over the full duration.number ($double)
setupFeeA one-time fee charged at the start.number ($double)
durationThe total duration of the campaign in months.integer ($int32)
interestFreeMonthsThe number of initial months where interest is waived.integer ($int32)
isHybridCampaignFlag indicating if the campaign is a hybrid type.boolean
creditCostThe total cost of the credit (interest + fees).number ($double)

Example Successful Response (200 OK)

The response is an array of campaign objects. (Note: Example values are illustrative.)

[
{
"campaignId": 100001,
"campaignName": "12 Month Interest Free",
"monthlyCost": 4583.33,
"nominalInterest": 0.0,
"effectiveInterest": 5.95,
"administrationFee": 0.0,
"numberOfPayments": 12,
"paymentFreeMonths": 0,
"totalCost": 55295.00,
"setupFee": 0.0,
"duration": 12,
"interestFreeMonths": 12,
"isHybridCampaign": false,
"creditCost": 295.0
},
{
"campaignId": 100002,
"campaignName": "24 Month Low Interest",
"monthlyCost": 2500.0,
"nominalInterest": 8.9,
"effectiveInterest": 12.50,
"administrationFee": 29.0,
"numberOfPayments": 24,
"paymentFreeMonths": 0,
"totalCost": 61200.00,
"setupFee": 0.0,
"duration": 24,
"interestFreeMonths": 0,
"isHybridCampaign": false,
"creditCost": 6200.0
}
]

Error Responses

The following HTTP status codes are explicitly documented for this method:

Status CodeDescription
400 Bad RequestThe request was invalid (e.g., clientId is not recognized, or creditAmount format is invalid).
500 Internal Server ErrorAn unexpected error occurred on the server.