Skip to main content
Version: 2.9
SEP-12SEP-24SEP-31SEP-6

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

Body

    idstring

    The ID of the customer as returned in the response of a previous PUT request.

    accountstring

    The Stellar or Muxed Account authenticated with the Platform via SEP-10.

    memostring

    The memo value identifying a customer with a shared account, where the shared account is account.

    memo_typestring

    The type of memo used to identify a customer with a shared account.

    Possible values: [id, hash, text]

    typestring

    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.

    transaction_idstring

    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)

    first_namestring
    last_namestring
    additional_namestring
    address_country_codestring
    state_or_provincestring
    citystring
    postal_codestring
    addressstring
    mobile_numberstring
    email_addressstring
    birth_datedate
    birth_placestring
    birth_country_codestring
    bank_namestring
    bank_account_numberstring
    bank_account_typestring
    bank_numberstring
    bank_phone_numberstring
    bank_branch_numberstring
    external_transfer_memostring
    clabe_numberstring
    cbu_aliasstring
    mobile_money_numberstring
    mobile_money_providerstring
    crypto_addressstring
    crypto_memostring

    Deprecated. Use external_transfer_memo instead.

    tax_idstring
    tax_id_namestring
    occupationstring
    employer_namestring
    employer_addressstring
    language_codestring
    id_typestring
    id_country_codestring
    id_issue_datedate
    id_expiration_datedate
    id_numberstring
    ip_addressstring
    sexstring
    referral_idstring
    mobile_number_verificationstring
    email_address_verificationstring

Responses

Success.
Schema
    idstring