Documentation for a newer release is available. View Latest

Handle Validate Scheme Rules - AmtLimit.story

Scenario: Handling validation of scheme rules invalid amount limit checked for Debtor direction

When the ⦅Payment Service⦆ sends a Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].intrBkSttlmAmt.value | 1500000.01 |
| customBusinessData | supportingContext(flowType,DEBTOR) |

Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | FAILURE |
| getPayload().getContent().reasonCode | AM02 |
| getPayload().getContent().description | Amount exceeds scheme limit |
| requestId | #ValidateSchemeRulesRequest.ipfId |

Scenario: Handling validation of scheme rules invalid amount limit not checked for Creditor direction

When the ⦅Payment Service⦆ sends a Validate Scheme Rules Request with values:
| getPayload().getContent().cdtTrfTxInf[0].intrBkSttlmAmt.value | 1500000.01 |
| customBusinessData | supportingContext(flowType,CREDITOR) |

Then ⦅the Payment Service⦆ receives a Validate Scheme Rules Response with values:
| status | SUCCESS |
| requestId | #ValidateSchemeRulesRequest.ipfId |