Menu

User Tools

Create PDF

Site Tools


This is an old revision of the document!


Token Migration Tool

Introduction

The Token Migration tool (ToMi) enables merchants to continue processing recurring payments after migration to the Wirecard REST API. With ToMi, you just need to provide the order number which is currently used to reference recurring transaction. ToMi uses this order number and returns the corresponding token (credit card) and transactionId (SEPA Direct Debit), which allows you to continue processing recurring transactions for that order without interruptions.

Supported Payment Methods

  • Credit Card
  • SEPA Direct Debit

REST API endpoints

Environment URL
Production https://checkout.wirecard.com/migration-transaction
Test https://checkout-test.wirecard.com/migration-transaction

Requests

  • Content-Type: application/json
  • HTTP method: POST

JSON Schema

{
    "required": [
        "orderNumber",
        "paymentMethod"
    ],
    "properties": {
      "orderNumber": {
          "type": "integer",
      },
      "paymentMethod": {
          "type": "string",
      }
    }
}

Sample Requests

Sample Request for Credit Card

{
  "orderNumber": 123456,
  "paymentMethod" : "creditcard"
}

Sample Request for SEPA

{
  "orderNumber": 654321,
  "paymentMethod" : "sepa"
}

Response

Header

  • Content-Type: application/json
  • Possible status codes: 201 | 400 | 404 | 500

JSON Schema - Success Response

{
    "properties": {
        "orderNumber": {
            "type": "integer"
        },
        "merchantAccountId": {
            "type": "string"
        },
        "transactionId": {
            "type": "string"
        },
        "tokenId": {
            "type": "string"
        },
        "transactionServer": {
            "type": "string"
        }
    }
}

JSON Schema - Error Response

{
    "properties": {
        "status": {
            "type": "integer"
        },
        "message": "{
            "type" "string"
        }
    }
}

Sample Responses

Here are some possible responses, depending on payment method, difference being that for payment method credit card there is an additional returned field tokenId.


This website uses cookies to deliver the best service to you. By continuing to browse the site, you are agreeing to our use of cookies.