Billhighway Cloud API

<back to all web services

SalesForceCancelInvoice

The following routes are available for this service:
POST/api/SalesForce/CancelInvoice
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SalesForceCancelInvoice
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String OpportunityId = null;
        public String InvoiceNumber = null;
        public String CancelledBy = null;
        public String CancelReason = null;
        public String Notes = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCancelInvoice setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCancelInvoice setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCancelInvoice setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCancelInvoice setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceCancelInvoice setGroupId(String value) { this.GroupId = value; return this; }
        public String getOpportunityId() { return OpportunityId; }
        public SalesForceCancelInvoice setOpportunityId(String value) { this.OpportunityId = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public SalesForceCancelInvoice setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public String getCancelledBy() { return CancelledBy; }
        public SalesForceCancelInvoice setCancelledBy(String value) { this.CancelledBy = value; return this; }
        public String getCancelReason() { return CancelReason; }
        public SalesForceCancelInvoice setCancelReason(String value) { this.CancelReason = value; return this; }
        public String getNotes() { return Notes; }
        public SalesForceCancelInvoice setNotes(String value) { this.Notes = value; return this; }
    }

    public static class SalesForceCancelInvoiceReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public String InvoiceNumber = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCancelInvoiceReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCancelInvoiceReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCancelInvoiceReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCancelInvoiceReply setClientId(Integer value) { this.ClientId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public SalesForceCancelInvoiceReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public SalesForceCancelInvoiceReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public SalesForceCancelInvoiceReply setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForceCancelInvoiceReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java SalesForceCancelInvoice 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.

POST /api/SalesForce/CancelInvoice HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","OpportunityId":"String","InvoiceNumber":"String","CancelledBy":"String","CancelReason":"String","Notes":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"ErrorCode":0,"ErrorMessage":"String","InvoiceNumber":"String","IsError":false}