The recipient's card tokenization
The request is used to get a token for the recipient's bank card along with the 3-D Secure verification details to later use them in a payout transaction.
As a result of a tokenization transaction, money isn't transferred to the recipient's card. Use the received token to send a payout request.
Request
To get the recipient's card tokenized, send a POST request to https://gateway.unonapay.com/transactions/recipient_tokenizations with the following parameters:
Note
The request body must be wrapped in a top-level request{} object.
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example of the request
{
  "request": {
    "description": "Test transaction",
    "tracking_id": "your_uniq_number",
    "recipient_billing_address": {
      "first_name": "John",
      "last_name": "Doe",
      "country": "US",
      "city": "Denver",
      "state": "CO",
      "zip": "96002",
      "address": "1st Street"
    },
    "recipient_credit_card": {
      "number": "4200000000000000",
      "holder": "John Doe",
      "exp_month": "05",
      "exp_year": "2027"
    },
    "recipient": {
      "ip": "127.0.0.1",
      "email": "john@example.com"
    },
    "additional_data": {
      "referer": "https://example.com/server/cs_post/post.php?order_id=5304380&security=949247¤cy=USD"
    }
  }
}
Response
The response will contain the same parameters as the request as well as additional parameters:
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example of the response
{
  "transaction": {
    "uid": "0775f4fe-c4ac-4b55-83c2-d89ef948d84a",
    "status": "successful",
    "description": "Test transaction",
    "type": "recipient_tokenization",
    "payment_method_type": "credit_card",
    "tracking_id": "your_uniq_number",
    "message": "Successfully processed",
    "created_at": "2024-04-02T15:52:51.606Z",
    "updated_at": "2024-04-02T15:52:51.687Z",
    "recipient": {
      "ip": "127.0.0.1",
      "email": "john@example.com",
      "device_id": null,
      "birth_date": null
    },
    "recipient_credit_card": {
      "holder": "John Doe",
      "stamp": "b3839d334ba40e89168d60cd9f9d1390aee3fe67dd4d5c41adbf3998043eaef8",
      "brand": "visa",
      "last_4": "0000",
      "first_1": "4",
      "bin": "420000",
      "bin_8": "42000000",
      "issuer_country": "US",
      "issuer_name": "VISA Demo Bank",
      "product": "F",
      "exp_month": 5,
      "exp_year": 2027,
      "token_provider": null,
      "token": "39799863-240f-417e-9f12-5ca713118069"
    },
    "recipient_billing_address": {
      "first_name": "John",
      "last_name": "Doe",
      "address": "1st Street",
      "country": "US",
      "city": "Denver",
      "zip": "96002",
      "state": "CO",
      "phone": null
    },
    "status_code": null,
    "id": "0775f4fe-c4ac-4b55-83c2-d89ef948d84a",
    "additional_data": {            
      "referer": "https://example.com/server/cs_post/post.php?order_id=5304380&security=949247¤cy=USD"
    }
  }
}