List seller suppliers
curl --request GET \
--url https://api.orbita.melonn.com/seller-suppliers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.orbita.melonn.com/seller-suppliers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.orbita.melonn.com/seller-suppliers', 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.orbita.melonn.com/seller-suppliers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.orbita.melonn.com/seller-suppliers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.orbita.melonn.com/seller-suppliers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbita.melonn.com/seller-suppliers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"name": "Main Supplier Co.",
"id_type": "NIT",
"id_number": "900123456",
"active": true,
"phone_number": "+573001112233",
"notifications_email": "ops@example.com",
"external_id": "SUP-001",
"warehouse_configurations": [
{
"id": 10,
"warehouse_id": 3,
"unpacking_type": "IMMEDIATE",
"validation_type": "STRICT"
},
{
"id": 11,
"warehouse_id": 5,
"unpacking_type": "DEFERRED",
"validation_type": "FREE"
}
]
},
{
"id": 124,
"name": "Secondary Supplier LLC",
"id_type": "NIT",
"id_number": "900654321",
"active": true,
"phone_number": "+573004445566",
"notifications_email": "contact@example.com",
"external_id": null
}
],
"meta_data": {
"page": 0,
"per_page": 10,
"total_count": 2
}
}{
"statusCode": 400,
"errorCode": "BAD_REQUEST",
"message": "querystring.per_page must be number"
}Supplier orders
List seller suppliers
Returns a page of your suppliers. Use a supplier’s id or external_id as
seller_supplier_id when creating supplier orders.
warehouse_configurations is only present when the supplier has at least one
configuration; suppliers without configurations do not include the key (it is not an
empty array). A missing key means the default applies in every warehouse (DEFERRED /
FREE). Configurations are ordered by warehouse_id.
The supplier’s returns address is deprecated and is not returned.
GET
/
seller-suppliers
List seller suppliers
curl --request GET \
--url https://api.orbita.melonn.com/seller-suppliers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.orbita.melonn.com/seller-suppliers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.orbita.melonn.com/seller-suppliers', 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.orbita.melonn.com/seller-suppliers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.orbita.melonn.com/seller-suppliers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.orbita.melonn.com/seller-suppliers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbita.melonn.com/seller-suppliers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"name": "Main Supplier Co.",
"id_type": "NIT",
"id_number": "900123456",
"active": true,
"phone_number": "+573001112233",
"notifications_email": "ops@example.com",
"external_id": "SUP-001",
"warehouse_configurations": [
{
"id": 10,
"warehouse_id": 3,
"unpacking_type": "IMMEDIATE",
"validation_type": "STRICT"
},
{
"id": 11,
"warehouse_id": 5,
"unpacking_type": "DEFERRED",
"validation_type": "FREE"
}
]
},
{
"id": 124,
"name": "Secondary Supplier LLC",
"id_type": "NIT",
"id_number": "900654321",
"active": true,
"phone_number": "+573004445566",
"notifications_email": "contact@example.com",
"external_id": null
}
],
"meta_data": {
"page": 0,
"per_page": 10,
"total_count": 2
}
}{
"statusCode": 400,
"errorCode": "BAD_REQUEST",
"message": "querystring.per_page must be number"
}Authorizations
Query Parameters
Page number, starting at 0.
Number of suppliers per page.
Returns only the supplier with this external_id (your own supplier id).