One payment
GET
/api/integration/v1/payments/{id}
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.slflo.com/api/integration/v1/payments/pay_01J9"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.slflo.com/api/integration/v1/payments/pay_01J9")) .header("Authorization", "Bearer <token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());const url = 'https://api.slflo.com/api/integration/v1/payments/pay_01J9';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.slflo.com/api/integration/v1/payments/pay_01J9 \ --header 'Authorization: Bearer <token>'Needs payments:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Slflo’s id of the payment (receipt), from the payment feed.
Example
pay_01J9Responses
Section titled “Responses”One payment
Media typeapplication/json
object
data
required
object
ack
object
acked_at
required
string
acked_version
required
integer format: int64
external_number
string
external_ref
string
message
string
outcome
required
string
reason_code
string
allocations
required
Array<object>
object
amount
required
string
invoice
object
code
string
external_ref
string
id
required
string
kind
required
string
receivable_id
required
string
reference
required
string
amount
required
string
branch
required
object
code
string
external_ref
string
id
required
string
cheque
object
bank
string
bounce_reason
string
due_on
string
number
required
string
status
required
string
collected_at
required
string
collected_by
required
object
sales_rep
object
code
string
external_ref
string
id
required
string
user
string
collection_date
required
string
currency
required
string
customer
required
object
code
string
external_ref
string
id
required
string
external_number
string
external_ref
string
id
required
string
method
required
string
number
string
on_account
required
string
receipt
object
balance_after
required
string
id
required
string
issued_at
required
string
number
required
string
seq
integer format: int64
void_reason
string
voided_at
string
reference
string
reversal
object
reason
required
string
reversed_at
required
string
reversed_by
required
string
seq
integer format: int64
status
required
string
updated_at
required
string
version
required
integer format: int64
Example
{ "data": { "ack": null, "allocations": [ { "amount": "1430.70", "invoice": { "code": "INV-000041", "external_ref": null, "id": "inv_01J9" }, "kind": "INVOICE", "receivable_id": "rcv_01J9", "reference": "INV-000041" } ], "amount": "1430.70", "branch": { "code": "MAIN", "external_ref": "CUST-0042/01", "id": "C0000001:main" }, "cheque": { "bank": "NBE", "bounce_reason": null, "due_on": "2026-10-20", "number": "000123", "status": "IN_HAND" }, "collected_at": "2026-10-05T10:42:00Z", "collected_by": { "sales_rep": { "code": "R012", "external_ref": "EMP-0451", "id": "rep_12" }, "user": "rep12" }, "collection_date": "2026-10-05", "currency": "EGP", "customer": { "code": "CUST-1", "external_ref": "CUST-0042", "id": "C0000001" }, "external_number": null, "external_ref": null, "id": "pay_01J9", "method": "CHEQUE", "number": "RC-000017", "on_account": "0.00", "receipt": { "balance_after": "0.00", "id": "rc_01J9", "issued_at": "2026-10-05T10:42:00Z", "number": "RC-000017", "seq": 17, "void_reason": null, "voided_at": null }, "reference": "000123", "reversal": null, "seq": 17, "status": "RECORDED", "updated_at": "2026-10-05T10:42:00Z", "version": 9133 }}default
Section titled “default”An error: the code says what, retryable whether to try again.
Media typeapplication/json
object
error
required
object
code
required
Stable code, e.g. SCOPE_MISSING, UNKNOWN_REFERENCE.
string
details
required
Field-level problems: {field, code}.
Array<object>
object
key
additional properties
string
message
required
What happened and how to fix it.
string
request_id
required
Quote it to support; it finds the server log.
string
retryable
required
Whether the same call may succeed later.
boolean
Example
{ "error": { "code": "SCOPE_MISSING", "details": [], "message": "This client does not hold the invoices:read scope.", "request_id": "req_01J9X4Q7T2M8P3NRT6V5WZ", "retryable": false }}
