SAP Digital Payments - Get payment card registered with given session identifier
After finishing the PSP card registration view, this service must get called to retrieve the payment card data.
URL
/cnbs/v1/dp/card
Method
GET
Parameters
Required
- Session ID (session_id)
Sample Implementation
Response
- Payment Card Type (payment_card_type)
- Payment card type used for this transaction.
- Payment Card Token (payment_card_token)
- Tokenized payment card.
- Payment Card Name (payment_card_name)
- Full name of the payment card holder.
- Payment Card Valid-From (valid_from)
- Valid from date of the payment card.
- Payment Card Valid-To (valid_to)
- Expiry date of the payment card.
- Last Four (last_four)
- Last four digits
- Masket Card Number (masked_card_number)
- Status (status)
- Message Type (message_type)
- SAP Message Type.
- Errors:
- E = Error
- A = Abort
- X = Exception
- Others:
- S = Success
- W = Warning
- I = Information
- Message Identifier (message_identification)
- SAP Message ID.
- Message Number (message_number)
- SAP Message Number.
- Message Line (message_line_string)
- SAP Message Text.
Example Response
{
"paymentcard": {
"payment_card_type": "ACHE",
"payment_card_token": "MOKU4UHBFWCZ6WCVV3LTJRCY",
"payment_card_name": "Joe Doe",
"valid_from": "01-19-2026",
"valid_to": "12-31-2099",
"last_four": "6780",
"masked_card_number": "*****6780"
},
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed"
}
}