Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 2.89 KB

File metadata and controls

73 lines (51 loc) · 2.89 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(unsuspend_request_schema=unsuspend_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

from __future__ import print_function
import time
import openapi_client
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() as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.UnsuspendApi(api_client)
    unsuspend_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(unsuspend_request_schema=unsuspend_request_schema)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling UnsuspendApi->create_unsuspend: %s\n" % e)

Parameters

Name Type Description Notes
unsuspend_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]