Headers
-
x-fapi-auth-date string
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
Format should match the following pattern:
^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} \d{2}:\d{2}:\d{2} (GMT|UTC)$
. -
x-fapi-customer-ip-address string
The PSU's IP address if the PSU is currently logged in with the TPP.
-
x-fapi-interaction-id string
An RFC4122 UID used as a correlation id.
-
x-customer-user-agent string
Indicates the user-agent that the PSU is using.
Path parameters
-
The organisation ID
Minimum length is
1
, maximum length is40
. Format should match the following pattern:^[^<>]*$
.
Body Required
-
AdditionalInformation string
Any additional user information
Maximum length is
65535
. Format should match the following pattern:^[^<>]*$
. -
AddressLine1 string
Address line 1
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
AddressLine2 string
Address line 2
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
City string
City
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
The type of Contact, default contact type is Business.
Format should match the following pattern:
^[^<>]*$
. Default value isBusiness
. -
Country string
Country
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
Department string
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
Maximum length is
255
. Format should match the following pattern:^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$
. -
FirstName string
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
LastName string
Maximum length is
255
. Format should match the following pattern:^[^<>]*$
. -
PgpPublicKey string
A PGP Public Key in text form
Maximum length is
65535
. Format should match the following pattern:^[^<>]*$
. -
Minimum length is
1
, maximum length is18
. Format should match the following pattern:^[^<>]*$
. -
Postcode string
Postcode
Maximum length is
40
. Format should match the following pattern:^[^<>]*$
.
Responses
-
201 application/json
A contact object
-
400 application/json
Bad Request
-
Unauthorized
-
Forbidden
-
Not Acceptable
-
Conflict
-
Too many requests, maximum capacity reached. Requests are now throttled.
-
Internal Server Error
-
Bad Gateway
-
Upstream timeout, insufficient capacity to serve request. More capacity being brought online. Please try again.
curl \
-X POST https://matls-api.sandbox.raidiam.io/organisations/{OrganisationId}/contacts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "x-fapi-auth-date: string" \
-H "x-fapi-customer-ip-address: string" \
-H "x-fapi-interaction-id: string" \
-H "x-customer-user-agent: string" \
-d '{"AdditionalInformation":"string","AddressLine1":"string","AddressLine2":"string","City":"string","ContactType":"Business","Country":"string","Department":"string","EmailAddress":"string","FirstName":"string","LastName":"string","PgpPublicKey":"string","PhoneNumber":"string","Postcode":"string"}'
# Headers
x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-fapi-interaction-id: string
x-customer-user-agent: string
# Payload
{
"AdditionalInformation": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"City": "string",
"ContactType": "Business",
"Country": "string",
"Department": "string",
"EmailAddress": "string",
"FirstName": "string",
"LastName": "string",
"PgpPublicKey": "string",
"PhoneNumber": "string",
"Postcode": "string"
}
# Headers
x-fapi-interaction-id: 73cac523-d3ae-2289-b106-330a6218710d
# Payload
{
"AdditionalInformation": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"City": "string",
"ContactId": "string",
"ContactType": "Business",
"Country": "string",
"Department": "string",
"EmailAddress": "string",
"FirstName": "string",
"LastName": "string",
"OrganisationId": "string",
"PgpPublicKey": "string",
"PhoneNumber": "string",
"Postcode": "string"
}
# Headers
x-fapi-interaction-id: 73cac523-d3ae-2289-b106-330a6218710d
# Payload
{
"errors": [
"string"
]
}