post
https://sandbox-api.softpoint.io/interface//locations//webhook/tokenize
Tokenize
This API allows client applications to securely tokenize payment card data read from a card reader device.
Instead of transmitting sensitive card details directly, the data is converted into a token that can be safely stored and used for future transactions.
Json Description:
| Section | Name | Type | Description | Required / optional | |
|---|---|---|---|---|---|
| Ticket | |||||
| id | String | The unique identifier of the ticket. | Required | ||
| name | String | The name of the ticket. | Optional | ||
| open | Boolean | Indicates whether the ticket is still open or not | Optional | ||
| opened_at | Timestamp | The timestamp at which the ticket was opened. | Optional | ||
| closed_at | Timestamp | The timestamp at which the ticket was closed. | Optional | ||
| ticket_number | Integer | The ticket number. | Optional | ||
| payment | |||||
| id | String | Unique identifier for the payment. | Required | ||
| amount | Integer | For tokenize amount is automatically 0. | Required | ||
| user_id_external | String | This field is used to identify the guest user. This ID represents the owner of the associated credit card token | Optional | ||
| webhook_id | String | Unique identifier for the webhook. | Required | ||
| terminal_id | String | Unique identifier for the POS terminal. | Required |
