SalesMania
  1. Visits
SalesMania
  • Authentication & Select Database
    • Get bearer token from Basic Auth
      GET
    • Get list of databases
      GET
    • Get team token for a selected database
      GET
  • Customers
    • Get customers
      GET
    • Add new customer
      POST
    • Get customer by ID
      GET
    • Update customer by ID
      PATCH
    • Delete customer by ID
      DELETE
  • Products
    • Get products
      GET
    • Add new product
      POST
    • Get product by ID
      GET
    • Update product by ID
      PATCH
    • Delete product by ID
      DELETE
  • Visits
    • Get visits
      GET
    • Add new visit
      POST
  • Orders
    • Add new order
      POST
    • Get order by ID
      GET
    • Update order by ID
      PATCH
  • Team
    • Get teams
      GET
  1. Visits

Get visits

GET
/extapi/v1.1/visits
Mendapatkan daftar visits dari database SalesMania.
Pastikan Anda menggunakan v1.1 di url untuk API ini, karena v1.0 sudah menggunakan skema yang berbeda dan sudah tidak kita support lagi.
Parameter wajib: date_from, date_to
Parameter team_id bila di-isi akan mem-filter visit untuk team_id tersebut.
Parameter customer_id bila di-isi akan mem-filter visit untuk customer_id tersebut.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
team_token
string 
required
Team token from api /extapi/v1.0/team_token
Example:
eyJkYl9pZCI6Mjk4MSwidGVhbV9pZCI6MjQ3Mjh9.LpZ9LEpy123lwzYjzypStjdk123
date_from
string <date>
required
Example:
2024-01-01
date_to
string <date>
required
Example:
2024-01-01
page
integer <uint>
optional
Default: 1
>= 1
Default:
1
Example:
1
team_id
integer 
optional
Example:
1
customer_id
integer 
optional
Example:
1

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.salesmania.id/extapi/v1.1/visits?team_token=eyJkYl9pZCI6Mjk4MSwidGVhbV9pZCI6MjQ3Mjh9.LpZ9LEpy123lwzYjzypStjdk123&date_from=2024-01-01&date_to=2024-01-01&page=1&team_id=1&customer_id=1'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-11-05 10:04:17
Previous
Delete product by ID
Next
Add new visit
Built with