Skip to main content

List Payment Methods

curl -X GET "http://localhost:8080/api/v1/payment-methods" \
  -H "Authorization: Bearer YOUR_TOKEN"
Get a list of all active payment methods (e.g., Cash, QRIS, Gopay).

Response

data
array
Array of payment method objects

Response Example

{
  "message": "Payment methods retrieved successfully",
  "data": [
    {
      "id": 1,
      "name": "Cash",
      "is_active": true,
      "created_at": "2024-01-15T10:30:00Z"
    },
    {
      "id": 2,
      "name": "QRIS",
      "is_active": true,
      "created_at": "2024-01-15T10:30:00Z"
    },
    {
      "id": 3,
      "name": "Gopay",
      "is_active": true,
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}

Roles

Accessible by: admin, manager, cashier

Build docs developers (and LLMs) love