Waylet Pay
  1. 馃嚞馃嚙 OpenWaylet
Waylet Pay
  • 馃嚜馃嚫 OpenWaylet
    • Inicio de cobro
      POST
    • Cancelaci贸n de cobro
      POST
    • Devoluci贸n de cobro
      POST
    • Devoluci贸n de cobro V2
      POST
    • Solicitud de url de inicio de pago
      POST
    • Inicio de cobro con QR
      POST
  • 馃嚞馃嚙 OpenWaylet
    • Start payment
      POST
    • Payment start URL
      POST
    • Start QR payment
      POST
    • Payment refund
      POST
    • Payment refund V2
      POST
    • Cancel payment
      POST
  1. 馃嚞馃嚙 OpenWaylet

Payment refund V2

Develop Env
https://pre.wayletlabs.com/api
Develop Env
https://pre.wayletlabs.com/api
POST
https://pre.wayletlabs.com/api
/integrations/openwaylet/v2/payments/refund
This 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

Authorization
Add parameter in header
x-openwaylet-apikey
Example:
x-openwaylet-apikey: ********************
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

馃煝200OK
application/json
Body
refundedAmount
string聽
required
Example
{
  "refundedAmount": "200"
}
Modified at聽2024-05-30 06:05:36
Previous
Payment refund
Next
Cancel payment