...
Code Block |
---|
{ "totalRecords": 7, "pageSize": 100, "currentPage": 1, "data": [ { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2022-03-25T00:00:00", "periodFrom": "2022-01-01T00:00:00", "periodTo": "2022-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 150.000, "comment": "Test KFK paid for club membership 2021 og 2022?", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2022-03-25T00:00:00", "periodFrom": "2022-01-01T00:00:00", "periodTo": "2022-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 150.000, "comment": "Test KFK paid for club membership 2021 og 2022?", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2021-01-25T00:00:00", "periodFrom": "2021-01-01T00:00:00", "periodTo": "2021-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 100.000, "comment": "Test KFK paid for club membership 2021", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2021-01-25T00:00:00", "periodFrom": "2022-01-01T00:00:00", "periodTo": "2022-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 100.000, "comment": "Test KFK paid for club membership 2021", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2021-01-25T00:00:00", "periodFrom": "2023-01-01T00:00:00", "periodTo": "2023-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 100.000, "comment": "Test KFK paid for club membership 2023", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2021-01-25T00:00:00", "periodFrom": "2021-01-01T00:00:00", "periodTo": "2021-12-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 150.000, "comment": "Test KFK paid for club membership 2021", "externalReference": "POSTMAN KFK" }, { "personId": 9285654, "paidToOrgId": 20082, "paymentTypeId": 0, "paidDate": "2021-01-25T00:00:00", "periodFrom": "2022-01-01T00:00:00", "periodTo": "2022-10-31T00:00:00", "paymentCategory": "Medlemskap", "fee": 150.000, "comment": "Test KFK paid for club membership 2021 og 2022?", "externalReference": "POSTMAN KFK" } ] } |
Corporate Sports API
Overview
Method | API Endpoint | Description |
GET | /read/api/Payment/paymentdetails | Returns list of payment information made for Corporate Sports club level membership. |
Resource Information
Response Format | JSON |
Requires Authentication | Yes |
Request Headers
| Name | Required | Description | Example |
1 | OgId | Yes | Club Id for which API is being requested. Pass Corporate Sport club’s ID here to get payment details for the membership of corporate sports club. |
|
2 | Authorization | Yes | This will be the token defining access to on-boarded club. |
|
3 | Ocp-Apim-Subscription-Key | Yes | API management’s subscription key. There will be a separate key for each Integrator. |
|
4 | OrgTypeId | Yes | 5 or 15 |
Request Parameters
| Name | Required | Description | Example |
1 | PersonId | Yes | Person Id for whom the request is made |
|
2 | FromDate | Yes | From date range
Possible Value
|
|
3 | ToDate | Yes | End date range
Possible Value
|
|
Response Codes
| Code | Type | Text |
1 | 200 | Success |
|
2 | 1022 | Error | PersonId is required. |
3 | 1023 | Error | From Date is required. |
4 | 1024 | Error | To Date is required. |
5 | 1025 | Error | From date should not be of year less than Today’s date year |
6 | 1026 | Error | To date should not be greater than From date. |
Response Example
Code Block |
---|
{
"totalRecords": 1,
"pageSize": 100,
"currentPage": 1,
"data": [
{
"personId": 9298186,
"paidToOrgId": 580411,
"paymentTypeId": 0,
"paidDate": "2022-03-25T00:00:00",
"periodFrom": "2022-01-01T00:00:00",
"periodTo": "2022-12-31T00:00:00",
"paymentCategory": "Medlemskap",
"fee": 150.000,
"comment": "Test KFK paid for club membership 2021 og 2022?",
"externalReference": "POSTMAN KFK"
}
]
} |