### List Item Options (Python) Source: https://docs.quoter.com/ A Python example using the 'requests' library to get item options. Ensure the 'requests' library is installed. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_options', headers = headers) print(r.json()) ``` -------------------------------- ### List Items with Go HTTP Client Source: https://docs.quoter.com/ This Go example demonstrates making a GET request to the /items endpoint using the standard net/http package. Note that the request body is not typically used for GET requests, and the example includes a placeholder for `jsonReq` which should be omitted or handled appropriately. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/items", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Supplier using Go Source: https://docs.quoter.com/ This Go example shows how to make a GET request to retrieve supplier details using the standard 'net/http' package. It includes setting up request headers. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/suppliers/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Item Option using Go Source: https://docs.quoter.com/ Example of fetching an item option in Go using the net/http package. Note the setup for headers and the HTTP client. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_options/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Suppliers with Go HTTP Client Source: https://docs.quoter.com/ An example using Go's standard net/http package to list suppliers. Similar to listing items, this is a GET request and error handling is simplified. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/datafeeds/suppliers", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Supplier Items with Go HTTP Client Source: https://docs.quoter.com/ Example of making a GET request to list supplier items using Go's standard net/http package. Note that the request body is not used for GET requests and the error handling is omitted for brevity. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/datafeeds/supplier_items", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Item Tier using Python Source: https://docs.quoter.com/ This Python example uses the requests library to get information about a specific item tier. It sends a GET request with the required Accept and Authorization headers. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_tiers/{id}', headers = headers) print(r.json()) ``` -------------------------------- ### Request Specific Fields (Example) Source: https://docs.quoter.com/ This example demonstrates how to use the `fields` query parameter to retrieve only specific fields from an API response. It shows a GET request for item ID and name. ```http GET https://api.quoter.com/v1/items?fields=id,name ``` -------------------------------- ### Fetch Contact using Go Source: https://docs.quoter.com/ Provides a basic Go example for making a GET request to fetch contact details. Note that error handling and response body processing are omitted for brevity. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/contacts/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Categories using Python Source: https://docs.quoter.com/ A Python example using the requests library to get a list of categories. It shows how to set the 'Accept' and 'Authorization' headers. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/categories', headers = headers) print(r.json()) ``` -------------------------------- ### List Categories using cURL Source: https://docs.quoter.com/ This example shows how to list categories using cURL, including the necessary GET method and headers for authorization and content type. ```bash # You can also use wget curl -X GET https://api.quoter.com/v1/categories \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### List Item Group Item Assignments (Go) Source: https://docs.quoter.com/ This Go code example shows how to make a GET request for item group assignments. It includes setting up the request headers and client. Note that the `jsonReq` variable is a placeholder and needs to be defined. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_group_item_assignments", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Item Tiers using Python Requests Source: https://docs.quoter.com/ A Python example using the requests library to get a list of item tiers. It configures the necessary 'Accept' and 'Authorization' headers for the GET request. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_tiers', headers = headers) print(r.json()) ``` -------------------------------- ### List Item Option Values in Python Source: https://docs.quoter.com/ A Python example using the 'requests' library to get item option values. Remember to include the 'Accept' and 'Authorization' headers in your request. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_option_values', headers = headers) print(r.json()) ``` -------------------------------- ### List Suppliers using Python Requests Source: https://docs.quoter.com/ A Python example using the requests library to list suppliers. It shows how to define headers and send a GET request to the Quoter API endpoint. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/suppliers', headers = headers) print(r.json()) ``` -------------------------------- ### Item Response Example Source: https://docs.quoter.com/ This is an example of a successful 200 OK response when fetching item details. It includes various fields describing the item. ```json { "allow_decimal_quantities": true, "category": "SSDs", "category_id": "cat_OcThl8SOeE8w6JYUznfrnQGdp94", "code": "MZ-V7S1T0B/AM", "cost_decimal": 50.5, "cost_type": "amount", "created_at": "2019-08-24T14:15:22Z", "description": "The 970 EVO Plus reaches sequential read/write speeds up to 3,500/3,300 MB/s, up to 53% faster than the 970 EVO.", "id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "internal_note": "Check warehouse for inventory before ordering.", "manufacturer": "Samsung", "manufacturer_id": "manu_OcThlEWcbhAG52u3vLJodwnV88k", "modified_at": "2019-08-24T14:15:22Z", "name": "SAMSUNG 970 EVO PLUS M.2 2280 PCIe Gen 3.0 x4", "percentage_price_category_ids": [ "cat_OcThlTV6Tama8RH5Zh4Jfw1fhJC" ], "percentage_price_decimal": 50.5, "price_decimal": 50.5, "pricing_scheme": "per_unit", "quantity_help_tip": "Enter the number of units required.", "recurring": true, "recurring_interval": "annually", "restrict_discounting": true, "show_option_prices": true, "sku": "N82E16820147743", "supplier": "Newegg", "supplier_id": "sup_OcThlLwzLAM7m5eK1WEKkXUQZtm", "taxable": true, "weight_decimal": 50.5 } ``` -------------------------------- ### List Quote Templates using cURL Source: https://docs.quoter.com/ A command-line example using cURL to list quote templates. It specifies the GET method and includes necessary headers for authentication and content type. ```bash # You can also use wget curl -X GET https://api.quoter.com/v1/quote_templates \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### List Item Groups (Python) Source: https://docs.quoter.com/ A Python example using the 'requests' library to get item groups. Make sure to set the 'Accept' and 'Authorization' headers correctly. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_groups', headers = headers) print(r.json()) ``` -------------------------------- ### Example Response for Item Option Values Source: https://docs.quoter.com/ This is an example of a successful (200 OK) response when listing item option values. It includes a 'data' array containing the item option value objects. ```json { "data": [ { "code": "MPN123", "cost_decimal": "50.50", "cost_type": "amount", "created_at": "2019-08-24T14:15:22Z", "id": "iov_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "item_id": "item_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "item_option_id": "iopt_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "modified_at": "2019-08-24T14:15:22Z", "name": "1TB", "price_decimal": "50.50", "pricing_scheme": "amount" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Example Response for Creating a Line Item Source: https://docs.quoter.com/ This is an example of a successful response when creating a line item. ```json { "category": "Desktop", "created_at": "2019-08-24T14:15:22Z", "description": "Item Description", "id": "litm_2r5WHJ1RvX8aCEyhQA6VhWpLuAb", "manufacturer": "Acme Corp", "modified_at": "2019-08-24T14:15:22Z", "name": "My Item", "part_number": "string", "quantity": 0, "recurring": true, "supplier": "Acme Supplier", "supplier_sku": "string", "taxable": true, "unit_cost": 0, "unit_price": 0 } ``` -------------------------------- ### Example Response for Item Group Source: https://docs.quoter.com/ This is an example of a successful 200 OK response when retrieving or updating an item group. ```json { "created_at": "2019-08-24T14:15:22Z", "id": "igrp_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "modified_at": "2019-08-24T14:15:22Z", "name": "West Coast" } ``` -------------------------------- ### Example Response for Listing Manufacturers Source: https://docs.quoter.com/ This is an example of a successful response when listing manufacturers. It includes a list of manufacturer objects and pagination information. ```json { "data": [ { "created_at": "2019-08-24T14:15:22Z", "id": "manu_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "modified_at": "2019-08-24T14:15:22Z", "name": "Samsung" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Create Item Tier Request Body Example Source: https://docs.quoter.com/ This is an example of a successful response body when creating an item tier. It includes details such as cost, creation timestamp, and item ID. ```json { "cost_decimal": "50.50", "cost_type": "amount", "created_at": "2019-08-24T14:15:22Z", "id": "tier_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "item_id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "lower_boundary": 0, "modified_at": "2019-08-24T14:15:22Z", "price_decimal": "50.50" } ``` -------------------------------- ### List Item Options (Go) Source: https://docs.quoter.com/ This Go code demonstrates how to make a GET request to retrieve item options using the standard 'net/http' package. It includes setting headers and performing the client request. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_options", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Refresh Access and Refresh Tokens (Go) Source: https://docs.quoter.com/ A Go example demonstrating how to refresh tokens via a POST request. It includes setting the `Accept` and `Authorization` headers. Error handling is omitted. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: refresh_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/auth/refresh", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Quote Templates using Go Source: https://docs.quoter.com/ Initiates an HTTP GET request to list quote templates. This snippet demonstrates setting up the request with headers and a client. Error handling for the client.Do call is omitted for brevity. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/quote_templates", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Manufacturer Details (Python) Source: https://docs.quoter.com/ A Python example using the requests library to get manufacturer information. It includes setting necessary headers for the API call. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/manufacturers/{id}', headers = headers) print(r.json()) ``` -------------------------------- ### Fetch Item Group Details (Go) Source: https://docs.quoter.com/ Example of fetching item group details using Go's standard net/http package. This snippet demonstrates setting up the request and client. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_groups/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Create Item Option using Go HTTP Client Source: https://docs.quoter.com/ This Go code demonstrates creating an item option using the standard `net/http` package. It sets up the request headers and body. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/item_options", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Item using Python Source: https://docs.quoter.com/ A Python example using the 'requests' library to retrieve item information. It shows how to pass headers for authorization and content negotiation. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/items/{id}', headers = headers) print(r.json()) ``` -------------------------------- ### Fetch Item using cURL Source: https://docs.quoter.com/ A command-line example using cURL to fetch item details. This is useful for quick testing and scripting. Ensure the 'Authorization' header is correctly formatted. ```bash # You can also use wget curl -X GET https://api.quoter.com/v1/items/{id} \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### Create Item using Go HTTP Client Source: https://docs.quoter.com/ This Go code demonstrates creating an item using the standard net/http package. It constructs a POST request to the /items endpoint, sets the necessary headers, and prepares the request body. Error handling for the HTTP request and response is omitted for brevity. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/items", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Manufacturers (Go HTTP Client) Source: https://docs.quoter.com/ Example of using Go's standard HTTP client to list manufacturers. Ensure correct headers are set. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/manufacturers", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Contacts using curl Source: https://docs.quoter.com/ This command-line example uses `curl` to retrieve a list of contacts. It specifies the GET method, the API endpoint, and includes the necessary Accept and Authorization headers. ```shell # You can also use wget curl -X GET https://api.quoter.com/v1/contacts \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### Fetch Category Details (Go) Source: https://docs.quoter.com/ This Go code snippet shows how to make a GET request to fetch category details. It includes setting up the HTTP client, request, and headers. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/categories/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Item Group Item Assignment using cURL Source: https://docs.quoter.com/ This command-line example uses cURL to send a GET request. It's useful for retrieving assignment details quickly or for scripting purposes. ```bash curl -X GET https://api.quoter.com/v1/item_group_item_assignments/{id} \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### List Item Tiers with cURL Source: https://docs.quoter.com/ Use this command to list all available pricing or configuration tiers for items. Ensure you include the Authorization header. ```bash curl -X GET https://api.quoter.com/v1/item_tiers \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### Create Item using cURL Source: https://docs.quoter.com/ This example shows how to create an item using the cURL command-line tool. It specifies the POST method, the endpoint URL, and includes the required Content-Type, Accept, and Authorization headers. The request body is not included in this command. ```bash # You can also use wget curl -X POST https://api.quoter.com/v1/items \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer: access_token' ``` -------------------------------- ### Fetch Item Group Item Assignment using Python Requests Source: https://docs.quoter.com/ A Python example using the 'requests' library to fetch an item assignment. This method is efficient for retrieving data via HTTP GET requests. ```python import requests headers = { 'Accept': 'application/json', 'Authorization': 'Bearer: access_token' } r = requests.get('https://api.quoter.com/v1/item_group_item_assignments/{id}', headers = headers) print(r.json()) ``` -------------------------------- ### Create Category with Go HTTP Client Source: https://docs.quoter.com/ This Go program illustrates creating a category using the standard net/http package. It demonstrates setting up request headers and sending the POST request. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/categories", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Manufacturer Details (Go) Source: https://docs.quoter.com/ This Go code demonstrates how to make an HTTP GET request to fetch manufacturer details. It sets up the request headers and uses the standard http client. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/manufacturers/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### List Categories using Go Source: https://docs.quoter.com/ This Go code snippet illustrates how to make a GET request to retrieve categories. It includes setting up HTTP headers and client. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/categories", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Fetch Item using Go Source: https://docs.quoter.com/ This Go code snippet illustrates fetching item details using the standard 'net/http' package. It demonstrates creating an HTTP request with custom headers. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/items/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### 401 Error Response Example Source: https://docs.quoter.com/ This is an example of an error response when authorization fails. It indicates a 'Bad Request' with a specific detail message. ```json { "errors": [ { "detail": "Pagination page requested too high.", "status": 400, "title": "Bad Request" } ] } ``` -------------------------------- ### Authorize Access and Refresh Tokens (Go) Source: https://docs.quoter.com/ This Go snippet shows how to make a POST request to authorize tokens. It includes setting up HTTP headers and using `bytes.NewBuffer` for the request body. Error handling is omitted for brevity. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/auth/oauth/authorize", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Example Supplier Response Source: https://docs.quoter.com/ This is an example of a successful 200 response when retrieving supplier data. It includes details about the supplier and their field mappings. ```json { "data": [ { "created_at": "2019-08-24T14:15:22Z", "default_taxable": true, "field_mapping": { "category_name": "csvheader4", "manufacturer": "csvheader3", "mpn": "csvheader1", "name": "csvheader2", "price": "csvheader6", "supplier_sku": "csvheader5", "taxable": "csvheader8", "warehouses": [ { "name": "wh1", "quantity": "wh1_qty" } ], "weight": "csvheader7" }, "id": "supp_2uBmQcMgHinlJgyv4or3dCKwWIb", "modified_at": "2019-08-24T14:15:22Z", "name": "Example Supplier", "url": "https://example.com" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Example Authorization Error Response Source: https://docs.quoter.com/ An example of an error response body for an authorization failure. This typically occurs with a 401 status code. ```json { "errors": [ { "key": "ERR_AUTHORIZATION_TOKEN_INVALID", "title": "Unauthorized", "detail": "Authorization token is invalid" } ] } ``` -------------------------------- ### List Item Option Values in Go Source: https://docs.quoter.com/ This Go code demonstrates how to make a GET request to retrieve item option values using the standard 'net/http' package. Ensure headers are correctly set. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_option_values", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Quote Creation Response Example Source: https://docs.quoter.com/ This is an example of a successful response when creating a quote. It includes the unique ID of the created quote and a URL to access it. ```json { "id": "quot_2r5CZzZNKjHlB7FvizOgceEHUhK", "url": "https://development.quoter.com/admin/quotes/draft_by_public_id/quot_2r5CZzZNKjHlB7FvizOgceEHUhK" } ``` -------------------------------- ### Fetch Item Option Value (Go) Source: https://docs.quoter.com/ Go program to fetch an item option value. It demonstrates setting up HTTP headers and making a GET request. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_option_values/{id}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Create Item Tier with Go Source: https://docs.quoter.com/ This Go code illustrates how to make a POST request to create an item tier. It sets up the HTTP client, request headers, and request body. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/item_tiers", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Example Response for Item Tiers Source: https://docs.quoter.com/ This is an example of a successful JSON response when listing item tiers. It includes a list of tiers and pagination information. ```json { "data": [ { "cost_decimal": "50.50", "cost_type": "amount", "created_at": "2019-08-24T14:15:22Z", "id": "tier_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "item_id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "lower_boundary": 0, "modified_at": "2019-08-24T14:15:22Z", "price_decimal": "50.50" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Example API Response for Categories Source: https://docs.quoter.com/ This is an example of a successful 200 OK response when retrieving a list of categories. It includes category details and pagination information. ```json { "data": [ { "created_at": "2019-08-24T14:15:22Z", "id": "cat_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "modified_at": "2019-08-24T14:15:22Z", "name": "SSDs", "parent_category": "Storage Devices", "parent_category_id": "cat_1jAEZdbtkbLFBAU1Tt0ouKpiBUe" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Example Manufacturer Response Source: https://docs.quoter.com/ This is an example of a successful response when fetching manufacturer details. It includes fields like creation date, ID, modification date, and name. ```json { "created_at": "2019-08-24T14:15:22Z", "id": "manu_1jAEZdbtkbLFBAU1Tt0ouKpiBUe", "modified_at": "2019-08-24T14:15:22Z", "name": "Samsung" } ``` -------------------------------- ### Create Manufacturer using Go HTTP Client Source: https://docs.quoter.com/ This Go code snippet shows how to create a manufacturer using the standard net/http package. It sets up the request headers and body. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "https://api.quoter.com/v1/manufacturers", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Update Item Tier Request Body Example Source: https://docs.quoter.com/ Example of the JSON request body used to update an item tier. Ensure all required fields are included for a successful update. ```json { "cost_decimal": "50.50", "cost_type": "amount", "created_at": "2019-08-24T14:15:22Z", "item_id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "lower_boundary": 1, "modified_at": "2019-08-24T14:15:22Z", "price_decimal": "50.50" } ``` -------------------------------- ### List Item Tiers using Go HTTP Client Source: https://docs.quoter.com/ This Go code snippet shows how to list item tiers using the standard net/http package. It sets up the required 'Accept' and 'Authorization' headers for a GET request. ```go package main import ( "bytes", "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/item_tiers", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### Example Response for Item Group Item Assignments Source: https://docs.quoter.com/ This is an example of a successful response when retrieving item group item assignments. It includes assignment details, pagination information, and the total count. ```json { "data": [ { "created_at": "2019-08-24T14:15:22Z", "id": "igia_1lylwamEQiFCXsDnDl3M4xQsJiH", "item_group_id": "igrp_1lqyMI1VF074qctA1lpvhFK3PuY", "item_id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "modified_at": "2019-08-24T14:15:22Z" } ], "has_more": false, "total_count": 1 } ``` -------------------------------- ### Example Response for Created Item Group Item Assignment Source: https://docs.quoter.com/ This is an example of a successful response after creating an item group item assignment. It returns the details of the newly created assignment, including timestamps and IDs. ```json { "created_at": "2019-08-24T14:15:22Z", "id": "igia_1lylwamEQiFCXsDnDl3M4xQsJiH", "item_group_id": "igrp_1lqyMI1VF074qctA1lpvhFK3PuY", "item_id": "item_OcThl0eqYyTVQzll6qFrMDMBYyu", "modified_at": "2019-08-24T14:15:22Z" } ``` -------------------------------- ### List Contacts using Go HTTP Client Source: https://docs.quoter.com/ This Go code snippet demonstrates how to make a GET request to the contacts endpoint using the standard `net/http` package. It sets up the request headers and prepares for client execution. ```go package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Accept": []string{"application/json"}, "Authorization": []string{"Bearer: access_token"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("GET", "https://api.quoter.com/v1/contacts", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... } ``` -------------------------------- ### GET /suppliers Source: https://docs.quoter.com/ Retrieves a list of suppliers. ```APIDOC ## GET /suppliers ### Description Retrieves a list of suppliers. ### Method GET ### Endpoint https://api.quoter.com/v1/suppliers ### Parameters #### Header Parameters - **Accept** (string) - Required - application/json - **Authorization** (string) - Required - Bearer: access_token ### Response #### Success Response (200) (Response schema not provided in the source text) #### Error Responses (Error response details not provided in the source text) ```