Activate Points
curl --request POST \
--url https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profileId": "f90a1da5-c072-48b7-a9ea-eb35c5dd506b",
"startDate": "2020-02-08 00:00:00",
"endDate": "2020-02-08 00:00:00"
}
'import requests
url = "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate"
payload = {
"profileId": "f90a1da5-c072-48b7-a9ea-eb35c5dd506b",
"startDate": "2020-02-08 00:00:00",
"endDate": "2020-02-08 00:00:00"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profileId: 'f90a1da5-c072-48b7-a9ea-eb35c5dd506b',
startDate: '2020-02-08 00:00:00',
endDate: '2020-02-08 00:00:00'
})
};
fetch('https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profileId' => 'f90a1da5-c072-48b7-a9ea-eb35c5dd506b',
'startDate' => '2020-02-08 00:00:00',
'endDate' => '2020-02-08 00:00:00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate"
payload := strings.NewReader("{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Member points activated",
"errors": {},
"data": null,
"status": 200
}{
"message": "Error message string",
"errors": {
"ExceptionString": [
"Invalid Field"
]
},
"data": null,
"status": 400
}{
"detail": "Authentication Failed"
}Members
Activate Points
Updates the status of the points from Pending to Active. When setToPending flag is true, the duration in which the points will be in Pending status must be specified between 0-24 hours. When it is 0, the endpoint must be run manually (otherwise, the points earned will remain in Pending status). When the duration is between 1-24 hours, the points stay in Pending status only for the defined period. This endpoint can be configured to run automatically to activate the points. Note: Points in the Pending status reflect in the account balance but they can be redeemed only after they reach the defined threshold value and is in Active status.
POST
/
v1
/
members
/
points-activate
Activate Points
curl --request POST \
--url https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"profileId": "f90a1da5-c072-48b7-a9ea-eb35c5dd506b",
"startDate": "2020-02-08 00:00:00",
"endDate": "2020-02-08 00:00:00"
}
'import requests
url = "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate"
payload = {
"profileId": "f90a1da5-c072-48b7-a9ea-eb35c5dd506b",
"startDate": "2020-02-08 00:00:00",
"endDate": "2020-02-08 00:00:00"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profileId: 'f90a1da5-c072-48b7-a9ea-eb35c5dd506b',
startDate: '2020-02-08 00:00:00',
endDate: '2020-02-08 00:00:00'
})
};
fetch('https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profileId' => 'f90a1da5-c072-48b7-a9ea-eb35c5dd506b',
'startDate' => '2020-02-08 00:00:00',
'endDate' => '2020-02-08 00:00:00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate"
payload := strings.NewReader("{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vanilla-dev02-loyalty.fabric.zone/api/v1/members/points-activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profileId\": \"f90a1da5-c072-48b7-a9ea-eb35c5dd506b\",\n \"startDate\": \"2020-02-08 00:00:00\",\n \"endDate\": \"2020-02-08 00:00:00\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Member points activated",
"errors": {},
"data": null,
"status": 200
}{
"message": "Error message string",
"errors": {
"ExceptionString": [
"Invalid Field"
]
},
"data": null,
"status": 400
}{
"detail": "Authentication Failed"
}Authorizations
Body
application/json
Details required to activate points
Response
OK
Response Details
Was this page helpful?
