Trendsic Platform Service

<back to all web services

QboDisconnectRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/qbo/disconnect
import 'package:servicestack/servicestack.dart';

class QboStatusResponse implements IConvertible
{
    bool? Configured;
    bool? Connected;
    bool? NeedsReconnect;
    bool? AutoSync;
    String? Environment;
    String? RealmId;
    String? CompanyName;
    ResponseStatus? ResponseStatus;

    QboStatusResponse({this.Configured,this.Connected,this.NeedsReconnect,this.AutoSync,this.Environment,this.RealmId,this.CompanyName,this.ResponseStatus});
    QboStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Configured = json['Configured'];
        Connected = json['Connected'];
        NeedsReconnect = json['NeedsReconnect'];
        AutoSync = json['AutoSync'];
        Environment = json['Environment'];
        RealmId = json['RealmId'];
        CompanyName = json['CompanyName'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Configured': Configured,
        'Connected': Connected,
        'NeedsReconnect': NeedsReconnect,
        'AutoSync': AutoSync,
        'Environment': Environment,
        'RealmId': RealmId,
        'CompanyName': CompanyName,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "QboStatusResponse";
    TypeContext? context = _ctx;
}

class QboDisconnectRequest implements IConvertible
{
    QboDisconnectRequest();
    QboDisconnectRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "QboDisconnectRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'QboStatusResponse': TypeInfo(TypeOf.Class, create:() => QboStatusResponse()),
    'QboDisconnectRequest': TypeInfo(TypeOf.Class, create:() => QboDisconnectRequest()),
});

Dart QboDisconnectRequest 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.

POST /v1/qbo/disconnect HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Configured":false,"Connected":false,"NeedsReconnect":false,"AutoSync":false,"Environment":"String","RealmId":"String","CompanyName":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}