Waylet Pay
Light Mode
Payment refund
POST
/integrations/openwaylet/v1/payments/refundThis endpoint refunds an already successful payment operation.
Successful responses will have 204 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
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
Indicates whether cashback is generated or not, by default, true.
signature
string聽
required
Request signature.
Example
{
"amount": "300",
"commerceId": "ae125b641cf97ebbd2bdc6fb",
"paymentId": "202305248569",
"items": [
{
"units": 2,
"description": "Incredible Concrete Bacon",
"unitPrice": 100,
"totalPrice": 200,
"generateCashback": true
}
],
"signature": "85a1e4ededaf592a50f1bc67"
}
Responses
No Content(204)
HTTP Code:聽204
Content Type :聽JSONapplication/json
Data Schema
null聽
optional
Example
Not configured
Last modified: 7 months ago