Riferimento API
Esempio Risposta 200
Esempio Risposta 200
Zahlungen
2 endpoint
Le descrizioni degli endpoint provengono direttamente dall'API e sono in tedesco.
Zahlungen auflisten
get/v1/payments
Spiegel der Zahlungen bei zahls.ch und Freika.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
limitfacoltativo | Query | integer |
starting_afterfacoltativo | Query | string |
statusfacoltativo | Query | string |
providerfacoltativo | Query | "zahls" | "freika" | "mock" |
Risposta 200PaymentList
| Nome | Tipo | Descrizione |
|---|---|---|
objectobbligatorio | "list" | |
dataobbligatorio | Payment[] | |
has_moreobbligatorio | boolean |
Errori possibili
- 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.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
Risposta 200Payment
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «pay_» |
objectobbligatorio | "payment" | |
livemodeobbligatorio | boolean | |
session_idobbligatorio | string | null | |
providerobbligatorio | "zahls" | "freika" | "mock" | |
purposeobbligatorio | string | |
statusobbligatorio | string | |
currencyobbligatorio | string | |
amountobbligatorio | integer | Betrag in Rappen |
captured_amountobbligatorio | integer | Belastet in Rappen |
refunded_amountobbligatorio | integer | Zurückerstattet in Rappen |
payment_methodobbligatorio | string | null | |
card_maskedobbligatorio | string | null | |
created_atobbligatorio | string |
Errori possibili
- 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"
}