Add ovPasNumber and verificationCode, make birthDate optional, change type of amount to integer

This commit is contained in:
Max Martens 2025-03-24 11:28:03 +00:00
parent 5ec911727b
commit b7d8eff312

View File

@ -24,7 +24,7 @@ paths:
example: 2025-03-20
- name: birthDate
in: query
required: true
required: false
description: Birthdate of the OVpay-token holder
schema:
type: string
@ -57,8 +57,22 @@ paths:
required: false
description: amount belonging to the serviceReferenceId
schema:
type: number
type: integer
example: 100
- name: ovPasNumber
in: query
required: false
description: OVpas number of the customer's selected token
schema:
type: string
example: "63AW974"
- name: verificationCode
in: query
required: false
description: verification code belonging to the OVpas number
schema:
type: string
example: 1A3C7D
responses:
"200":
description: OK
@ -80,7 +94,7 @@ paths:
{
"type": "https://www.htm.nl/api/v1/400Error",
"title": "Missing parameter(s)",
"detail": "At least one of the following parameters must be present: ovPayTokenId, customerTokenId, (serviceReferenceId and amount)",
"detail": "At least one of the following parameters must be present: birthDate, ovPayTokenId, customerTokenId, (serviceReferenceId and amount), (ovPasNumber and verificationCode)",
"instance": "urn:uuid:13c8416f-7632-4c8b-8a16-2132197be60c",
"apiErrorCode": "htm.api.err.400.2",
}
@ -119,7 +133,7 @@ components:
- gboAgeProfileId
- name
- ageFromInclusive
- ageUntilInclusive
- ageToInclusive
properties:
gboAgeProfileId:
type: integer
@ -130,7 +144,7 @@ components:
ageFromInclusive:
type: integer
example: 4
ageUntilInclusive:
ageToInclusive:
type: integer
example: 11
rfc9457Response: