Refunds
The Refunds API allows you create and manage transaction refunds.
Create Refund
POST
https://api.lahza.io/refund
Initiate a refund on your integration
Headers
authorization*
String
Set value to Bearer SECRET_KEY
content-type*
String
Set value to application/json
Request Body
transaction*
String
Transaction reference or id
amount
String
Amount ( in agora if currency is ILS, qirsh, if currency is JOD, and cents, if currency is USD ) to be refunded to the customer. Amount is optional(defaults to original transaction amount) and cannot be more than the original transaction amount.
currency
String
Three-letter ISO currency. Allowed values are: ILS, JOD or USD
customer_note
String
Customer reason
merchant_note
String
Merchant reason
Fetch Refund
GET
https://api.lahza.io/refund/:reference
Get details of a refund on your integration
Path Parameters
reference*
String
Identifier for transaction to be refunded
Headers
authorization*
String
Set value to Bearer SECRET_KEY
List Refunds
GET
https://api.lahza.io/refund
List refunds available on your integration.
Query Parameters
reference
String
Identifier for transaction to be refunded
currency
String
Three-letter ISO currency. Allowed values are: ILS, JOD or USD
page
integer
Specify exactly what refund you want to page. If not specify we use a default value of 1.
perPage
integer
Specify how many records you want to retrieve per page. If not specify we use a default value of 50.
to
date
A timestamp at which to stop listing refund e.g. 2016-09-21
from
date
A timestamp from which to start listing refund e.g. 2016-09-21
Headers
authorization*
String
Set value to Bearer SECRET_KEY
Last updated