Dealer & Customer Payment Set Listing
Description
Used to view payment sets defined for dealers and customers.
- URL:
/api/erp/paymentSet - Method:
GET - Header: Do not forget the AccessToken!
- Filters: You can search using Dealer or Sub-Dealer ID or Code, Customer or Sub-Customer ID or Code parameters. Pagination is also available.
- Response: Payment set information is returned in three layers: the default set, all defined sets, and the sets that the user can select.
Query Parameters (Filtering)
| Parameter | Type | Description |
|---|---|---|
| dealerCode | string | Dealer & Sub-Dealer code/erpCode value |
| customerCode | string | Customer & Sub-Customer code/erpCode value |
Pagination
You can organize the results using page (which page) and pageSize (how many records per page).
| Parameter | Type | Default | Description |
|---|---|---|---|
| page | int | 1 | Page to be retrieved |
| pageSize | int | 10 | Records per page |
Response Structure
For dealer members, the response returns payment sets in three layers:
- defaultPaymentSetDefinition → The member’s default payment set information
- paymentSetDefinition → All defined payment sets
- usablePaymentSetDefinitionIds → Payment sets that the relevant user can select
For customer members, the response returns payment sets in three layers:
- defaultPaymentSetDefinition → The member’s default payment set information
- paymentSetDefinition → All defined payment sets
- Since only one payment set can be defined for customer-type members, you will see that a single value is returned.
- Sample Response Customer
- Sample Response Dealer
- Sample CURL
{
"id": "4cda620c-b041-4fa9-b256-78c8606be486",
"name": "Deneme ",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"transactionType": 40,
"erpCode": "",
"usablePaymentSetDefinitions": []
}
{
"id": "6c434f51-43da-481e-9a15-363a49784fb0",
"name": "10.06Deneme",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"transactionType": 40,
"erpCode": "",
"usablePaymentSetDefinitions": [
{
"id": "3b3503ef-e4a4-4e45-aab8-53eb38381004",
"name": "param default",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"transactionType": 40,
"erpCode": "",
"usablePaymentSetDefinitions": null
},
{
"id": "695b9f2a-71ae-48f8-83f8-73020a100e65",
"name": "Akbank BeyzaD",
"isDefault": false,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"transactionType": 40,
"erpCode": "",
"usablePaymentSetDefinitions": null
},
{
"id": "2762130d-d34d-4ddf-b8c0-ca9c49b8c5e5",
"name": "Ödeme Seti Test",
"isDefault": true,
"description": "",
"isActive": true,
"isShowNetAmount": false,
"canUserChangeCommApplyType": false,
"transactionType": 10,
"erpCode": "55555",
"usablePaymentSetDefinitions": null
}
]
}
curl --location 'https://prodtest_gw.finrota.com/erp/agent/NT44276512/paymentset' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJlcnB2MS5hcGkiLCJjYXR2MS5hcGkiLCJ2ZW5kb3J2MS5hcGkiXSwiYWN0b3J0Ijoic2VydmljZSIsInJvbGUiOiJzZXJ2aWNlIiwiVW5pcXVlIjoiMmNjMWFkZDUtYTZmZi00ZjMxLWE0YzYtYzdlMzYwNzdhODNlIiwiVGVuYW50SWQiOiIyZTY0ZDkzOS1kNTZmLTRjNzgtYTc2Zi04NGQwZDQ0NTA2N2IiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL2V4cGlyYXRpb24iOiI2Mzg5NDI5OTk0Mjg2MDU3ODkiLCJuYmYiOjE3NTg1MzAzNDIsImV4cCI6MTc1ODcwMzE0MiwiaWF0IjoxNzU4NTMwMzQyLCJpc3MiOiJzc28uYXBpIiwiYXVkIjoiZWNvenVtLnNzbyJ9.9oo4RgktUmuN6MZ3W4h9jOdZXHlEHC_e0KPOCFy2Jag'