Superfiliate

Update customer

Bearer authcustomers.write

Updates only the supplied code, first_name, last_name, email, phone, instagram_handle, and tiktok_handle. Omitted fields stay unchanged. Social handles use the same linking behavior as Create customer: Instagram replaces the linked profile, while TikTok adds a profile to the customer's linked profiles. Names use the same first_name and last_name fields as customer creation; empty strings clear them. Email is trimmed and lowercased. Codes are uppercased and must be available, 2–30 characters long, using only A–Z, 0–9, hyphens, and underscores. Protected codes are rejected.

Changing a code requires an enrolled, active customer with an existing code. It replaces the current code using the program's reward settings and removes the old code and redirects. Sending the current code again leaves it unchanged. Profile-only updates do not require enrollment. Requires customers.write.

PUTapi.superfiliate.com/api/v1/customers/{id}

Path parameters1

idrequired
integer
—

Body parametersapplication/json

  • codestring

    Code associated with this resource.

  • first_namestring

    Person's given name.

  • last_namestring

    Person's family name.

  • emailstring

    Email address for this person.

  • instagram_handlestring

    The instagram handle for this resource.

  • tiktok_handlestring

    The tiktok handle for this resource.

  • phonestring

    Normalized to E.164. Send an empty string to clear; invalid numbers return 422.

Responses

Customer updated

  • idinteger
  • emailstring

    Email address for this person.

  • phonestring | null

    Phone number for this person.

  • first_namestring | null

    Person's given name.

  • last_namestring | null

    Person's family name.

  • instagram_handlestring | null

    The instagram handle for this resource.

  • tiktok_handlestring | null

    The tiktok handle for this resource.

  • balancestring

    Store credit amount in wallet. Eg. "12.3", meaning $12.30

  • codestring | null

    May be blank if customer is not enrolled yet. Public, to share with friends/followers

  • microsite_urlstring | null

    May be blank if customer is not enrolled yet. Public, to share with friends/followers

  • reward_codestring | null

    May be blank if customer is not enrolled yet. Private, to redeem their wallet balance.

  • redeem_urlstring | null

    May be blank if customer is not enrolled yet. Private, to redeem their wallet balance.

  • campaign_idinteger | null

    May be blank if customer is not enrolled yet.

  • enrolled_atstring | null

    ISO8601 timestamp when customer was enrolled. May be blank if customer is not enrolled yet.

  • tagsarray of strings

    Customer tags added via the admin app