diff --git a/issuer-api.yaml b/issuer-api.yaml index 00c0fc8..21b5bce 100644 --- a/issuer-api.yaml +++ b/issuer-api.yaml @@ -570,6 +570,8 @@ paths: When the PIN Working Key (PWK) in `pwk` is not yet known, it is imported under the Zone Master Key (ZMK) the merchant and issuer share, and matched by its Key Check Value (KCV) afterwards. + A verified ARQC whose ATC (`9F36`) is not higher than the last one + accepted for the card is declined with ARC `94`. - Any other `type` is acknowledged and ignored. The Open Payments provider treats only a `200` as delivered and retries any other status. diff --git a/merchant-pos-api.yaml b/merchant-pos-api.yaml index ee478c9..8eb7477 100644 --- a/merchant-pos-api.yaml +++ b/merchant-pos-api.yaml @@ -139,6 +139,23 @@ paths: $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' + '409': + description: | + The card data was already used: the SRED `ksn` was accepted before + for the same terminal model. The issuer is not asked. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Problem' + examples: + cardDataReused: + summary: SRED KSN already used + value: + type: about:blank + title: Conflict + status: 409 + detail: 'card data was already used: its KSN was accepted before' + instance: 07cf97fa-7c93-4d22-8ad5-eba4116672e6 '500': $ref: '#/components/responses/InternalError' @@ -647,7 +664,9 @@ components: description: initialization vector accompanying the ciphertext on the C-2 kernel output. ksn: type: string - description: identifies the per-transaction DUKPT working key derived from the merchant iMEAK BDK. + description: | + identifies the per-transaction DUKPT working key derived from the merchant iMEAK BDK. + A KSN is used once per terminal model; a repeat is refused with `409`. AuthorizationPINPayload: type: object