Retrieve customer eligible prepaid cards programs
GET/profile/prepaid/programs
Retrieve eligible programs for a customer.
Request
Responses
- 200
- 405
- 500
OK
- application/json
- Schema
- Example (from schema)
- GET_ELIGIBLE_PROGRAMS
Schema
Array [
- VISA - VISA
- MC - Mastercard The scheme is derived from the card PAN.
]
programs
object[]
Possible values: [PHYSICAL
, VIRTUAL
]
Supported card types. Currently we support only VIRTUAL
and PHYSICAL
Possible values: [VISA
, MC
]
Card scheme information.
Program name that will be used for card creation
List of supported currencies. Example "EUR"
Default value: 1
The number of cards that can be issued with this program.
The isDigital field is related only to the 'PHYSICAL' card.
{
"programs": [
{
"cardType": "PHYSICAL",
"scheme": "VISA",
"name": "BRAND-PHYSICAL-MC",
"currencies": [
"EUR"
],
"allowableCards": 1,
"isDigital": false
}
]
}
{
"programs": [
{
"cardType": "VIRTUAL",
"scheme": "MC",
"name": "BRAND-VIRTUAL-MC-EEA",
"currencies": [
"EUR"
],
"allowableCards": 1,
"isDigital": false
},
{
"cardType": "PHYSICAL",
"scheme": "MC",
"name": "BRAND-PHYSICAL-MC-EEA",
"currencies": [
"EUR"
],
"allowableCards": 1,
"isDigital": true
}
]
}
Method Not Allowed
- application/json
- Schema
- Example (from schema)
- DW-OPERATION-NOT-ALLOWED
Schema
Array [
]
error
object
Additional details about an error
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-OPERATION-NOT-ALLOWED",
"message": "Operation is not allowed in your account. Contact Paysafe for further details.",
"details": [
"Operation is not allowed in your account. Contact Paysafe for further details."
]
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- INTERNAL_ERROR
Schema
Array [
]
error
object
Additional details about an error
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-INTERNAL-SERVER-ERROR",
"message": "Internal Server Error.",
"details": [
"Internal Server Error."
],
"fieldErrors": []
}
}