Call the APIs through the gateway
All API calls go through the YARP gateway at https://gateway-host:7179 (or your deployed endpoint). The gateway validates two edge headers:
X-API-KEY — your provisioned API key
X-Client-Id — your client GUID
The gateway then internally adds a short-lived JWT (X-FootBridge-Authorization) and forwards the request to the backend service. You don’t generate or manage JWTs yourself.
Example cURL — an ECG prepaid card inquiry:
curl -X POST "https://gateway-host:7179/billpayments/ecg/v1/prepaid/card/inquiry" \
-H "Content-Type: application/json" \
-H "X-API-KEY: <YOUR_API_KEY>" \
-H "X-Client-Id: <YOUR_CLIENT_GUID>" \
-d '{"merchant":"ECG","request":{"asyncRequestId":"636ea0f4-649a-4907-9f64-bfa246f27576"},"card":{"cardId":null,"cardBuffer":{}},"meter":{"meterSerial":"P101084105","meterProvider":"ECash","meterModel":null,"regionId":"1001","districtId":"1060"}}'