Claim funds
curl --request GET \
--url https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken} \
--header 'Authorization: Bearer <token>' \
--header 'customer-id: <customer-id>'import requests
url = "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}"
headers = {
"customer-id": "<customer-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'customer-id': '<customer-id>', Authorization: 'Bearer <token>'}
};
fetch('https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"customer-id: <customer-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("customer-id", "<customer-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}")
.header("customer-id", "<customer-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["customer-id"] = '<customer-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Funds claimed successfully",
"data": {
"id": "6925a573d40cd0ecbbe74316",
"amount": 1000,
"purpose": "Testing Dispute Transaction",
"description": "Black Titanium, White Titanium, Natural Titanium, Desert Titanium\n\nTitanium design\nLatest-generation Ceramic Shield front\nTextured matt glass back",
"whoPays": "buyer",
"imageUrl": null,
"fee": 25,
"paymentToken": "PY_uH01Xq1D4747",
"paidAt": "1764075069",
"status": "CLAIMED",
"state": "OPENED",
"logs": [],
"channel": "API",
"isSeller": true,
"dispute": null,
"paymentDetails": {
"id": "6925a626d40cd0ecbbe7432d",
"amount": 1025,
"status": "success",
"reference": "14433999026655",
"fee": 25,
"transactionType": "escrow",
"currency": "NGN",
"createdAt": "2025-11-25T12:50:46.572Z"
},
"category": null,
"completedAt": null,
"approvedClaimBy": null,
"refundedBy": null,
"maxDelivery": 1,
"deliveryTimeline": "minutes",
"totalQuantity": 1,
"createdAt": "2025-11-25T12:47:47.368Z",
"updatedAt": "2025-11-25T12:57:18.546Z"
}
}{
"status": 400,
"message": "Escrow cannot be claimed yet",
"data": {}
}{
"status": 401,
"message": "Access denied",
"data": {}
}3. Create the deal: Escrow
Claim funds
Seller requests release of funds. Allowed only when the escrow is OPENED and the delivery window has elapsed.
GET
/
v1
/
escrow
/
claim-funds
/
{paymentToken}
Claim funds
curl --request GET \
--url https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken} \
--header 'Authorization: Bearer <token>' \
--header 'customer-id: <customer-id>'import requests
url = "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}"
headers = {
"customer-id": "<customer-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'customer-id': '<customer-id>', Authorization: 'Bearer <token>'}
};
fetch('https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"customer-id: <customer-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("customer-id", "<customer-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}")
.header("customer-id", "<customer-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.payluk.ng/v1/escrow/claim-funds/{paymentToken}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["customer-id"] = '<customer-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Funds claimed successfully",
"data": {
"id": "6925a573d40cd0ecbbe74316",
"amount": 1000,
"purpose": "Testing Dispute Transaction",
"description": "Black Titanium, White Titanium, Natural Titanium, Desert Titanium\n\nTitanium design\nLatest-generation Ceramic Shield front\nTextured matt glass back",
"whoPays": "buyer",
"imageUrl": null,
"fee": 25,
"paymentToken": "PY_uH01Xq1D4747",
"paidAt": "1764075069",
"status": "CLAIMED",
"state": "OPENED",
"logs": [],
"channel": "API",
"isSeller": true,
"dispute": null,
"paymentDetails": {
"id": "6925a626d40cd0ecbbe7432d",
"amount": 1025,
"status": "success",
"reference": "14433999026655",
"fee": 25,
"transactionType": "escrow",
"currency": "NGN",
"createdAt": "2025-11-25T12:50:46.572Z"
},
"category": null,
"completedAt": null,
"approvedClaimBy": null,
"refundedBy": null,
"maxDelivery": 1,
"deliveryTimeline": "minutes",
"totalQuantity": 1,
"createdAt": "2025-11-25T12:47:47.368Z",
"updatedAt": "2025-11-25T12:57:18.546Z"
}
}{
"status": 400,
"message": "Escrow cannot be claimed yet",
"data": {}
}{
"status": 401,
"message": "Access denied",
"data": {}
}Authorizations
Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).
Headers
The merchant customer this request acts on behalf of.
Path Parameters
The escrow's payment token (e.g. PY_8AB12C9D3045).
⌘I