# API reference (/api-reference) > Every public endpoint with its parameters, request and response schemas and code samples, generated from the gateway's OpenAPI document. These pages are generated from the gateway's own OpenAPI document each time the documentation is published, so they describe exactly the endpoints it serves. The guides explain how to use them together; this section is the contract, one endpoint at a time. > **Server only.** The API cannot be called from a browser. The gateway answers no cross-origin (CORS) requests, and the API key must never reach a browser. Call it from your server. ## Conventions | | | |---|---| | Base URL | `https://gateway.mps-emi.com`. Test keys and live keys use the same host; the key decides. See [The hosts](/overview#the-hosts). | | Authentication | `Authorization: Bearer mps_test_…` on every payment call: your API key (`mps_live_…` / `mps_test_…`). A partner key adds `x-wallet-number`. See [Authentication](/authentication). | | Request bodies | JSON (`Content-Type: application/json`). | | Responses | JSON. A payment endpoint wraps its result in `data`. | | Amounts | Integers in euro cents: `1995` is EUR 19.95. | | Identifiers | `paymentReference` is an opaque string. Store and compare them exactly as returned. | | Idempotency | Send an `Idempotency-Key` on a create, and a retry with the same key and body returns the first payment instead of opening a second one. Without a key every create opens a new payment. See [Retrying safely](/online-payments#retrying-safely-idempotency-key). | | Webhooks | Signed POST requests to the payment's `callbackUrl`: `payment.received`, and `refund.refunded` / `refund.failed` / `refund.canceled`. Documented in the `callbacks` of Create an online payment; see [Webhooks](/webhooks). | | Errors | `400` is a problem document naming the field. Every problem response of the payments API carries `traceId` and `documentationUrl`, a link to the section that resolves it. `401`, `403`, `404` and `429` carry no body, except the `403` for an `x-wallet-number` your key does not cover. See [Errors and rate limits](/errors-and-rate-limits). | | Rate limits | 100 requests a minute per API key, across every endpoint. See [Rate limits](/errors-and-rate-limits#rate-limits). | ## The OpenAPI document Download the document these pages are built from at [`/openapi.json`](/openapi.json). It is OpenAPI 3.0 and loads in Postman, Insomnia, Bruno or any code generator, ready to call `https://gateway.mps-emi.com`. ## Related - [Accept a payment](/online-payments) - [Payment lifecycle](/payment-lifecycle) - [Errors and rate limits](/errors-and-rate-limits) - [Build a request](/api-reference/playground)