On This Page
REST API
REST Example: Generating a Terminal Activation Code
Endpoints:
The POST request must include the transacting merchant ID (MID) that is sending the
request and the quantity of activation codes to be generated. You can request up to
15 activation codes in a single request.
Test:
POST
https://apitest.visaacceptance.com
/dms/v2/merchants/{transacting
mid}/activation-codes?size={number of activation codes}Production:
POST
https://api.visaacceptance.com
/dms/v2/merchants/{transacting
mid}/activation-codes?size={number of activation codes}Request
The body of the request is empty. The POST request includes
the information required to return the response.
{ }
Response for a Successful Request
The response includes the activation code (
token
field) and the
amount of time (ttl
field) that the activation code is valid. The
ttl
field value is shown in milliseconds. The activation code
is valid for 24 hours. { "tokens": [ { "token": "%N5wU2jH", "ttl": 86399805 } ] }