bosOnline
  1. auth
bosOnline
  • bosOnline
  • BosOnline
    • auth
      • Register
        POST
      • Login
        POST
      • Refresh Token
        POST
    • Product
      • Inventory
      • Download Inventory
      • Download Variant
      • Update Inventory
      • Get Category
      • Get Edit Product
      • Product List
      • Edit Product Detail (Product Detail)
      • product
      • Delete Product
      • Edit Status Product (Product List)
      • Download Product (Product List)
      • Product Detail
      • Product Variant
      • Edit Status Variant (Product Detail)
      • Update Variant
      • Upload Image
      • Cek SKU
    • Form
      • Form
      • Edit Form
      • Form Detail
      • Edit Status Form (Product Detail)
      • Form list
      • Custom Success Page
      • Custom Success Page
      • Edit Success Page
    • Order
      • Checkout
        • Request Create Order
        • Request Create Order Abandoned
      • Follow up
        • Follow Up
        • Follow Up Attempts
      • Edit Choose Courier
      • Edit Payment Method
      • Detail Order
      • Edit Customer Order
      • Edit Another Fee
      • Order List
      • Confirm Payment
      • Update Payment Method
      • Update Pengiriman Kurir
      • Update Status Order
    • Store
      • Custom Domain
        • Set Default Subdomain
        • Subdomain
        • Create Subdomain
        • Verifikasi Subdomain
        • Get Revenue
      • Store
      • Cek SubDomain
      • Get Region
      • Store
      • Warehouse
      • On Boarding
      • Recap Order
      • Recap Store
      • Recap Product
      • Recap CS
      • Tips
      • Announcement
      • Edit Subdomain
    • API Boscod
      • Cek Ongkir
      • Wilayah
      • Tracking Order
      • Reset Password
      • Warehouse
      • Order Shipping
      • winpay service
    • Profile
      • Warehouse
      • Edit Warehouse
      • Profile
      • Data Deletion
      • Default Warehouse
      • Me
    • Staff
      • Staff
      • Delete staff
      • Create Staff
      • Edit Status Staff
    • Rekening
      • Bank List
      • Get Rekening List
      • Rekening Detail
      • Create Rekening
      • Edit Rekening
      • Delete Rekening
      • Edit Status Rekening
    • Voucher
      • List Voucher
      • Edit Voucher Status
      • Voucher
      • List Voucher Checkout
      • Delete Voucher
  • AdminBosOnline
    • Dashboard
      • Recap Store
      • Revenue
      • Order Recap
  1. auth

Refresh Token

Testing
POST
/auth/refresh/
BosOnline/auth
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/auth/refresh/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "refresh_token": "{{refresh_token}}"
}'
Response Response Example
200 - Success
{
    "message": "Login successful",
    "token": {
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
        "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
        "expires_in": 3600,
        "issued_at": "2025-06-15 03:00:07.429721+07",
        "token_type": "Bearer"
    },
    "user": {
        "id": 123,
        "name": "John Doe",
        "email": "john@example.com",
        "role_id": 1,
        "store_id": 456,
        "staff_id": 789,
        "store_name": "John Doe's Store",
        "boscod": "token_from_boscod_api"
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Examples

Responses

🟢200OK
application/json
Body
message
string 
required
token
object 
required
access_token
string 
required
refresh_token
string 
required
expires_in
integer 
required
issued_at
string 
required
token_type
string 
required
user
object 
required
id
integer 
required
name
string 
required
email
string 
required
role_id
integer 
required
store_id
integer 
required
staff_id
integer 
required
store_name
string 
required
boscod
string 
required
🟠400Invalid input
🟠401Unauthorized
Modified at 2025-06-20 03:35:55
Previous
Login
Next
Product
Built with