Flavours API Documentation
    Flavours API Documentation
    • Readme
    • Developer Guide
    • Authorization
    • Includables
    • Pagination
    • Sorting
    • Retrieve Market Information
    • Retrieve Branch Information
    • Me
      • Overview
      • Detail
        GET
    • Branches
      • Overview
      • List
        GET
      • Detail
        GET
      • Create
        POST
      • Update
        POST
      • Delete
        DELETE
    • Orders
      • Overview
      • List
        GET
      • Detail
        GET
      • Create
        POST
      • Calculate
        POST
      • Checkout
        POST
      • Update
        POST
      • Sync
        POST
    • Customers
      • Overview
      • List
        GET
      • Detail
        GET
      • Create
        POST
      • Update
        POST
    • Products
      • Overview
      • List
      • Detail
      • Create
      • Update
      • Delete
    • Product Categories
      • Overview
      • List
      • Detail
    • Discounts
      • Overview
      • List
      • Detail
      • Verify
    • Payment Methods
      • Overview
      • List
      • Detail
    • Table
      • Overview
      • List
      • Detail
      • Create
      • Update
      • Delete
    • Printer
    • Webhook
      • Orders Webhooks
        • Webhook Events
        • Payload
      • Product Webhooks
        • Webhook Events
        • Payload
      • Loyalty Webhooks
        • Promotional Coupon
      • Customers Webhooks
        • Webhook Events
        • Payload
      • Error Webhook
        • Stay Alert to Connectivity Issues
      • Third-Party
        • Ballurh
          • Install Ballurh
        • Loyapro
          • Loyalty
            • Check Reward
            • Redeem Reward
        • Bonat
          • Check Reward
          • Redeem Reward
        • Fai
          • Register Entity

    Sorting

    For endpoints with List requests, the API supports sorting the response based on predefined system fields
    Sorting is added as a parameter sort=field_name in the request
    The default sorting when using sortable field is from smaller to larger or older to newer. Sorting can be reversed by putting a minus - sign before sortable field like sort=-field_name

    Example :#

    if you sorted by sort=created_at, API will return oldest created to newest created.
    if you sorted by sort=-created_at, API will return newest created to oldest created.
    Modified at 2023-10-29 22:04:15
    Previous
    Pagination
    Next
    Retrieve Market Information
    Built with