Get Active Currencies
GET
Terminal window
Returns the currencies currently active on the gateway. Unlike the integration endpoints, this one returns plain JSON — no encryption required.
| Environment | URL |
|---|---|
| Production | https://api.pesepay.com/api/payments-engine/v1/currencies/active |
Headers
Section titled “Headers”| Parameter | Type | Required | Description |
|---|---|---|---|
content-type | string | Yes | Must be application/json |
Code examples
Section titled “Code examples”curl https://api.pesepay.com/api/payments-engine/v1/currencies/active \ -H "content-type: application/json"const response = await fetch( 'https://api.pesepay.com/api/payments-engine/v1/currencies/active', { headers: { 'content-type': 'application/json' } });const currencies = await response.json();import requests
response = requests.get( "https://api.pesepay.com/api/payments-engine/v1/currencies/active", headers={"content-type": "application/json"},)currencies = response.json()<?php$response = file_get_contents( 'https://api.pesepay.com/api/payments-engine/v1/currencies/active');$currencies = json_decode($response, true);HttpClient client = HttpClient.newHttpClient();HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.pesepay.com/api/payments-engine/v1/currencies/active")) .header("content-type", "application/json") .GET() .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());Response
Section titled “Response”An array of Currency objects.