is_3d, which can take the following values: 0, 1, 2, and 4.| HTTP status | status_code | status_description (app_lang=en) | When it occurs |
|---|---|---|---|
| 200 | 1 | Validation message, e.g. The app id field is required. | app_id or app_secret is missing, is not a string, or exceeds the length limit. |
| 200 | 14 | Merchant is not authorized | The merchant is not authorized to use the API. |
| 200 | 403 | Token cannot be generated because neither a digital nor a physical contract has been accepted. | The merchant has not accepted a digital or physical agreement. |
| 403 | 1002 | Your IP address is not authorized for this transaction type. Please contact Sipay Support for assistance. | The caller’s IP address is not on the merchant’s allowlist. |
curl --location 'https://provisioning.sipay.com.tr/ccpayment/api/token' \
--header 'Content-Type: application/json' \
--data '{
"app_id": "xxxx",
"app_secret": "xxx",
"app_lang": "en"
}'{
"status_code": 100,
"status_description": "Successfully Generated token",
"data": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI0ZWJmYzJmOGNiOGZlMzlhYTc5ZGQzYmI1NDc4ZWI2ZjAzMGNjZmM5YzU4ZmExN2I5MjJiN2I1NTIwY2EzZDk5OTk0MWY2ZTAyMWNiZjkwMTEzYjk2ZWZkNmU3NmExZTExYjVlNWRjNDBhNGU1YWY5NmQ5NGVhNjFiYTMzOGNmYSIsImF1ZCI6MTAwMDcsInN1YiI6OTMsImNpZCI6MTgzMDksIm5iZiI6MTc3NTEyMTM1MiwiZXhwIjoxNzc1MTM1NzUyLCJpYXQiOjE3NzUxMjg1NTIsInNjb3BlcyI6W10sImRhdGEiOnsianRpIjoiNGViZmMyZjhjYjhmZTM5YWE3OWRkM2JiNTQ3OGViNmYwMzBjY2ZjOWM1OGZhMTdiOTIyYjdiNTUyMGNhM2Q5OTk5NDFmNmUwMjFjYmY5MDExM2I5NmVmZDZlNzZhMWUxMWI1ZTVkYzQwYTRlNWFmOTZkOTRlYTYxYmEzMzhjZmEifX0.jYPZapZZ-jWOnEc0HLIRX5_qjTdIM9rC8Im4x_DBOHmROOCqoZ1AoN7P6PU6324xcg0KLS8CDHTbwj7RIWnnCQ",
"is_3d": 1,
"expires_at": "2026-04-02 16:15:52"
}
}