Trendsic Platform Service

<back to all web services

CustomerDropdownRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/Project/CustomerDropdown
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CustomerDropdownRequest
    {
        
    }

    public static class CustomerDropdownResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CustomerDD> Customers = new ArrayList<CustomerDD>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CustomerDropdownResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CustomerDD> getCustomers() { return Customers; }
        public CustomerDropdownResponse setCustomers(ArrayList<CustomerDD> value) { this.Customers = value; return this; }
    }

    public static class CustomerDD
    {
        public String CustomerId = null;
        public String CustomerName = null;
        
        public String getCustomerId() { return CustomerId; }
        public CustomerDD setCustomerId(String value) { this.CustomerId = value; return this; }
        public String getCustomerName() { return CustomerName; }
        public CustomerDD setCustomerName(String value) { this.CustomerName = value; return this; }
    }

}

Java CustomerDropdownRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Project/CustomerDropdown HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Customers":[{"CustomerId":"String","CustomerName":"String"}]}