Waylet Pay
Light Mode
Payment refund V2
POST
/integrations/openwaylet/v2/payments/refundThis endpoint refunds an already successful payment operation.
Successful responses will have 200 HTTP status.
Signature
API requests needs a signature:
HMAC_SHA512(amount + commerceId + paymentId)
using a secret that will be provided by Klikin for test environments.
Request
Body Params application/json
amount
string聽
required
Refunded amount.
commerceId
string聽
required
Waylet commerce identifier. Will be provided by Klikin.
paymentId
string聽
required
Payment identifier.
items
array聽[object {5}]聽
optional
Shopping cart items
units
integer聽
required
Item count.
description
string聽
required
Item description.
unitPrice
number聽
required
Item unit price.
totalPrice
number聽
required
Item total price.
generateCashback
boolean聽
required
Item should generate cashback. True by default.
signature
string聽
required
Example
{
"amount": "300",
"commerceId": "ae125b641cf97ebbd2bdc6fb",
"paymentId": "202305248569",
"items": [
{
"units": 2,
"description": "Incredible Concrete Bacon",
"unitPrice": 100,
"totalPrice": 200,
"generateCashback": true
}
],
"signature": "85a1e4ededaf592a50f1bc67"
}
Responses
OK(200)
HTTP Code:聽200
Content Type :聽JSONapplication/json
Data Schema
refundedAmount
string聽
required
Example
{
"refundedAmount": "200"
}
Last modified: 7 months ago