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.
The transaction id with which the customer's info is associated. When information from the customer depends on the transaction (e.g., more information is required for larger amounts)
Deprecated. Use external_transfer_memo
instead.
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.
Deprecated. Use external_transfer_memo
instead.
Responses
- 200
- 400
- 404
Success.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [ACCEPTED
, PROCESSING
, NEEDS_INFO
, REJECTED
]
fields
object
property name*
Possible values: [string
, binary
, number
, date
]
provided_fields
object
property name*
Possible values: [string
, binary
, number
, date
]
Possible values: [ACCEPTED
, PROCESSING
, REJECTED
, VERIFICATION_REQUIRED
]
{
"id": "string",
"status": "ACCEPTED",
"fields": {},
"provided_fields": {},
"message": "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"
}