For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refund / Cancel

This service checks whether the transaction is eligible for cancellation or refund, and then returns the deeplink_url and the encryption_key. To send a request to this service, a mobile session token (session_key) must be used.

Initiate Cancel / Refund

post
/v1/softpos/init_reversal_transaction
Header parameters
Session-KeystringRequired

Mobile session key

Content-TypestringRequired

Content type.

Example: application/json
Body
xact_idstringRequired

The encrypted version of the transaction ID.

Example: xk_EAAAANDp3NM*0DZPqtLYKPuOHKbsEhd8OmvbENFeiKRDyM/H
reference_nostringOptional

Reference number.

callback_urlstring · nullableOptional

Callback url.

Responses
200Success
application/json
payment_session_idstringOptional

Payment session id.

deeplink_urlstringOptional

Deeplink url.

encryption_keystringOptional

encryption key.

object_namestringOptional

Object name.

codeintegerOptional

Code.

messagestringOptional

Message.

post/v1/softpos/init_reversal_transaction
POST /v1/softpos/init_reversal_transaction HTTP/1.1
Host: api.paynet.com.tr
Session-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 103

{
  "xact_id": "xk_EAAAANDp3NM*0DZPqtLYKPuOHKbsEhd8OmvbENFeiKRDyM/H",
  "reference_no": "",
  "callback_url": null
}
{
  "payment_session_id": "63b1db99-df43-487e-a66e-e15e1af82396",
  "deeplink_url": "https://www.provisionpay.com/payment?paymentSessionToken=63b1db99-df43-487e-a66e-e15e1af82396",
  "encryption_key": "vjvsqwdlrbpsworqbkszollnwbminhsr",
  "object_name": "softpos_init_reversal_transaction",
  "code": 0,
  "message": "Successful transaction"
}

Last updated