Table of Contents

Get response

Get response from 3rd party payment provider.

URL

/cnbs/v1/tokenization/response

Method(s)

GET | POST

Overview

High level summary of required operations:

Sample Implementation

Live tokenization example

Parameters

Required

Example POST

JSON Payload:

{
  "action": "02",
  "access_token": "d833910a-6667-46a9-852a-b5bc5e8a100c"
}

cURL

curl -X POST "https://<<your.server.here>>/cnbs/v1/tokenization/response?sap-client=800&sap-language=EN&apiid=CNBSMV01P" -H  "accept: application/json" -H  "content-type: application/json" -H  "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -d "{  \"action\": \"02\",  \"access_token\": \"d833910a-6667-46a9-852a-b5bc5e8a100c\"}"

Example GET

cURL

curl -X GET "https://<<your.server.here>>/cnbs/v1/tokenization/response?sap-client=800&sap-language=EN&apiid=CNBSMV01R&action=02&access_token=bfe239ef-14c5-4473-bd6b-428f27034c5d" -H  "accept: application/json" -H  "content-type: application/json" -H  "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -H  "authorization: Basic Q05CU0FQSUlDRjpjbmJzNHlvdTE="

Response

Example Response

JSON:

{
  "paymentcard": {
    "payment_card_type": "VISA",
    "payment_card_name": "John Doe",
    "payment_card_token": "-E803-1111-1000000000000H",
    "valid_from": "06-01-2017",
    "valid_to": "05-31-2027"
  },
  "status": {
    "message_type": "S",
    "message_identification": "/CNBS/X_API",
    "message_number": 10,
    "message_line_string": "Request successfully processed"
  }
}