Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 3.09 KB

File metadata and controls

80 lines (52 loc) · 3.09 KB

openapi_client.UnsuspendApi

All URIs are relative to https://api.mastercard.com/mdes

Method HTTP request Description
create_unsuspend POST /digitization/static/1/0/unsuspend Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.

create_unsuspend

UnSuspendResponseSchema create_unsuspend(un_suspend_request_schema=un_suspend_request_schema)

Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.

This API is used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request. MDES will coordinate the unsuspension of the Tokens and notify any relevant parties that the Tokens have now been unsuspended.

Example

import openapi_client
from openapi_client.models.un_suspend_request_schema import UnSuspendRequestSchema
from openapi_client.models.un_suspend_response_schema import UnSuspendResponseSchema
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.mastercard.com/mdes
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://api.mastercard.com/mdes"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.UnsuspendApi(api_client)
    un_suspend_request_schema = openapi_client.UnSuspendRequestSchema() # UnSuspendRequestSchema | Contains the details of the request message.  (optional)

    try:
        # Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.
        api_response = api_instance.create_unsuspend(un_suspend_request_schema=un_suspend_request_schema)
        print("The response of UnsuspendApi->create_unsuspend:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UnsuspendApi->create_unsuspend: %s\n" % e)

Parameters

Name Type Description Notes
un_suspend_request_schema UnSuspendRequestSchema Contains the details of the request message. [optional]

Return type

UnSuspendResponseSchema

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Contains the details of the response message. -
401 Example gateway error response -
500 Example application error response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]