Sellavi US API

Orders

Endpoint:https://api.sellavi.com

Read orders, update status, create invoices and manage shipments.


Get order status ids

GET
https://api.sellavi.com
/order_status_list

Get order Status ids that can be passed to order list method

Get order status ids › Responses

success

  • successboolean
    Example: true
  • responseobject
    Example: {"1":[{"order_status_id":2,"name":"Processing"},{"order_status_id":3,"name":"Shipped"}]}
  • request_idstring
    Example: 1ef2da0b-6f98-6fec-b13f-06c63b84be49

Get full list with all orders with date filter

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

Get full list with all orders with date filter

Get full list with all orders with date filter › Request Body
optional

  • date_fromstring · required

    Valid date (year-month-day) wich we start the filter from

    Example: 2020-01-20
  • date_tostring · required

    Valid date (year-month-day) wich we end the filter

    Example: 2020-01-25
  • limitinteger · min: 1 · max: 100 · required

    Limit orders per page (minimum 1)

    Example: 10
  • pageinteger · min: 1 · required

    Limit orders per page (minimum 1)

    Example: 1
  • order_status_idsinteger[]

    Array of valid order status ids - Leave empty or dont pass this property to get full list

    Example: [1,5]

Get full list with all orders with date filter › Responses

success

  • successboolean
    Example: true
  • responseobject[]

    array with all orders

  • resultsnumber
    Example: 233
  • pagesnumber
    Example: 100
  • pagenumber
    Example: 4
  • per_pagenumber
    Example: 2
  • request_idstring
    Example: 1ef2da0b-6f98-6fec-b13f-06c63b84be49

Get order details by order Id

GET
https://api.sellavi.com
/order/{order_id}

Get order details by order id

Get order details by order Id › path Parameters

  • order_idinteger · int64 · required

    Order ID

Get order details by order Id › Responses

success

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

POST /order/{order_id}/update_status

POST
https://api.sellavi.com
/order/{order_id}/update_status

Updating single order status and adding comment , with optional notify

POST /order/{order_id}/update_status › path Parameters

  • order_idinteger · int64 · required

    Order ID

POST /order/{order_id}/update_status › Request Body

  • order_status_idinteger · required

    Number that represent valid order status id (you can find API call for this statuses)

    Example: 2
  • commentstring

    Comment that will appear in the order status history related to the status you update

    Example: Sent to customer X
  • notifyinteger · enum

    Pass 1 if you want to notifiy the customer abouth the status change

    Enum values:
    0
    1
    Default: 0
  • sms_notifyinteger · enum

    Pass 1 if you want to notify client by sms

    Enum values:
    0
    1
    Default: 0
  • sms_contentstring · max: 150

    Message that will be sent to the customer associated with current order

    Example: Thank you, your order complete!
    Default: null

POST /order/{order_id}/update_status › Responses

success

  • successboolean

    Determine if update action executed successfullyy

    Example: true
  • messagestring

    Include short description if there is an error or success

    Example: Order status updated successfully
  • request_idstring
    Example: 1ef2da0b-6f98-6fec-b13f-06c63b84be49