Skip to main content

Get Card Info Widget URL

Retrieve Card Widget Url

Definition

URL
POST https://api-test.instarem.com:4803/api/v1/cardInfoWidgetURL

Header Parameters

ParameterDescriptionTypeRequired
authorizationAuthentication TokenStringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected value is application/json.StringYes
X-CLIENT-IDUnique id for client generated by Nium, Required only in case of partner based model (E.g. 593feb7c7c52bb2357b2df6c).StringNo

Example Request

curl --location --request POST 'https://api-test.instarem.com:4803/api/v1/cardInfoWidgetURL' \\
--header 'Accept: application/json' \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTY4MjM3NTQsImRhdGEiOnsiY2xpZW50IjoiNTkzZmViN2M3YzUyYmIyMzU3YjJkZjZjIiwiY3JlZElkIjoiNWZmODMyNWJiNGM4NDAwMDcxNDJmNjJmIiwic3ViIjoiNTkzZmViZjc3YzUyYmIyMzU3YjJkZjcxIn0sImlhdCI6MTYxNjczNzM1NH0.efTJPiajRc5f55SDihqsS1FwOBOs2rwszkx1ZzOAepQ' \\
--header 'Content-Type: application/json' \\
--data-raw '{
"service_name": "VISA",
"type": 4
}'

Body Parameters

ParameterDescriptionTypeRequired
service_nameService name (VISA)StringYes
typePossible values (2 & 4). Based on type below fields will be rendered over widget.
2: ["CARD_NUMBER"]
4: ["CARD_NUMBER", "EXPIRY_DATE"]
NOTE: Default value will be 2.
NumberNo

Example Response

{
"widget_url": "https://preprodwidget.nium.com/dashboard?data=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoiNjA1OTg1YmZlODU5YWQwMDI2Y2ZjNGM4IiwiaWF0IjoxNjE2NDc5Njc5LCJleHAiOjE2MTY0ODA1Nzl9.RwQqUIv9zqsW-qm7OPpiWgfnTwGM69JACAayz6jZu7U",
"expiry_at": "2021-03-23T10:48:09Z"
}

Response Parameters

ParameterDescriptionType
widget_urlWidget Url.String
expiry_atDatetime of widget url expiry.String