Payer allowed payment cards
URL
/cnbs/v1/customers/id/payer_allowed_pc
Method
GET
Parameters
Required
- Customer Number (customer_number)
- Company Code (company_code)
Optional
- Generic key (generic_key)
- The generic_key field is part of the configuration table. It can be used to refine the selection and the configuration for the allowed payment cards.
Example
cURL
curl -X GET "https://<<your.server.here>>/cnbs/v1/customers/id/payer/allowed_pc?sap-client=800&sap-language=EN&apiid=CNBSMV01R&customer_number=3050&company_code=3000" -H "accept: application/json" -H "cnbssysid: W1B//vRKywJ2sPUVQG4CQ16Sf9XSN+N4Fkc6Bfmky3k="
Response
- Payment Cards (payment_cards)
- Payment provider (payment_provider)
- Payment Card type (payment_card_type)
- Payment Card type UI (payment_card_type_ui)
Example Response
{
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed"
},
"payment_cards": [
{
"payment_provider": "PM",
"payment_card_type": "AMEX",
"payment_card_type_ui": "American Express"
},
{
"payment_provider": "PM",
"payment_card_type": "EC",
"payment_card_type_ui": "eCheck"
},
{
"payment_provider": "PM",
"payment_card_type": "MC",
"payment_card_type_ui": "Master Card"
},
{
"payment_provider": "PM",
"payment_card_type": "VISA",
"payment_card_type_ui": "Visa",
}
]
}