Update Contact Details
PATCHhttps://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
- application/json
Bodyrequired
email object
phone object
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
email object
phone object
{
"email": {
"accountId": "9b7552cf9abab0f2efed72df6b3ce4bc",
"createdAt": "2024-07-29T15:51:28.071Z",
"modifiedAt": "2024-07-29T15:51:28.071Z",
"emailAddress": "joe@joecardholder.com"
},
"phone": {
"accountId": "9b7552cf9abab0f2efed72df6b3ce4bc",
"createdAt": "2024-07-29T15:51:28.071Z",
"modifiedAt": "2024-07-29T15:51:28.071Z",
"phoneNumber": "+1234567890"
}
}
Request fields are invalid
- application/json
- Schema
- Example (auto)
Schema
statusCodeintegerrequired
Example:
400
statusNamestringrequired
Example:
Bad Request
errorCodestringrequired
Example:
INVALID_REQUEST_INPUT
errors object[]
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "INVALID_REQUEST_INPUT",
"errors": [
{
"message": "Invalid type",
"path": "items[1].attributes.invalidField"
}
]
}
API caller is not allowed to perform the action
- application/json
- Schema
- Example (auto)
Schema
statusCodeintegerrequired
Example:
403
statusNamestringrequired
Example:
Forbidden
errorCodestringrequired
Example:
FORBIDDEN
reasonstring
Example:
Unauthorized
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
Authorization: http
name: Access Tokentype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear