Update Account
PATCH/accounts/:customerAccountId
This endpoint updates an existing account, previously created through a
checkout API call, using the provided customerAccountId
input parameter.
Request
Path Parameters
Possible values: <= 255 characters
Customer identifier
Header Parameters
Must be application/json
Must be be en-US
The origin of the request
The client making the request
- application/json
Body
required
billingAddress
object
required
Consumer's billing address data. See Address
in Data model.
Possible values: <= 60 characters
Street name.
Possible values: <= 60 characters
Apartment, suite, unit, building, floor or other secondary address information.
Possible values: <= 60 characters
Specific delivery instructions, department names, or additional floor information.
Possible values: <= 50 characters
The city or localitly of the address.
Possible values: >= 3 characters
and <= 3 characters
ISO-3 code of the address country (e.g., DEU for Germany).
Possible values: <= 10 characters
The house or building number corresponding to the street address.
Possible values: <= 10 characters
The postal or ZIP code of the address.
Possible values: <= 3 characters
3-letter code of the address state. Mandatory when countryCode
corresponds to Canada or USA.
consumer
object
required
Consumer's personal data, in case the consumer is a physical person. See consumer
in Data model.
Conditional. Can be present if businessConsumer
is missing from the request.
Possible values: <= 5 characters
Consists of ISO 639-1 language code and ISO 3166-1 alpha-2 country code separated by dash. If this value is not provided the browser culture is used. Default culture is English (e.g., en-de). This field is not case sensitive.
Possible values: <= 10 characters
, Value must match regular expression ^\d{4}-\d{2}-\d{2}$
Date of birth. Format - YYYY-MM-DD. Mandatory for payment option registration flow. Minimum date allowed is 1900-01-01
Possible values: <= 255 characters
Customer email address for any notification
Possible values: <= 60 characters
Person first name
Possible values: <= 6 characters
Person gender
Possible values: <= 30 characters
Person's home phone number (including the country code)
Possible values: <= 60 characters
Person last name
Possible values: <= 255 characters
Consumer/Customer Account Id in the merchant system. When provided into the Create Checkout API, SmartPay will request e-wallet account creation which will have external account reference equals to the given merchantCustomerId
value.
Possible values: <= 60 characters
The customer's middle name
Possible values: <= 30 characters
Person's mobile phone number (including the country code)
Possible values: <= 30 characters
Person's tax identification number
Possible values: <= 3 characters
Person title
Possible values: <= 30 characters
Person's work phone number (including the country code)
businessConsumer
object
required
Company data, in case the consumer is a business or a legal entity. See businessConsumer
in Data model.
Conditional. Can be present if consumer
is missing from the request.
Possible values: <= 100 characters
Name of the legal entity
Possible values: >= 2 characters
and <= 3 characters
Company registration country ISO2 or ISO3 code
Possible values: <= 50 characters
Company registration number
Possible values: <= 100 characters
Possible values: <= 5 characters
Consists of ISO 639-1 language code and ISO 3166-1 alpha-2 country code separated by dash. If this value is not provided the browser culture is used. Default culture is English (e.g., en-de). This field is not case sensitive.
Possible values: <= 255 characters
Customer email address for any notification
Possible values: <= 30 characters
Person's tax identification number
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
- application/json
- Schema
- Example (from schema)
- Example
Schema
2FADIS
- Two Factor Authentication is disabled.2FANOTCONF
- Two Factor Authentication is activated but not configured.2FAINPROC
- Two Factor Authentication is activated and configuration is in process.2FACONF
- Two Factor Authentication is activated and configured.Array [
Array [
]
]
Possible values: <= 64 characters
, Value must match regular expression ^[a-zA-Z0-9_-]+$
Partner service call identifier.
Possible values: [ACTIVE
, CLOSED
, INACTIVE
, REJECTED
]
Status code of the account. Possible values are: ACTIVE, CLOSED, INACTIVE or REJECTED.
Possible values: <= 10 characters
Status code of the account flow.
Possible values: [2FADIS
, 2FANOTCONF
, 2FAINPROC
, 2FACONF
]
Two Factor Authentication Status Code. Possible values are:
Whether a confirmation of Two-Factor Authentication setup with a verification code is required or not (this code is sent to the user email).
providerResponse
object
External provider data.
complianceData
object[]
Compliance data.
Possible values: <= 50 characters
Archived check result identifier.
Possible values: [RED
, YELLOW
, GREEN
]
The following options are possible:
RED" - hit,<br/>
YELLOW- unsure hit,<br/>
GREEN` - no hit.
Possible values: [SL
, BL
, PEP
]
The following options are possible:
SL
– sanctions list,
BL
– black list,
PEP
– publicly exposed person.
Due to regulatory requirements, a person or company must not be part of this list.
Whether a manual review is required or not.
details
object[]
List of compliance check details.
Timestamp of the request in the format defined by ISO 8601.
Possible values: <= 4 characters
The response code.
Possible values: <= 512 characters
The response description.
{
"partnerReference": "string",
"statusCode": "ACTIVE",
"accFlowStatusCode": "string",
"twoFAStatusCode": "2FADIS",
"isTwoFASetupCodeRequired": true,
"providerResponse": {
"complianceData": [
{
"archiveId": "string",
"trafficLight": "RED",
"hitType": "SL",
"manualReview": true,
"details": [
{
"name": "string",
"birthdate": "2024-07-29"
}
]
}
]
},
"requestDateTime": "2024-07-29T15:51:28.071Z",
"responseCode": "string",
"responseDescription": "string"
}
{
"partnerReference": "PIT-XXX_CUST-1564891230_SgUDBJYhUu",
"statusCode": "ACTIVE",
"accFlowStatusCode": "APPROVEDSV",
"twoFAStatusCode": "2FADIS",
"providerResponse": {
"complianceData": [
{
"archiveId": "4108000025015465",
"trafficLight": "YELLOW",
"hitType": "SL",
"manualReview": true,
"details": [
{
"name": "Falk Quintus",
"birthdate": "1966-02-01"
},
{
"name": "Quintus Falk",
"birthdate": "1966-02-01"
}
]
}
]
},
"requestDateTime": "2021-02-08T17:43:19.027Z",
"responseCode": "0000",
"responseDescription": "Successful execution."
}
Bad Request
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Value out of bounds. Value must be between 1 and 100",
"code": "value_out_of_bounds",
"property": "someField",
"context": {
"minimum": 1,
"maximum": 100
}
}
]
}
Unauthenticated
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You are not authenticated to perform this request.",
"code": "unauthorized"
}
]
}
Forbidden
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You do not have permissions to perform this request.",
"code": "forbidden"
}
]
}
Not Found
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Resource not found.",
"code": "not_found"
}
]
}
Internal Server Error
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Internal server error."
}
]
}