Hmx Accounts

<back to all web services

DeletePurchaseOrder

The following routes are available for this service:
DELETE/api/purchaseorders/{id}Delete a PurchaseOrder
import 'package:servicestack/servicestack.dart';

class DeletePurchaseOrderResponse implements IConvertible
{
    String? message;
    HttpStatusCode? status;

    DeletePurchaseOrderResponse({this.message,this.status});
    DeletePurchaseOrderResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        message = json['message'];
        status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'message': message,
        'status': JsonConverters.toJson(status,'HttpStatusCode',context!)
    };

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

class DeletePurchaseOrder implements IConvertible
{
    int? id;

    DeletePurchaseOrder({this.id});
    DeletePurchaseOrder.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id
    };

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

TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: <String, TypeInfo> {
    'DeletePurchaseOrderResponse': TypeInfo(TypeOf.Class, create:() => DeletePurchaseOrderResponse()),
    'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()),
    'DeletePurchaseOrder': TypeInfo(TypeOf.Class, create:() => DeletePurchaseOrder()),
});

Dart DeletePurchaseOrder DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

DELETE /api/purchaseorders/{id} HTTP/1.1 
Host: accounts.dev.healthmonix.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"message":"String","status":"Continue"}