PutCustomerVerificationRequest
public struct PutCustomerVerificationRequest : Sendable
Request parameters for submitting customer verification data via SEP-0012.
This struct encapsulates the parameters needed to verify previously provided customer fields that require verification, such as mobile_number or email_address. Fields that are in the VERIFICATION_REQUIRED status require a request to this endpoint with verification codes or confirmation values.
Note: This endpoint has been deprecated in favor of using the PUT /customer endpoint for verification. However, it is still supported for backwards compatibility.
Example usage:
let request = PutCustomerVerificationRequest(
id: "391fb415-c223-4608-b2f5-dd1e91e3a986",
fields: ["mobile_number_verification": "123456"],
jwt: authToken
)
See also:
-
The ID of the customer as returned in the response of a previous PUT request.
Declaration
Swift
public var id: String -
JWT previously received from the anchor via the SEP-10 authentication flow.
Declaration
Swift
public var jwt: String -
One or more SEP-9 fields appended with _verification. For example, if mobile_number requires verification, this would contain “mobile_number_verification” as a key with the verification code as the value.
Declaration
Swift
public var fields: [String : String] -
Creates a new customer verification request.
Declaration
Swift
public init(id: String, fields: [String : String], jwt: String)Parameters
idThe customer ID from a previous PUT /customer response
fieldsDictionary of verification fields with their verification codes
jwtJWT previously received from the anchor via SEP-10 authentication
-
Converts the request parameters to a dictionary of data for form submission.
Declaration
Swift
public func toParameters() -> [String : Data]Return Value
Dictionary mapping parameter names to their Data representations
View on GitHub
Install in Dash