POST | /customers/{CustomerId}/giftcontacts |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerId | path | string | Yes | The customer identifier |
Title | body | PersonTitle? | No | Person titleAllowable Values
|
FirstName | body | string | No | First Name |
LastName | body | string | No | Last Name |
MobilePhone | body | string | No | Mobile Phone |
HomePhone | body | string | No | Home Phone |
Address | body | Address | No | Address |
body | string | No | ||
RequestReference | body | RequestReference | No | Attribution values associated to the request if any |
Mr |
Mrs |
Miss |
Ms |
Dr |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Street | form | string | No | |
City | form | string | No | |
ZipCode | form | string | No | |
State | form | string | No | |
CountryRegionId | form | string | No | |
DPID | form | int | No | |
Suburb | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CampaignId | form | string | No | |
RetailChannelId | form | string | Yes | |
ReferenceId | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ContactId | form | string | No | |
Title | form | PersonTitle? | No | Person titleAllowable Values
|
FirstName | form | string | No | |
LastName | form | string | No | |
DateOfBirth | form | DateTime? | No | |
HomePhone | form | string | No | |
MobilePhone | form | string | No | |
form | string | No | ||
Address | form | Address | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /customers/{CustomerId}/giftcontacts HTTP/1.1
Host: azs-stg-lotteries-web.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
customerId: String,
title: Mr,
firstName: String,
lastName: String,
mobilePhone: String,
homePhone: String,
address:
{
street: String,
city: String,
zipCode: String,
state: String,
countryRegionId: String,
dpid: 0,
suburb: String
},
email: String,
requestReference:
{
campaignId: String,
retailChannelId: String,
referenceId: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { contactId: String, title: Mr, firstName: String, lastName: String, dateOfBirth: 0001-01-01, homePhone: String, mobilePhone: String, email: String, address: { street: String, city: String, zipCode: String, state: String, countryRegionId: String, dpid: 0, suburb: String } }