POST | /response/request |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CDDResponseRequest
{
public String ApplicationGUID = null;
public String getApplicationGUID() { return ApplicationGUID; }
public CDDResponseRequest setApplicationGUID(String value) { this.ApplicationGUID = value; return this; }
}
public static class EventResponse
{
public String ApplicationGUID = null;
public String AuditFileID = null;
public String ResponseDesc = null;
public String ReportURL = null;
public String EventType = null;
public Date DateChecked = null;
public Integer CDDCheckID = null;
public Integer StatusCode = null;
public String getApplicationGUID() { return ApplicationGUID; }
public EventResponse setApplicationGUID(String value) { this.ApplicationGUID = value; return this; }
public String getAuditFileID() { return AuditFileID; }
public EventResponse setAuditFileID(String value) { this.AuditFileID = value; return this; }
public String getResponseDesc() { return ResponseDesc; }
public EventResponse setResponseDesc(String value) { this.ResponseDesc = value; return this; }
public String getReportURL() { return ReportURL; }
public EventResponse setReportURL(String value) { this.ReportURL = value; return this; }
public String getEventType() { return EventType; }
public EventResponse setEventType(String value) { this.EventType = value; return this; }
public Date getDateChecked() { return DateChecked; }
public EventResponse setDateChecked(Date value) { this.DateChecked = value; return this; }
public Integer getCddCheckID() { return CDDCheckID; }
public EventResponse setCddCheckID(Integer value) { this.CDDCheckID = value; return this; }
public Integer getStatusCode() { return StatusCode; }
public EventResponse setStatusCode(Integer value) { this.StatusCode = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /response/request HTTP/1.1
Host: wpcdd-featuretest-ws.worldpay.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ApplicationGUID":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"ApplicationGUID":"String","AuditFileID":"String","ResponseDesc":"String","ReportURL":"String","EventType":"String","DateChecked":"\/Date(-62135596800000-0000)\/","CDDCheckID":0,"StatusCode":0}