Parcel Public API v2
  • Homepage
  • Discord Server
  • Customer Support
  • 🔑Obtain API Key
    • Create an API Key
    • Developer Portal
  • 🏢Hub Endpoints
    • Fetch Hub Information
    • Update Hub Information
  • 🛍️Product Endpoints
    • Fetch Product Information
    • Create a new Product
    • Update an existing Product
    • Delete an existing Product
  • 📝Whitelist Endpoints
    • Check Whitelist
    • Give Whitelist
    • Transfer Whitelist
    • Revoke Whitelist
Powered by GitBook
On this page

Was this helpful?

  1. Whitelist Endpoints

Transfer Whitelist

Transfer a product license from a user to a different user

PreviousGive WhitelistNextRevoke Whitelist

Last updated 11 months ago

Was this helpful?

This endpoint facilitates the transfer of a product license from one user (User A) to another user (User B) within your hub. By executing this route, you can seamlessly reassign product access, ensuring that licenses are directed to the correct individuals.

Transfer a license from one user to a different user

PATCH https://v2.parcelroblox.com/whitelist/transfer

Example of how you have to pass the body parameters:

Headers

Name
Type
Description

Authorization*

string

prod_DGzVhVsrqNJi4b0Chd9mMPUI9

Content-Type

string

application/json

Request Body

Name
Type
Description

product_id*

string

Product ID

sender.userid*

string

Roblox or Discord User ID

sender.userid_type*

string

"roblox" or "discord"

recipient.userid*

string

Roblox or Discord User ID

recipient.userid_type*

string

"roblox" or "discord"

If everything was able to process properly:

{ "status": "200", "message": "OK", "data": { "sender": string, "recipient": string, "product_id": string, "state": "License has been transferred" } }

If you did not follow the schema:

{ "status": "400", "message": "Your payload did not pass the Schema validation.", "error": string, "data": {} }

If the sender does not own the license:

{ "status": "400", "message": "Sender does not own this license.", "data": { } }

If the recipient already owns the license:

{ "status": "400", "message": "Recipient already owns license.", "data": { } }

If you provided an invalid User ID Type:

{ "status": "400", "message": "Invalid type.\nAvailable types: roblox, discord", "data": {} }

If you provided an invalid authorization key:

{ "status": "401", "message": "Invalid authorization key." }

If you did not provide an authorization key:

{ "status": "401", "message": "No authorization key was provided." }

If the product ID that you supplied does not exist:

{ "status": "404", "message": "Product does not exist.", "data": {} }

If the user ID that you supplied does not exist within our Database:

{ "status": "404", "message": "No Roblox Account associated to this Discord User ID.", "data": {} }

If something was wrong on our end:

{ "status": "500", "message": "Internal Server Error" }
📝