Urban Ledger Payments
Build with Urban Ledger
Process and manage payments with the Urban Ledger APIs.
Base URL
https://sandbox.geturbanledger.com11endpoints5areas
Welcome to the Urban Ledger Payments developer documentation. You will find a collection of APIs that enable you to process and manage payments.
All our APIs accept JSON and responses are returned in JSON with standard HTTP response codes. Contact your account manager to get your MID and Terminal ID.
Environments
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.geturbanledger.com |
| Production | https://api.geturbanledger.com |
The Sandbox / Production switch at the top of the page changes the base URL and key format in every code sample. Try it on each endpoint sends a real request to the Sandbox with your sandbox keys.
Get started
1Get your keysYour account manager shares your MID and Terminal ID, for Sandbox and Production.2AuthenticateSend them as the mid and terminal-id headers, from your server only.3Make a requestPick an endpoint, copy the sample, or send a live Sandbox request with Try it.
Hosted Page
A hosted page has two halves. Your frontend shows the pay button, and your server creates the payment page it opens.
Client-sidePay buttonAdd our script and a button to your checkout. It opens the hosted page when the customer clicks.Read the guide Server-sideCreate a hosted pageSend the order from your server with your MID and Terminal ID. You get back the request id the button needs.POST
/api/payments/hosted-pageGuides
WebhooksReceive and verify signed payment events.
Test cardsCard numbers for Sandbox transactions.
Status codesWhat each payment status means.
Instalment bank codesBanks you can offer for split payments.
