getPaymentTypes

get

/ccadmin/v1/merchant/paymentTypes

Get Payment Types. Get all payment types.

Request

Supported Media Types
  • application/json
Query Parameters
limit
Type: integer
The number of items per block
offset
Type: integer
startingIndex the index of the first item to return
sort
Type: string
Sort Option id: Sort order
totalResults
Type: boolean
flag to include total count of items

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getPaymentTypes_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"
        }
    ]
}
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 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"
}]}