All of the endpoints are for people who own Parcel Pro. If you want to buy Parcel Pro, please go to this link to retrieve it. This is a fork from an older version of this API that is out-of-date, and I will be updating this every single API update.
At the beginning of your script, put the following to initialize HttpService:
local HttpService = game:GetService("HttpService")
Whitelist Endpoints
POST
/whitelist/add
local response = HttpService:RequestAsync({
Url = 'https://papi.parcelroblox.com/whitelist/add',
Method = "POST",
Headers = {
['Content-Type'] = 'application/json',
['hub-secret-key'] = hubSecretKey,
},
Body = HttpService:JSONEncode({productID = productId, robloxID = robloxId})
})
if response.Success then
-- put stuff here
else
print("The request failed:", response.StatusCode, response.StatusMessage)
end
POST
/whitelist/remove
local productId = "put-your-product-id-here"
local robloxId = "put-your-roblox-id-here"
local hubSecretKey = "put-your-hub-secret-key-here"
local response = HttpService:RequestAsync({
Url = 'https://papi.parcelroblox.com/whitelist/remove',
Method = "POST",
Headers = {
['Content-Type'] = 'application/json',
['hub-secret-key'] = hubSecretKey,
},
Body = HttpService:JSONEncode({productID = productId, robloxID = robloxId})
})
if response.Success then
-- put stuff here
else
print("The request failed:", response.StatusCode, response.StatusMessage)
end
POST
/whitelist/check
local productId = "put-your-product-id-here"
local robloxId = "put-your-roblox-id-here"
local hubSecretKey = "put-your-hub-secret-key-here"
local response = HttpService:RequestAsync({
Url = 'https://papi.parcelroblox.com/whitelist/check',
Method = "POST",
Headers = {
['Content-Type'] = 'application/json',
['hub-secret-key'] = hubSecretKey,
},
Body = HttpService:JSONEncode({productID = productId, robloxID = robloxId})
})
if response.Success then
local decodedData = HttpService:JSONDecode(response.Body)
print(decodedData.data.owned)
else
print("The request failed:", response.StatusCode, response.StatusMessage)
end
Hub Endpoints
Coming very soon, to a parcel near to you.
Product Endpoints
Coming very soon, to a parcel near to you.