List order types
GET
/listings/order_types
const url = 'https://acme.mykreezalid.com/api/partners/v1/listings/order_types?page=1&limit=25';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/api/partners/v1/listings/order_types?page=1&limit=25' \ --header 'Authorization: Basic <credentials>'Lists the marketplace’s order types, which define how a listing is ordered. Use an order type’s id as order_type_id, or its url_token as order_type_url_token, when you create or update a listing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page to return, starting at 1. Pages hold 25 results by default; keep requesting the next page until one comes back with fewer results than limit.
limit
integer
Number of results per page, at most 100.
Responses
Section titled “Responses”The marketplace’s order types.
Media typeapplication/json
object
orderTypes
Array<object>
object
id
integer
url_token
Token to send as order_type_url_token.
string
title
string
transaction_type
Kind of transaction this order type handles.
string
Example
{ "orderTypes": [ { "id": 2, "title": "Sale" } ]}Missing or wrong API credentials.