# Set Credit Limit source: https://developer.mastercard.com/mastercard-processing-credit/documentation/sandbox-testing/credit-card/set-credit-limit/index.md ## Test case -- Success {#test-case--success} This test case describes setting a new credit limit for a specified contract stored in the CMS. **Sample request** `PUT /contracts/60001/credit-limit` ```JSON { "amount": 4000 "currency": "EUR", "effectiveDate": "2030-06-25", "operator": "EQUAL" } ``` **Sample response** `204` ## Test case -- Fail -- Revolving credit limit not set {#test-case--fail--revolving-credit-limit-not-set} This test case describes an attempt to set a new credit limit for a specified contract stored in the CMS that does not have a credit limit. For this test case, use the following information in the request: | Field | Available value | |----------|-----------------| | `amount` | 9999 | **Sample request** `PUT /contracts/60001/credit-limit` ```JSON { "amount": 9999 "currency": "EUR", "effectiveDate": "2030-06-25", "operator": "EQUAL" } ``` **Sample response** `400` ```JSON { "Errors": { "Error": [ { "Source": "MASTERCARD PROCESSING", "ReasonCode": "CREDIT_LIMIT_IS_MISSING", "Description": "Credit limit is missing.", "Recoverable": false } ] } } ```