API reference
Example Response 200
Example Response 200
Zahlungen
2 endpoints
The endpoint descriptions come directly from the API and are in German.
Zahlungen auflisten
get/v1/payments
Spiegel der Zahlungen bei zahls.ch und Freika.
Parameters
| Name | In | Type |
|---|---|---|
limitoptional | Query | integer |
starting_afteroptional | Query | string |
statusoptional | Query | string |
provideroptional | Query | "zahls" | "freika" | "mock" |
Response 200PaymentList
| Name | Type | Description |
|---|---|---|
objectrequired | "list" | |
datarequired | Payment[] | |
has_morerequired | boolean |
Possible errors
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X GET https://api.ladehase.com/v1/payments \n -H "Authorization: Bearer lh_test_…"{
"object": "list",
"data": [
{
"id": "pay_8f1e2d3c4b5a6978",
"object": "payment",
"livemode": true,
"session_id": "string",
"provider": "zahls",
"purpose": "string",
"status": "string",
"currency": "string",
"amount": 1235,
"captured_amount": 1235,
"refunded_amount": 1235,
"payment_method": "string",
"card_masked": "string",
"created_at": "string"
}
],
"has_more": true
}Zahlung abrufen
get/v1/payments/{id}
Eine Zahlung.
Parameters
| Name | In | Type |
|---|---|---|
idrequired | Path | string |
Response 200Payment
| Name | Type | Description |
|---|---|---|
idrequired | string | ID mit Präfix «pay_» |
objectrequired | "payment" | |
livemoderequired | boolean | |
session_idrequired | string | null | |
providerrequired | "zahls" | "freika" | "mock" | |
purposerequired | string | |
statusrequired | string | |
currencyrequired | string | |
amountrequired | integer | Betrag in Rappen |
captured_amountrequired | integer | Belastet in Rappen |
refunded_amountrequired | integer | Zurückerstattet in Rappen |
payment_methodrequired | string | null | |
card_maskedrequired | string | null | |
created_atrequired | string |
Possible errors
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X GET https://api.ladehase.com/v1/payments/{id} \n -H "Authorization: Bearer lh_test_…"{
"id": "pay_8f1e2d3c4b5a6978",
"object": "payment",
"livemode": true,
"session_id": "string",
"provider": "zahls",
"purpose": "string",
"status": "string",
"currency": "string",
"amount": 1235,
"captured_amount": 1235,
"refunded_amount": 1235,
"payment_method": "string",
"card_masked": "string",
"created_at": "string"
}