updatePaymentTypes

put

/ccadmin/v1/merchant/paymentTypes

Update Payment Types. Update payment types based on request parameters.

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : updatePaymentTypes_request
Nested Schema : paymentTypes
Type: array
Array of payment types to enable.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updatePaymentTypes_response
Nested Schema : items
Type: array
List of payment types.
Nested Schema : items
Type: object
Nested Schema : img
Type: object
Payment type image URL.
Example application/json

{
    "items":[
        {
            "img":{
                "path":"/ccimg/visa_straight.png",
                "name":"Visa",
                "repositoryId":"imgVisa",
                "url":"http://localhost:9080/file/ccimg/visa_straight.png"
            },
            "code":"001",
            "name":"Visa",
            "startDateRequired":false,
            "length":"13|16",
            "repositoryId":"visa",
            "type":"card",
            "value":"visa",
            "cvvLength":3,
            "iin":"4"
        },
        {
            "img":{
                "path":"/ccimg/mastercard.png",
                "name":"Mastercard",
                "repositoryId":"imgMastercard",
                "url":"http://localhost:9080/file/ccimg/mastercard.png"
            },
            "code":"002",
            "name":"Mastercard",
            "startDateRequired":false,
            "length":"16",
            "repositoryId":"mastercard",
            "type":"card",
            "value":"mastercard",
            "cvvLength":3,
            "iin":"5[0-5]"
        },
        {
            "img":{
                "path":"/ccimg/amex.png",
                "name":"American Express",
                "repositoryId":"imgAmex",
                "url":"http://localhost:9080/file/ccimg/amex.png"
            },
            "code":"003",
            "name":"American Express",
            "startDateRequired":false,
            "length":"15",
            "repositoryId":"amex",
            "type":"card",
            "value":"amex",
            "cvvLength":4,
            "iin":"3[47]"
        }
    ]
}
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{"paymentTypes": ["visa"]}

Sample Response Payload returned by endpoint:

{"items": [
  {
    "img": {
      "path": "/ccimg/visa_straight.png",
      "name": "Visa",
      "repositoryId": "imgVisa",
      "url": "http://localhost:9080/file/ccimg/visa_straight.png"
    },
    "code": "001",
    "name": "Visa",
    "startDateRequired": false,
    "length": "13|16",
    "repositoryId": "visa",
    "type": "card",
    "value": "visa",
    "cvvLength": 3,
    "iin": "4"
  },
  {
    "img": {
      "path": "/ccimg/mastercard.png",
      "name": "Mastercard",
      "repositoryId": "imgMastercard",
      "url": "http://localhost:9080/file/ccimg/mastercard.png"
    },
    "code": "002",
    "name": "Mastercard",
    "startDateRequired": false,
    "length": "16",
    "repositoryId": "mastercard",
    "type": "card",
    "value": "mastercard",
    "cvvLength": 3,
    "iin": "5[0-5]"
  },
  {
    "img": {
      "path": "/ccimg/amex.png",
      "name": "American Express",
      "repositoryId": "imgAmex",
      "url": "http://localhost:9080/file/ccimg/amex.png"
    },
    "code": "003",
    "name": "American Express",
    "startDateRequired": false,
    "length": "15",
    "repositoryId": "amex",
    "type": "card",
    "value": "amex",
    "cvvLength": 4,
    "iin": "3[47]"
  }
]}