Sellavi US API

Customers

Endpoint:https://api.sellavi.com

Manage customer profiles and assign loyalty ranks.


list of customers

POST
https://api.sellavi.com
/customers

Get list of customers with filters

list of customers › Request Body

  • limitnumber · int64

    The limit of the results return - can be between 0 and 100

    Example: 15
    Default: 10
  • pagenumber · int64

    The page/index of the results related to the result number

    Example: 2
    Default: 0
  • searchstring

    Search the customers by name or email - case sensitive

    Example: Jhon
  • directionstring · enum

    The direction of return results by the customer creation date

    Enum values:
    desc
    asc

list of customers › Responses

  • customer_idnumber · int64

    Customer unique id - use to delete/get/edit customer

    Example: 123
  • customer_group_idnumber · int64

    Customer group id

    Example: 23
  • namestring

    Full customer name

    Example: Jhon Doe
  • emailstring · email

    Customers email

  • telephonestring

    Customer`s phone

    Example: +12025550123
  • date_addedstring · date

    Date customer added or registered

  • addressesobject[]

Customer create

POST
https://api.sellavi.com
/customer

Create single customer

Customer create › Request Body

  • firstnamestring

    Customer first name

    Example: Jhon
  • lastnamestring

    Customer last name

    Example: Doe
  • emailstring

    Customers email

  • telephonestring

    Customers telephone

    Example: +12025550123
  • passwordstring · writeOnly

    Password that will be related to this customer to login to the store

  • confirmstring · writeOnly

    Password confirmation

  • responder_listnumber · int64

    Responder list id for subscription to newsletter

    Example: 3221
  • addressobject

    Object of the main address will be related to the new customer

  • newsletterinteger · enum

    Subscribe to or unsubscribe from the newsletter

    Enum values:
    0
    1

Customer create › Responses

Success

No data returned

Customer details

GET
https://api.sellavi.com
/customer/{customer_id}

Get customer details by its id

Customer details › path Parameters

  • customer_idinteger · required

    Customer id

Customer details › Responses

In case of succes return single customer`s details

  • customer_idnumber · int64

    Customer unique id - use to delete/get/edit customer

    Example: 123
  • customer_group_idnumber · int64

    Customer group id

    Example: 23
  • namestring

    Full customer name

    Example: Jhon Doe
  • emailstring · email

    Customers email

  • telephonestring

    Customer`s phone

    Example: +12025550123
  • date_addedstring · date

    Date customer added or registered

  • addressesobject[]

list of customers

PUT
https://api.sellavi.com
/customer/{customer_id}

Edit exist customer

list of customers › path Parameters

  • customer_idinteger · required

    Customer id

list of customers › Request Body

  • firstnamestring

    Customer first name

    Example: Jhon
  • lastnamestring

    Customer last name

    Example: Doe
  • emailstring

    Customers email

  • telephonestring

    Customers telephone

    Example: +12025550123
  • passwordstring · writeOnly

    Password that will be related to this customer to login to the store (If you dont want to change password dont pass this and confirm field)

  • confirmstring · writeOnly

    Password confirmation

  • addressobject

    Object of the main address will be related to the new customer

  • newsletterinteger · enum

    Subscribe to or unsubscribe from the newsletter

    Enum values:
    0
    1

list of customers › Responses

Success

No data returned

Delete customer

DELETE
https://api.sellavi.com
/customer/{customer_id}

Delete customer by its id

Delete customer › path Parameters

  • customer_idinteger · required

    Customer id

Delete customer › Responses

Success

No data returned

Set customer point rank

PUT
https://api.sellavi.com
/customer/{customer_id}/point_rank

Requires API permission customersEdit, an active points app, and the points system enabled in store settings. The customer and enabled rank must belong to the authenticated store. Adjusts the non-expired reward total to the selected rank threshold; the spendable customer points balance is unchanged. Saving the currently matching rank does not add a reward. Current rank is the highest enabled rank whose points threshold is no greater than the reward total, including zero. See Points guide.

Set customer point rank › path Parameters

  • customer_idinteger · min: 1 · required

Set customer point rank › Request Body

  • point_rank_idinteger · min: 1 · required

    An enabled rank belonging to the authenticated store.

    Example: 123

Set customer point rank › Responses

Customer point rank updated successfully

  • successboolean
    Example: true
  • responseobject
  • request_idstring
    Example: 1ef2da0b-6f98-6fec-b13f-06c63b84be49