customers details

Retrieve complete customer records (names, phone numbers, etc.) through this endpoint

Returns paginated customer data with associated receipt and location information for authenticated vendors.

API Query Parameters Guide

🌐 URL Structure

All parameters are appended after ? in your request URL.

πŸ” Filter Parameters

ParameterDescriptionTypeExample
branchFilter by branch locationintegerbranch=3
posFilter by point of saleintegerpos=15
receiptFind specific receiptsstringreceipt=42

πŸ“– Pagination Controls

Parameter

Default

Max

Description

Example

page

1


Page number to retrieve

page=2

page_size

10

100

Items per page

page_size=20

πŸ’‘ Usage Tips

  • Combine parameters with &:
    ?branch_id=3&page_size=20&page=2
  • Error Handling:
    • 400 for invalid parameters
    • Empty results for valid but unmatched queries
  • Encoding: Always URL-encode special characters

Authentication

Authorization: Bearer <your_jwt_token>

πŸ“‹ Example Request

GET /api/v2/vendor/customers/?branch=3&pos=15&page=2&page_size=20
Language
Click Try It! to start a request and see the response here!