Listing Payment Sets
- Endpoint:
/pws/paymentSet - HTTP Method:
GET - Request Content-Type:
application/json - Response Content-Type:
application/json - Authorization: A valid AccessToken is required. (See: 2. Authentication – Obtaining AccessToken)
Description
This service lists all payment sets defined in the portal.
Each payment set is associated with POS entries and rate definitions registered in the system.
The service does not accept any parameters — it returns all active payment sets accessible by the authorized user.
Header Information
| Header Name | Required | Description |
|---|---|---|
| Authorization | Yes | Valid token in Bearer {AccessToken} format. |
| Content-Type | No | application/json |
Request
This service does not accept any body or query parameters.
It is called only with a valid AccessToken.
Sample Request
Method: GET /pws/paymentSet
Authorization: Bearer {AccessToken}
URL: https://pgw.netahsilatdemo.com/pws/paymentSet
Response Structure
The service returns all payment sets defined in the system as an array.
Each item represents a PaymentSet object.
PaymentSet Fields
| Parameter | Type | Description |
|---|---|---|
| id | string (GUID) | Unique identifier of the payment set |
| name | string | Payment set name |
| isDefault | boolean | Is it the default set |
| isActive | boolean | Active status |
| description | string | Description text |
| isShowNetAmount | boolean | Is net amount display enabled |
| canUserChangeCommApplyType | boolean | Can the user change the commission type |
| erpCode | string | Payment set code in the ERP system |
- Sample Response
- Sample cURL
[
{
"id": "18d971fc-97da-4962-88af-02e4f67c94fb",
"name": "Tami",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"erpCode": "TamiErp"
},
{
"id": "5ede1b5a-6f59-45f4-9cbe-0a910fe244c3",
"name": "SümeyyeÇengel2",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"erpCode": "55555"
}
]
curl --location 'https://pgw.netahsilatdemo.com/pws/paymentSet' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJwd3N2MS5hcGkiLCJlcnB2MS5hcGkiLCJjYXR2MS5hcGkiLCJ2ZW5kb3J2MS5hcGkiXSwiYWN0b3J0Ijoic2VydmljZSIsInJvbGUiOiJzZXJ2aWNlIiwiVW5pcXVlIjoiZmU2OGQ5ZjEtMjYyNy00NTdlLThkMmUtNDJkNGMyM2JhZTlhIiwiVGVuYW50SWQiOiI2NzA2ODNjMS0yZmUwLTQ4NDYtODdiMi02Y2JhOWI3OTNhYjIiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL2V4cGlyYXRpb24iOiI2Mzg5Njk2OTI3Mjg4NTEwMjYiLCJuYmYiOjE3NjExOTk2NzIsImV4cCI6MTc2MTM3MjQ3MiwiaWF0IjoxNzYxMTk5NjcyLCJpc3MiOiJzc28uYXBpIiwiYXVkIjoiZWNvenVtLnNzbyJ9.HXpxywhXCFfGclnFEBpOTOCdihT7ftMPyWtQEv2_Oak'