Account
Post v1accountset supplier order
Replace the supplier order for an endpoint.
POST
/
v1
/
account
/
set-supplier-order
cURL
curl --request POST \
--url https://api.qubrics.com/v1/account/set-supplier-order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint_id": "<string>",
"supplier_order": [
"<string>"
]
}
'import requests
url = "https://api.qubrics.com/v1/account/set-supplier-order"
payload = {
"endpoint_id": "<string>",
"supplier_order": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint_id: '<string>', supplier_order: ['<string>']})
};
fetch('https://api.qubrics.com/v1/account/set-supplier-order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qubrics.com/v1/account/set-supplier-order"
payload := strings.NewReader("{\n \"endpoint_id\": \"<string>\",\n \"supplier_order\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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))
}{
"data": {
"endpoint_id": "<string>",
"supplier_order": [
"<string>"
]
},
"meta": {
"request_id": "<string>"
},
"ok": true
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "rate_limit_exceeded",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}Authorizations
Body
application/json
Was this page helpful?
⌘I
cURL
curl --request POST \
--url https://api.qubrics.com/v1/account/set-supplier-order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint_id": "<string>",
"supplier_order": [
"<string>"
]
}
'import requests
url = "https://api.qubrics.com/v1/account/set-supplier-order"
payload = {
"endpoint_id": "<string>",
"supplier_order": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({endpoint_id: '<string>', supplier_order: ['<string>']})
};
fetch('https://api.qubrics.com/v1/account/set-supplier-order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qubrics.com/v1/account/set-supplier-order"
payload := strings.NewReader("{\n \"endpoint_id\": \"<string>\",\n \"supplier_order\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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))
}{
"data": {
"endpoint_id": "<string>",
"supplier_order": [
"<string>"
]
},
"meta": {
"request_id": "<string>"
},
"ok": true
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "rate_limit_exceeded",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}