Membership Card API
Create/Update Membership Card
POST
https://api.getlivepass.com/membership-card/<id>
Create or update Membership Card. Email notification will be sent when email
is valid and silent=false
Headers
Body
Full Name of the customer
Email Address of the customer
Phone Number (International)
Set to true
to NOT send any communication.
Set to false
to send email or push update.
Balance Currency (real or virtual)
String to encode with selected barcode_type
(Usually equal to id
)
Request
curl 'https://api.getlivepass.com/membership-card/VIP-1' \
-H 'Authorization: API_KEY <your_api_key>' \
--data-raw '{"full_name":"John Appleseed","email":"john.appleseed@gmail.com","phone_number":"+971501234567","barcode_type":"qr","barcode_data":"VIP-1","silent":false,"balance_amount":500,"balance_currency":"points","membership_tier":"Gold"}'
const axios = require('axios');
const apiKey = '<your_api_key>';
const id = 'VIP-1';
const data = {
full_name: "John Appleseed",
email: "john.appleseed@gmail.com",
phone_number: "+971501234567",
barcode_type: "qr",
barcode_data: "VIP-1",
silent: false,
balance_amount: 500,
balance_currency: "points",
membership_tier: "Gold"
};
axios.post(`https://api.getlivepass.com/membership-card/${id}`, data, {
headers: {
'Authorization': `API_KEY ${apiKey}`,
'Content-Type': 'application/json'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error making request:', error);
});
Response
{
"type": "membership-card",
"id": "VIP-1",
"body": {
"full_name": "John Appleseed",
"email": "john.appleseed@gmail.com",
"phone_number": "+971501234567",
"barcode_type": "qr",
"barcode_data": "VIP-1",
"silent": false,
"balance_amount": 500,
"balance_currency": "points",
"membership_tier": "Gold"
},
"message": "Pass requested"
}
{
"message": {
"_original": {
"full_name": "John Appleseed",
"email": "john.appleseed@gmail.com",
"phone_number": "+971501234567",
"barcode_data": "VIP-1",
"silent": false,
"balance_amount": "500",
"balance_currency": "points",
"membership_tier": "Gold"
},
"details": [
{
"message": "\"barcode_type\" is required",
"path": [
"barcode_type"
],
"type": "any.required",
"context": {
"label": "barcode_type",
"key": "barcode_type"
}
}
]
}
}
{
"Message": "User is not authorized to access this resource with an explicit deny"
}
Use this endpoint to send Membership or update information on existing pass. User will be notified when you change:
Get Membership Card
GET
https://api.getlivepass.com/membership-card/<id>
Get Membership Card info including links to preview or download.
Headers
Request
curl 'https://api.getlivepass.com/membership-card/VIP-1' \
-H 'Authorization: API_KEY <your_api_key>'
const axios = require('axios');
const apiKey = '<your_api_key>';
const id = 'VIP-1';
axios.get(`https://api.getlivepass.com/membership-card/${id}`, {
headers: {
'Authorization': `API_KEY ${apiKey}`
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error making request:', error);
});
Response
{
"message": "Pass retrieved",
"body": {
"version": 5,
"created_at": 1723920099,
"membership_tier": "Gold",
"barcode_data": "VIP-1",
"barcode_type": "qr",
"silent": false,
"full_name": "John Appleseed",
"email": "john.appleseed@gmail.com",
"token": "[MASKED]",
"balance_amount": 500,
"last_updated_at": 1724001197,
"phone_number": "+971501234567",
"balance_currency": "points",
"type": "membership-card"
},
"links": {
"web": "https://getlivepass.com/view/xxxxx",
"apple": "https://getlivepass.com/apple/xxxxx"
},
"id": "VIP-1",
"type": "membership-card"
}
{
"message": "Pass not found"
}
{
"Message": "User is not authorized to access this resource with an explicit deny"
}
Do you have any questions, feedback or ideas? Contact us by email or live chat.
Last updated