Billhighway Cloud API

<back to all web services

MemberPaymentOption

The following routes are available for this service:
GET/members/PaymentOption
import Foundation
import ServiceStack

public class MemberPaymentOption : Codable
{
    public var clientId:Int?
    public var groupId:String?
    public var userId:String?
    public var bhUserId:Int?

    required public init(){}
}

public class MemberPaymentOptionReply : IHaveErrorField, Codable
{
    public var clientId:Int?
    public var groupId:String?
    public var errorCode:Int?
    public var errorMessage:String?
    public var paymentOption:[PaymentOptions] = []
    // @ApiMember(ExcludeInSchema=true)
    public var isError:Bool?

    required public init(){}
}

public class PaymentOptions : Codable
{
    public var bhUserId:Int?
    public var userId:String?
    public var paymentOption:String?

    required public init(){}
}


Swift MemberPaymentOption 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.

GET /members/PaymentOption HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ClientId":0,"GroupId":"String","ErrorCode":0,"ErrorMessage":"String","PaymentOption":[{"BhUserId":0,"UserId":"String","PaymentOption":"String"}],"IsError":false}