To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /signup/application/submit HTTP/1.1
Host: cdnapidev.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CdnxApplicantSubmitV2Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.RequestObjects">
<AnswersJson>String</AnswersJson>
<BillingZip>String</BillingZip>
<CardExpMonth>String</CardExpMonth>
<CardExpYear>String</CardExpYear>
<CardHolderName>String</CardHolderName>
<CcNumber>String</CcNumber>
<Ccv>String</Ccv>
<CreditCardId>0</CreditCardId>
<IdempotencyKey>String</IdempotencyKey>
<Token>String</Token>
</CdnxApplicantSubmitV2Request>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CdnxApplicantSubmitV2Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.Api.RequestObjects">
<ApplicationId>0</ApplicationId>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<Outcome>String</Outcome>
<StatusToken>String</StatusToken>
<ValidationErrorsJson>String</ValidationErrorsJson>
</CdnxApplicantSubmitV2Response>