Create or Update Customer Info
PUT/customer
The Anchor Platform does not persist any customer KYC data.
The request and response for this endpoint are identical to the
PUT /customer
request and response defined in SEP-12.
Client applications make requests with the following request body, which is forwarded to the anchor. Anchors
must validate and persist the data passed, and return the customer's id
. Requests containing only string fields will
be forwarded to the anchor as with the application/json
content type. Requests containing
binary fields will be forwarded to the anchor as with the multipart/form-data
content type.
Request
- application/json
- multipart/form-data
Body
The ID of the customer as returned in the response of a previous PUT request.
The Stellar or Muxed Account authenticated with the Platform via SEP-10.
The memo value identifying a customer with a shared account, where the shared account is account
.
Possible values: [id
, hash
, text
]
The type of memo used to identify a customer with a shared account.
The type of action the customer is being KYCd for.
See the Type Specification documented in SEP-12 for more info.
For SEP-31 you can define your own types in the assets configuration.
For SEP-24 pre-defined value sep24-customer
is used.
Body
The ID of the customer as returned in the response of a previous PUT request.
The Stellar or Muxed Account authenticated with the Platform via SEP-10.
The memo value identifying a customer with a shared account, where the shared account is account
.
Possible values: [id
, hash
, text
]
The type of memo used to identify a customer with a shared account.
The type of action the customer is being KYCd for.
See the Type Specification documented in SEP-12 for more info.
For SEP-31 you can define your own types in the assets configuration.
For SEP-24 pre-defined value sep24-customer
is used.
Responses
- 200
- 400
- 404
Success.
- application/json
- Schema
- Example (from schema)
Schema
{
"id": "string"
}
Invalid data.
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"id": "string"
}
Not Found.
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"id": "string"
}