Delete card token

Delete card token

To consider

To use this service, the following aspect should be considered:
  1. Use the service on the endpoints:
    1. Sandbox: https://sandbox-merchant.greenpay.me/deleteToken
    2. Productionhttps://merchant.greenpay.me/deleteToken
  2. Tokens registered in Greenpay system.

Step to use the service

1. Data structure

Create a JSON object with the following structure:
  1. {
  2.     "secret": "secret provided by Greenpay",
  3.     "merchantId": "merchant uuid provided by Greenpay",
  4.     "token": "card token uuid registered in Greenpay",
  5.     "requestId": "unique identifier, it has be provided by the merchant"
  6. }
The required data are:
  1. secret: string secret provided by GreenPay.
  2. merchantId: string merchant UUID  provided by GreenPay.
  3. token: String card token uuid.
  4. requestId: A unique identifier provided by the merchant.

2. Send a POST request to delete a token

An HTTP POST request has to be sent with the object created in previous step as the request body. If the token is valid and is registered in Greenpay, the response would be like the following example:
  1. {
  2.   "status": "DELETED",
  3.   "requestId": "mg500",
  4.   "errors": [],
  5.   "_signature": "33e6fa7b89c43ac......c1d2e77079c5aef8ac507dda2a32e45"
  6. }


    • Related Articles

    • Update card token

      To consider To invoke the payments api, the following aspects should be considered: Use the service on the endpoints: Sandbox: https://sandbox-checkout.greenpay.me/tokenize/update Production: https://checkout.greenpay.me/tokenize/update Get ...
    • Update token using webform

      To consider To use the card tokenization form, the following aspects should be considered: The form is available at: Sandbox: http://sandbox-tokenizeform.greenpay.me/ Producción: https://tokenizeform.greenpay.me/ Get a session and token of a valid ...
    • API Tokenization process

      To consider To invoke the payments api, the following aspects should be considered: Use the service on the endpoints: Sandbox: https://sandbox-checkout.greenpay.me/tokenize Production: https://checkout.greenpay.me/tokenize Get a session and token of ...
    • Send bulk payment request

      To create a bulk payment request, a POST request must be made to the batch payment endpoint, with the structure of the JSON shown below: 1.{ "merchantId": "your_merchant_id", "secret": "your_secret", "terminal": "your_terminal", "currency": "USD || ...
    • Tokenization form process

      To consider To use the card tokenization form, the following aspects should be considered: The form is available at: Sandbox: http://sandbox-tokenizeform.greenpay.me/ Producción: https://tokenizeform.greenpay.me/ Get a session and token of a valid ...