1. Auth
POS Toko Kue
  • Physical Transfer
    • List Physical Transfer
      GET
    • Show
      GET
    • Create
      POST
    • Update Status Transfer
      POST
    • Delete
      DELETE
    • Update
      PUT
  • Supplier
    • Get All
      GET
    • Get By Id
      GET
    • Create
      POST
    • Update
      PUT
    • Delete
      DELETE
  • Cash Book
    • Get By ID
      GET
    • Get All
      GET
    • Create
      POST
    • Update
      POST
    • Delete
      DELETE
    • Get Widget
      GET
    • Update Balance
      POST
    • Cash Book sync
      POST
  • Return
    • Export
      • Return Export
    • CREATE
    • Get
    • Get by id
    • Return sync
  • Receipt
    • Export
      • Receipt Export
    • GET
    • GET By ID
    • Create
    • Receipt sync
  • Auth
    • Login
      POST
    • Forgot Password
      POST
    • New Password
      POST
    • Change Password
      POST
    • Verify Otp
      POST
    • Logout
      POST
    • Refresh Token
      POST
    • Profile
      GET
    • Edit Profile
      POST
  • Stock Opname
    • Approve Stock Opname
    • Get
    • Create
    • Get By ID
    • UPDATE
    • DELETE
    • StockOpname Sync
    • Export Stock Opname
  • Store
    • GET
    • Switch Store
    • Activation
    • Activate
    • New Otp
    • Show
    • Profile
    • Delete
    • Update
    • Destroy
  • Product
    • List product
    • Detail
    • Create
    • Update
    • Delete
    • Get Product Batch
    • Get Product Stock History
    • Get Expire soon product
    • Get Low Stock Product
    • [Dev only] Get Product Stock History
    • [Dev Only] Create dummy product batch
    • [Dev Only] Delete product that doesn't have detail
    • [DEV Only]Sync product stock
  • Role
    • List
  • Catalog
    • Material
      • Store
      • Destroy
    • List
    • Destroy
    • Show
    • Update
    • Store
  • Member
    • Export
    • List
    • Destroy
    • Show
    • Store
    • Update
  • Employee
    • List
    • Destroy
    • Show
    • Store
    • Update
  • Discount
    • List
    • Show
    • Store
    • Update
    • Delete
  • Store Payment
    • List
    • Store
    • Update
  • Store Additional Information
    • My Store Additional Information
    • Update
  • Package
    • List
    • Show
    • Store
    • Update
    • Destroy
  • Reference
    • Get All Province
    • Get All City
    • Get All District
    • Get All Village
    • Bank
  • Settings
    • Application
  • Transaction
    • Evidence
      • Store
    • Widget Transaction
    • Transaction sync
    • Create Transaction
    • Get Transaction
    • Detail Transaction
    • Delete
  • Report
    • Export
      • Export History Transaction
      • Export Sales Report
    • Consignment
      • Widget Consignment Load
      • Get Consignment Suppliers
      • Get Detail Consignment Supplier
      • Export Consignment Supplier
      • Suppliers-Pay
      • Get Widget Detail
    • Sales report
    • Sales item report
    • Most selling report
    • Cash flow report
    • Widget Dashboard
  • Customer Service
    • New Request
  • Stock Adjustment
    • Get All
    • Create
    • Get By ID
    • Delete
    • Update
  • Stock Reconciliation
    • GET
  • Category
    • Get
  • Send Payment Receipt
    POST
  • Change request
    POST
  • Change confirm
    POST
  1. Auth

Login

Develop Env
http://localhost:8000
Develop Env
http://localhost:8000
POST
/api/v1/login

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params multipart/form-data

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8000/api/v1/login' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--form 'username="sibakul"' \
--form 'password="password"'
Response Response Example
{
    "success": true,
    "message": "Login berhasil",
    "data": {
        "user": {
            "id": 3,
            "name": "Admin Store",
            "username": "store",
            "email": "admin.store@mail.test",
            "email_verified_at": null,
            "password_change_at": "2025-11-06 12:45:55",
            "photo_profile": null,
            "created_at": "2025-11-06T05:09:34.000000Z",
            "updated_at": "2025-11-06T05:45:55.000000Z",
            "deleted_at": null,
            "can_access_stock_opname": true,
            "roles": [
                {
                    "id": 2,
                    "name": "store_owner",
                    "guard_name": "web",
                    "created_at": "2025-11-06T05:09:33.000000Z",
                    "updated_at": "2025-11-06T05:09:33.000000Z",
                    "pivot": {
                        "model_type": "App\\Models\\User",
                        "model_id": 3,
                        "role_id": 2
                    }
                }
            ],
            "employee": {
                "id": 1,
                "role": "ADMIN",
                "first_name": "Admin",
                "last_name": "",
                "nik": null,
                "birth_date": null,
                "birth_place": null,
                "email": "admin.store@mail.test",
                "phone": 8755667068,
                "address": null,
                "photo_url": null,
                "is_active": 0,
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2025-11-06T05:09:34.000000Z",
                "updated_at": "2025-11-06T05:09:34.000000Z",
                "laravel_through_key": 3,
                "store": {
                    "id": 1,
                    "name": "Store One",
                    "avatar_url": "",
                    "email": "store@mail.test",
                    "phone": "9876543219",
                    "address": "456 Market St",
                    "balance": "-307000.00",
                    "monthly_revenue": "10000.00",
                    "longitude": "112.72553163",
                    "latitude": "-7.35126886",
                    "photo_url": [],
                    "color": "E3007F",
                    "receipt_logo": "0",
                    "receipt_footer": "Test",
                    "minimum_stock": 0,
                    "tolerance_days_before_expiration": 0,
                    "is_active": "1",
                    "created_by": 1,
                    "updated_by": 3,
                    "created_at": "2025-11-06T05:09:34.000000Z",
                    "updated_at": "2025-12-04T07:20:22.000000Z",
                    "deleted_by": null,
                    "deleted_at": null,
                    "laravel_through_key": 1
                },
                "stores": [
                    {
                        "id": 1,
                        "name": "Store One",
                        "avatar_url": "",
                        "email": "store@mail.test",
                        "phone": "9876543219",
                        "address": "456 Market St",
                        "balance": "-307000.00",
                        "monthly_revenue": "10000.00",
                        "longitude": "112.72553163",
                        "latitude": "-7.35126886",
                        "photo_url": [],
                        "color": "E3007F",
                        "receipt_logo": "0",
                        "receipt_footer": "Test",
                        "minimum_stock": 0,
                        "tolerance_days_before_expiration": 0,
                        "is_active": "1",
                        "created_by": 1,
                        "updated_by": 3,
                        "created_at": "2025-11-06T05:09:34.000000Z",
                        "updated_at": "2025-12-04T07:20:22.000000Z",
                        "deleted_by": null,
                        "deleted_at": null,
                        "pivot": {
                            "employee_id": 1,
                            "store_id": 1,
                            "created_at": "2025-11-06T05:09:34.000000Z",
                            "updated_at": "2025-11-06T05:09:34.000000Z",
                            "created_by": null,
                            "updated_by": null
                        }
                    }
                ]
            }
        },
        "token": "898|NoKbi6c3aVqTAnOCMh78dwl9eqaGz00UtyDKzikz560f53f3",
        "is_first_login": false,
        "store_list": [
            {
                "id": 1,
                "name": "Store One",
                "address": "456 Market St",
                "photo_url": []
            }
        ]
    }
}
Modified at 2026-01-19 01:59:30
Previous
Receipt sync
Next
Forgot Password
Built with