Manage offer (create or edit with automatic status determination)
curl --request POST \
--url https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offers": [
{
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": true,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
},
{
"id": 336372,
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": true,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
}
],
"guarantee_delivery_time": "1-2 hours"
}
'import requests
url = "https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage"
payload = {
"offers": [
{
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": True,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
},
{
"id": 336372,
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": True,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
}
],
"guarantee_delivery_time": "1-2 hours"
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
offers: [
{
price_per_step: 2,
amount: 1,
min_purchase_amount: '1',
data: {
'69': [],
'70': [],
'71': 'Grandmaster',
'72': 'Brazil',
'73': 7005,
'74': 'Handmade',
'78': 1,
'204': 200
},
marketplace_type: 2,
is_auto_activate_status: true,
outer_name: 'LoL Account with Rare Skins',
internal_name: 'LoL_Account_001',
description: 'Account with Officer Vi and Pharaoh Amumu skins',
credential_system_type_id: 1,
search_description: 'LoL account with rare skins'
},
{
id: 336372,
price_per_step: 2,
amount: 1,
min_purchase_amount: '1',
data: {
'69': [],
'70': [],
'71': 'Grandmaster',
'72': 'Brazil',
'73': 7005,
'74': 'Handmade',
'78': 1,
'204': 200
},
marketplace_type: 2,
is_auto_activate_status: true,
outer_name: 'LoL Account with Rare Skins',
internal_name: 'LoL_Account_001',
description: 'Account with Officer Vi and Pharaoh Amumu skins',
credential_system_type_id: 1,
search_description: 'LoL account with rare skins'
}
],
guarantee_delivery_time: '1-2 hours'
})
};
fetch('https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage', 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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage",
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([
'offers' => [
[
'price_per_step' => 2,
'amount' => 1,
'min_purchase_amount' => '1',
'data' => [
'69' => [
],
'70' => [
],
'71' => 'Grandmaster',
'72' => 'Brazil',
'73' => 7005,
'74' => 'Handmade',
'78' => 1,
'204' => 200
],
'marketplace_type' => 2,
'is_auto_activate_status' => true,
'outer_name' => 'LoL Account with Rare Skins',
'internal_name' => 'LoL_Account_001',
'description' => 'Account with Officer Vi and Pharaoh Amumu skins',
'credential_system_type_id' => 1,
'search_description' => 'LoL account with rare skins'
],
[
'id' => 336372,
'price_per_step' => 2,
'amount' => 1,
'min_purchase_amount' => '1',
'data' => [
'69' => [
],
'70' => [
],
'71' => 'Grandmaster',
'72' => 'Brazil',
'73' => 7005,
'74' => 'Handmade',
'78' => 1,
'204' => 200
],
'marketplace_type' => 2,
'is_auto_activate_status' => true,
'outer_name' => 'LoL Account with Rare Skins',
'internal_name' => 'LoL_Account_001',
'description' => 'Account with Officer Vi and Pharaoh Amumu skins',
'credential_system_type_id' => 1,
'search_description' => 'LoL account with rare skins'
]
],
'guarantee_delivery_time' => '1-2 hours'
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage"
payload := strings.NewReader("{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"message": "ok",
"received": 3,
"successfully": 2,
"results": [
{
"id": 335838,
"status": "ok",
"message": "Failed to process offer"
}
]
}
}{
"message": "Validation error. (and 3 more errors)",
"errors": {
"offers.0.price_per_step": [
"The offers.0.price_per_step field must be a number."
],
"offers.0.data.71": [
{
"error": "Invalid value for field: Rank",
"type": "string",
"allowed_values": [
"Challenger",
"Grandmaster",
"Master",
"Diamond",
"Silver",
"Bronze",
"Emerald",
"Platinum",
"Iron",
"Gold"
]
}
],
"offers.0.data.74": [
{
"error": "Invalid value for field: Leveling",
"type": "string",
"allowed_values": [
"Handmade",
"Automated"
]
}
]
}
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Rate limit exceeded: max 200 offers per minute.",
"budget_used": 180,
"budget_limit": 200,
"offers_requested": 50
}Offers
Manage offer (create or edit with automatic status determination)
Create or edit offers with full field validation including custom data fields. Status is automatically determined based on validation results and account capabilities. Status field is prohibited in request - it will be set automatically. * Automatic status determination:
-
- Gold marketplace: Always set to Active if validation passes
-
- Account marketplace:
-
- If data field validation fails → Need Details
-
- If MULTIPLE credential system and no active credentials → Not Active
-
- If all validations pass → On Review (for moderation)
Operation type (add/edit):
-
- Operation type is determined automatically by presence of ‘id’ field in offer object
-
- If ‘id’ is present → edit operation (only provided fields will be updated)
-
- If ‘id’ is missing → add operation (all required fields must be provided)
- Edit existing offers or create new ones. Each offer is validated and processed separately. Results are returned as an array with status for each offer.
POST
/
api
/
shop
/
marketplace
/
products
/
{productId}
/
offers
/
manage
Manage offer (create or edit with automatic status determination)
curl --request POST \
--url https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offers": [
{
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": true,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
},
{
"id": 336372,
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": true,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
}
],
"guarantee_delivery_time": "1-2 hours"
}
'import requests
url = "https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage"
payload = {
"offers": [
{
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": True,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
},
{
"id": 336372,
"price_per_step": 2,
"amount": 1,
"min_purchase_amount": "1",
"data": {
"69": [],
"70": [],
"71": "Grandmaster",
"72": "Brazil",
"73": 7005,
"74": "Handmade",
"78": 1,
"204": 200
},
"marketplace_type": 2,
"is_auto_activate_status": True,
"outer_name": "LoL Account with Rare Skins",
"internal_name": "LoL_Account_001",
"description": "Account with Officer Vi and Pharaoh Amumu skins",
"credential_system_type_id": 1,
"search_description": "LoL account with rare skins"
}
],
"guarantee_delivery_time": "1-2 hours"
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
offers: [
{
price_per_step: 2,
amount: 1,
min_purchase_amount: '1',
data: {
'69': [],
'70': [],
'71': 'Grandmaster',
'72': 'Brazil',
'73': 7005,
'74': 'Handmade',
'78': 1,
'204': 200
},
marketplace_type: 2,
is_auto_activate_status: true,
outer_name: 'LoL Account with Rare Skins',
internal_name: 'LoL_Account_001',
description: 'Account with Officer Vi and Pharaoh Amumu skins',
credential_system_type_id: 1,
search_description: 'LoL account with rare skins'
},
{
id: 336372,
price_per_step: 2,
amount: 1,
min_purchase_amount: '1',
data: {
'69': [],
'70': [],
'71': 'Grandmaster',
'72': 'Brazil',
'73': 7005,
'74': 'Handmade',
'78': 1,
'204': 200
},
marketplace_type: 2,
is_auto_activate_status: true,
outer_name: 'LoL Account with Rare Skins',
internal_name: 'LoL_Account_001',
description: 'Account with Officer Vi and Pharaoh Amumu skins',
credential_system_type_id: 1,
search_description: 'LoL account with rare skins'
}
],
guarantee_delivery_time: '1-2 hours'
})
};
fetch('https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage', 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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage",
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([
'offers' => [
[
'price_per_step' => 2,
'amount' => 1,
'min_purchase_amount' => '1',
'data' => [
'69' => [
],
'70' => [
],
'71' => 'Grandmaster',
'72' => 'Brazil',
'73' => 7005,
'74' => 'Handmade',
'78' => 1,
'204' => 200
],
'marketplace_type' => 2,
'is_auto_activate_status' => true,
'outer_name' => 'LoL Account with Rare Skins',
'internal_name' => 'LoL_Account_001',
'description' => 'Account with Officer Vi and Pharaoh Amumu skins',
'credential_system_type_id' => 1,
'search_description' => 'LoL account with rare skins'
],
[
'id' => 336372,
'price_per_step' => 2,
'amount' => 1,
'min_purchase_amount' => '1',
'data' => [
'69' => [
],
'70' => [
],
'71' => 'Grandmaster',
'72' => 'Brazil',
'73' => 7005,
'74' => 'Handmade',
'78' => 1,
'204' => 200
],
'marketplace_type' => 2,
'is_auto_activate_status' => true,
'outer_name' => 'LoL Account with Rare Skins',
'internal_name' => 'LoL_Account_001',
'description' => 'Account with Officer Vi and Pharaoh Amumu skins',
'credential_system_type_id' => 1,
'search_description' => 'LoL account with rare skins'
]
],
'guarantee_delivery_time' => '1-2 hours'
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage"
payload := strings.NewReader("{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
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://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skycoach.gg/api/shop/marketplace/products/{productId}/offers/manage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"offers\": [\n {\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n },\n {\n \"id\": 336372,\n \"price_per_step\": 2,\n \"amount\": 1,\n \"min_purchase_amount\": \"1\",\n \"data\": {\n \"69\": [],\n \"70\": [],\n \"71\": \"Grandmaster\",\n \"72\": \"Brazil\",\n \"73\": 7005,\n \"74\": \"Handmade\",\n \"78\": 1,\n \"204\": 200\n },\n \"marketplace_type\": 2,\n \"is_auto_activate_status\": true,\n \"outer_name\": \"LoL Account with Rare Skins\",\n \"internal_name\": \"LoL_Account_001\",\n \"description\": \"Account with Officer Vi and Pharaoh Amumu skins\",\n \"credential_system_type_id\": 1,\n \"search_description\": \"LoL account with rare skins\"\n }\n ],\n \"guarantee_delivery_time\": \"1-2 hours\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"message": "ok",
"received": 3,
"successfully": 2,
"results": [
{
"id": 335838,
"status": "ok",
"message": "Failed to process offer"
}
]
}
}{
"message": "Validation error. (and 3 more errors)",
"errors": {
"offers.0.price_per_step": [
"The offers.0.price_per_step field must be a number."
],
"offers.0.data.71": [
{
"error": "Invalid value for field: Rank",
"type": "string",
"allowed_values": [
"Challenger",
"Grandmaster",
"Master",
"Diamond",
"Silver",
"Bronze",
"Emerald",
"Platinum",
"Iron",
"Gold"
]
}
],
"offers.0.data.74": [
{
"error": "Invalid value for field: Leveling",
"type": "string",
"allowed_values": [
"Handmade",
"Automated"
]
}
]
}
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Rate limit exceeded: max 200 offers per minute.",
"budget_used": 180,
"budget_limit": 200,
"offers_requested": 50
}Authorizations
Headers
Body
application/json
Upper bound of the delivery time range in milliseconds, must be greater than guarantee_delivery_time. Optional; applied only when the product delivery_time_format is range (Gold marketplace), ignored otherwise. Without it the offer keeps a single delivery time.
Example:
172800000