List delivery methods
curl --request GET \
--url https://api.moonup.gg/v1/offers/delivery-methodsimport requests
url = "https://api.moonup.gg/v1/offers/delivery-methods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonup.gg/v1/offers/delivery-methods', 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/delivery-methods",
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/delivery-methods"
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/delivery-methods")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonup.gg/v1/offers/delivery-methods")
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{
"delivery_methods": [
{
"key": "activation_code",
"label": "<string>",
"description": "<string>",
"version": 123,
"buyer_fields": [
{
"key": "<string>",
"label": "<string>",
"type": "string",
"required": true,
"filterable": true,
"multiple": true,
"enum_values": [
"<string>"
],
"catalog_key": "<string>",
"min": 123,
"max": 123
}
]
}
]
}Catalog
List delivery methods
The global list a listing’s delivery_method is picked from. A
category may narrow it — the schema’s requirements.delivery_types[]
says which keys it accepts.
GET
/
v1
/
offers
/
delivery-methods
List delivery methods
curl --request GET \
--url https://api.moonup.gg/v1/offers/delivery-methodsimport requests
url = "https://api.moonup.gg/v1/offers/delivery-methods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonup.gg/v1/offers/delivery-methods', 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/delivery-methods",
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/delivery-methods"
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/delivery-methods")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonup.gg/v1/offers/delivery-methods")
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{
"delivery_methods": [
{
"key": "activation_code",
"label": "<string>",
"description": "<string>",
"version": 123,
"buyer_fields": [
{
"key": "<string>",
"label": "<string>",
"type": "string",
"required": true,
"filterable": true,
"multiple": true,
"enum_values": [
"<string>"
],
"catalog_key": "<string>",
"min": 123,
"max": 123
}
]
}
]
}Response
200 - application/json
OK
Show child attributes
Show child attributes
