Read one offer
curl --request GET \
--url https://api.moonup.gg/v1/offers/{id}import requests
url = "https://api.moonup.gg/v1/offers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonup.gg/v1/offers/{id}', 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://api.moonup.gg/v1/offers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonup.gg/v1/offers/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonup.gg/v1/offers/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonup.gg/v1/offers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seller_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"price": 123,
"currency": "<string>",
"attributes": {},
"images": [
"<string>"
],
"tags": [
"<string>"
],
"delivery_type": "instant",
"manual_delivery_value": 123,
"manual_delivery_unit": "<string>",
"manual_delivery_instructions": "<string>",
"status": "draft",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"rejection_reason_code": "<string>",
"rejection_note": "<string>",
"seller_instructions": "<string>",
"delivery_method": "<string>",
"price_per_unit": 123,
"stock_quantity": 123,
"min_order_quantity": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"game_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"game_slug": "<string>",
"category_slug": "<string>",
"available_units": 123,
"product_scale": "unit",
"units": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "available"
}
]
}{
"error": "not_found"
}Offers
Read one offer
Public while the listing is active. Send your key to read your own
listing in any status — it then also carries units, which an
anonymous reader never sees.
GET
/
v1
/
offers
/
{id}
Read one offer
curl --request GET \
--url https://api.moonup.gg/v1/offers/{id}import requests
url = "https://api.moonup.gg/v1/offers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonup.gg/v1/offers/{id}', 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://api.moonup.gg/v1/offers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonup.gg/v1/offers/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonup.gg/v1/offers/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonup.gg/v1/offers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seller_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"price": 123,
"currency": "<string>",
"attributes": {},
"images": [
"<string>"
],
"tags": [
"<string>"
],
"delivery_type": "instant",
"manual_delivery_value": 123,
"manual_delivery_unit": "<string>",
"manual_delivery_instructions": "<string>",
"status": "draft",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"rejection_reason_code": "<string>",
"rejection_note": "<string>",
"seller_instructions": "<string>",
"delivery_method": "<string>",
"price_per_unit": 123,
"stock_quantity": 123,
"min_order_quantity": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"game_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"game_slug": "<string>",
"category_slug": "<string>",
"available_units": 123,
"product_scale": "unit",
"units": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "available"
}
]
}{
"error": "not_found"
}Path Parameters
Response
OK
Your own listing, as the write calls answer with it.
Available options:
instant, manual Available options:
draft, pending_moderation, active, paused, reserved, sold, rejected, removed, archived Why moderation refused it, when it did.
Available options:
unit, thousand, million, null Yours only — an anonymous reader never receives this, and it never carries the goods themselves.
Show child attributes
Show child attributes
