Betalingsservice work with hard deadlines for delivering monthly payment information. As an extension to this, OnlineFundraising provides a service to retrieve deadlines for Betalingsservice programatically.
1. How it Works
Betalingsservice deadlines are due monthly and usually announced 6-12 months in advance. The complete overview is available on their website. OnlineFundraising summarises the deadlines for each month and exhibit them in a JSON-format which is accessible via a link.
2. Access Service
To access the info-file of a month, adhere to the following syntax:
https://info.onlinefundraising.dk/bs/bs_yyyy_MM.json
For example, to obtain information on Betalingsservice deadlines for December 2022, the link is constructed as such:
https://info.onlinefundraising.dk/bs/bs_2022_12.json
3. File Content
Example of JSON-file below:
{ "subscriptionDeadline": "2022-12-21 17:00:00", "beforeDeadline": { "nextPossibleAgreementDate": "2023-01-01", "nextPossiblePaymentDate": "2023-01-02" }, "afterDeadline": { "nextPossibleAgreementDate": "2023-02-01", "nextPossiblePaymentDate": "2023-02-01" } }
The below table describes the JSON-object contained in the JSON-file.
Property |
Format and Description |
---|---|
subscriptionDeadline |
string<yyyy-MM-dd HH:mm:ss> Betalingservice deadline |
beforeDeadline |
object Object detailing dependent deadlines before subscription deadline. |
beforeDeadline.nextPossibleAgreementDate |
string<yyyy-MM-dd> Next possible agreement start date before subscription deadline. |
beforeDeadline.nextPossiblePaymentDate |
string<yyyy-MM-dd> Next possible payment date before subscription deadline. |
afterDeadline |
object Object detailing dependent deadlines after subscription deadline. |
afterDeadline.nextPossibleAgreementDate |
string<yyyy-MM-dd> Next possible agreement start date after subscription deadline. |
afterDeadline.nextPossiblePaymentDate |
string<yyyy-MM-dd> Next possible payment date after subscription deadline. |