POST | /AddressLookup/submit |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CDD_Engine_WS.dto.Requests;
namespace CDD_Engine_WS.dto.Requests
{
public partial class AddressLookupRequest
{
public virtual string CSR { get; set; }
public virtual string Text { get; set; }
public virtual string Container { get; set; }
public virtual string Type { get; set; }
public virtual string SourceCode { get; set; }
}
}
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 /AddressLookup/submit HTTP/1.1
Host: wpcdd-featuretest-ws.worldpay.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CSR":"String","Text":"String","Container":"String","Type":"String","SourceCode":"String"}