Node.js
import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.resellerInvites.update("INVITE_ID");
<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->resellerInvites->update('INVITE_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.resellerInvites.update("INVITE_ID")
curl --request PUT \
--url https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Discord partners",
"tierId": "<string>",
"maxUses": 123,
"endsAt": "2026-12-31T23:59:00Z",
"enabled": true
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}"
payload := strings.NewReader("{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "c0cc4271-d0b7-4612-9efc-ae511653d21f",
"name": "Discord partners",
"code": "WTBCHZEHHWsj",
"tierId": "53272267-b8de-4f7f-9c0e-00f69122b91e",
"tierName": "Gold",
"maxUses": 50,
"uses": 0,
"endsAt": "2027-06-30 23:59:00",
"enabled": true,
"live": true
},
"meta": {
"panel": {
"enabled": true,
"currency": "USD",
"minTopup": 25
},
"address": "https://northwind.myshoply.gg/resellers",
"joinAddress": "https://northwind.myshoply.gg/resellers/join/",
"shoplyAddress": "https://northwind.myshoply.gg/resellers",
"balanceHeld": 0,
"tiers": [
{
"id": "53272267-b8de-4f7f-9c0e-00f69122b91e",
"name": "Gold",
"discount": 12.5,
"resellers": 0,
"spent30": 0
}
],
"limits": {
"invites": 2,
"invitesLive": 1
},
"bounds": {
"minTopup": 5,
"maxTopup": 100000
},
"currencies": [
{
"code": "AED",
"name": "UAE dirham"
},
{
"code": "ARS",
"name": "Argentine peso"
}
]
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Resellers
Update an invite link
Only what is sent changes: send enabled: false to switch a link off. Its address stays the same.
Needs the resellers.write permission (Change Resellers).
PUT
/
stores
/
{storeId}
/
resellers
/
invites
/
{inviteId}
Node.js
import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.resellerInvites.update("INVITE_ID");
<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->resellerInvites->update('INVITE_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.resellerInvites.update("INVITE_ID")
curl --request PUT \
--url https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Discord partners",
"tierId": "<string>",
"maxUses": 123,
"endsAt": "2026-12-31T23:59:00Z",
"enabled": true
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}"
payload := strings.NewReader("{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/resellers/invites/{inviteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Discord partners\",\n \"tierId\": \"<string>\",\n \"maxUses\": 123,\n \"endsAt\": \"2026-12-31T23:59:00Z\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "c0cc4271-d0b7-4612-9efc-ae511653d21f",
"name": "Discord partners",
"code": "WTBCHZEHHWsj",
"tierId": "53272267-b8de-4f7f-9c0e-00f69122b91e",
"tierName": "Gold",
"maxUses": 50,
"uses": 0,
"endsAt": "2027-06-30 23:59:00",
"enabled": true,
"live": true
},
"meta": {
"panel": {
"enabled": true,
"currency": "USD",
"minTopup": 25
},
"address": "https://northwind.myshoply.gg/resellers",
"joinAddress": "https://northwind.myshoply.gg/resellers/join/",
"shoplyAddress": "https://northwind.myshoply.gg/resellers",
"balanceHeld": 0,
"tiers": [
{
"id": "53272267-b8de-4f7f-9c0e-00f69122b91e",
"name": "Gold",
"discount": 12.5,
"resellers": 0,
"spent30": 0
}
],
"limits": {
"invites": 2,
"invitesLive": 1
},
"bounds": {
"minTopup": 5,
"maxTopup": 100000
},
"currencies": [
{
"code": "AED",
"name": "UAE dirham"
},
{
"code": "ARS",
"name": "Argentine peso"
}
]
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Authorizations
Headers
Path Parameters
Body
application/json

