Skip to main content

Update Contact Details

PATCH 

https://api.immersve.com/api/accounts/:accountId/contact-details

This endpoint sets or updates the contact details (email and phone) for the account. The contact details are used to send notifications to the cardholder, such as for 3DSecure and one time passwords.

Request

Path Parameters

    accountId stringrequired

    AccountId for the contact details

Bodyrequired

    email object
    emailAddressstringrequired

    Email address

    Example: joe@joecardholder.com
    phone object
    phoneNumberstringrequired

    Phone number

    Example: +1234567890

Responses

Schema
    email object
    accountIdstringrequired
    Example: 9b7552cf9abab0f2efed72df6b3ce4bc
    createdAtstring<date-time>required
    modifiedAtstring<date-time>required
    emailAddressstringrequired
    Example: joe@joecardholder.com
    phone object
    accountIdstringrequired
    Example: 9b7552cf9abab0f2efed72df6b3ce4bc
    createdAtstring<date-time>required
    modifiedAtstring<date-time>required
    phoneNumberstringrequired
    Example: +1234567890

Authorization: http

name: Access Tokentype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://api.immersve.com/api/accounts/:accountId/contact-details");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"email\": {\n \"emailAddress\": \"joe@joecardholder.com\"\n },\n \"phone\": {\n \"phoneNumber\": \"+1234567890\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.immersve.com
Auth
Parameters
— pathrequired
Body required
{
  "email": {
    "emailAddress": "joe@joecardholder.com"
  },
  "phone": {
    "phoneNumber": "+1234567890"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!