updatePaymentTypes

put

/ccadmin/v1/merchant/paymentTypes

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

Request

Supported Media Types
Body ()
Root Schema : updatePaymentTypes_request
Type: object
Show Source
Example:
{
    "paymentTypes":[
        "visa"
    ]
}
Nested Schema : paymentTypes
Type: array
Array of payment types to enable.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updatePaymentTypes_response
Type: object
Show Source
Nested Schema : items
Type: array
List of payment types.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : img
Type: object
Payment type image URL.
Show Source
Example Response (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
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top