getPaymentTypes
get
/ccadmin/v1/merchant/paymentTypes
Get Payment Types. Get all payment types.
Request
Supported Media Types
- application/json
Query Parameters
- limit
-
Type:
integerThe number of items per block- offset
Type:integerstartingIndex the index of the first item to return- sort
Type:stringSort Option id: Sort order- totalResults
Type:booleanflag to include total count of itemsResponse
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : getPaymentTypes_response- items
-
Type:
arrayitemsAdditional Properties Allowed:List of payment types.
Nested Schema : itemsNested Schema : itemsType:object- code
-
Type:
stringThe payment gateway specific code for the payment type. - cvvLength
-
Type:
integerValid cvv length. - iin
-
Type:
stringIssuer identification number for the payment type. - img
-
Type:
objectimgAdditional Properties Allowed:Payment type image URL. - length
-
Type:
stringValid card number length. - name
-
Type:
stringThe internal name for the payment type. - repositoryId
-
Type:
stringThe repository ID of the payment type item. - startDateRequired
-
Type:
booleanWhether the the start date of the credit card is required for this payment type. - type
-
Type:
stringKind of payment type.For e.g.: card,check,etc. - value
-
Type:
stringThe value for the payment type.
Nested Schema : imgType:objectPayment type image URL.- name
-
Type:
stringName of the image. - path
-
Type:
stringRelative path of the image. - repositoryId
-
Type:
stringThe id of the media external image file. - url
-
Type:
stringThe derived URL for the image.
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 ResponseThe error responseBodyRoot Schema : errorModelType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errorsNested Schema : itemsType:object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
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" }]}