Skip to main content

Campaign details

GET /me/campaigns/:campaignId HTTP/1.1
Accept: application/vnd.aplazame.v1+json
Authorization: Bearer api_private_key
Host: api.aplazame.com
ParameterTypeRequiredDescription
:merchantIdhashYesid of the store to perform action with.
:campaignIdhashYesid of the campaign to perform action with.

Response

HTTP/1.1 200 OK
Content-Type: application/json
X-Aplazame-Media-Type: aplazame.v1
{
"id": "c994e03e42d24be7bf6e1fcbad3334c0",
"name": "Summertime",
"start_date": "2016-06-01T00:00:00",
"end_date": "2016-08-31T23:59:59",
"interest": 2500,
"partial": true,
"num_instalments": [1, 2, 3, 5, 8],
"created": "2016-03-10T11:08:57.265971"
}
ParameterTypeDescription
idhashHostname id
namestringCampaign name
start_dateISO 8601Start date of the campaign
end_dateISO 8601End date of the campaign
interestdecimalInterest discount rate
partialBooleanDetermines if the campaign applies to all products