Référence API
Exemple Réponse 200
Exemple Réponse 200
Zahlungen
2 endpoints
Les descriptions des endpoints proviennent directement de l'API et sont en allemand.
Zahlungen auflisten
get/v1/payments
Spiegel der Zahlungen bei zahls.ch und Freika.
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
limitfacultatif | Requête | integer |
starting_afterfacultatif | Requête | string |
statusfacultatif | Requête | string |
providerfacultatif | Requête | "zahls" | "freika" | "mock" |
Réponse 200PaymentList
| Nom | Type | Description |
|---|---|---|
objectobligatoire | "list" | |
dataobligatoire | Payment[] | |
has_moreobligatoire | boolean |
Erreurs possibles
- 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.
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
idobligatoire | Chemin | string |
Réponse 200Payment
| Nom | Type | Description |
|---|---|---|
idobligatoire | string | ID mit Präfix «pay_» |
objectobligatoire | "payment" | |
livemodeobligatoire | boolean | |
session_idobligatoire | string | null | |
providerobligatoire | "zahls" | "freika" | "mock" | |
purposeobligatoire | string | |
statusobligatoire | string | |
currencyobligatoire | string | |
amountobligatoire | integer | Betrag in Rappen |
captured_amountobligatoire | integer | Belastet in Rappen |
refunded_amountobligatoire | integer | Zurückerstattet in Rappen |
payment_methodobligatoire | string | null | |
card_maskedobligatoire | string | null | |
created_atobligatoire | string |
Erreurs possibles
- 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"
}