1. Transaction
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
    • Forgot Password
    • New Password
    • Change Password
    • Verify Otp
    • Logout
    • Refresh Token
    • Profile
    • Edit Profile
  • 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
      GET
    • Transaction sync
      POST
    • Create Transaction
      POST
    • Get Transaction
      GET
    • Detail Transaction
      GET
    • Delete
      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. Transaction

Create Transaction

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

Request

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

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8000/api/v1/transaction' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "member_id": 0,
  "transaction_time": "2025-11-05 10:40:00",
  "payment_id": 1,

  "subtotal": 10000,
  "discount": 0,
  "additional_fee": 21000,
  "total": 31000,

  "payment_nominal": 60000,
  "change": 29000,

  "products": [
    {
      "type": "PCS",
      "id": 1,
      "price_sell": 1,
      "batch_id": 10,
      "qty": 1
    }
  ],

  "discounts": [],

  "additional_fees": [
    {
      "name": "Pajak",
      "category": "TAX",
      "type": "PERCENTAGE",
      "value": 10,
      "nominal": 1000
    },
    {
      "name": "Ongkir",
      "category": "DELIVERY",
      "type": "NOMINAL",
      "value": 0,
      "nominal": 20000
    }
  ]
}'
Response Response Example
{
    "success": true,
    "message": "Berhasil menyimpan transaksi",
    "data": []
}
Modified at 2026-02-03 02:48:59
Previous
Transaction sync
Next
Get Transaction
Built with