Ödeme Detayını Getir
Açıklama
Section titled “Açıklama” GET
/v1/payments/0/0 Spesifik bir ödeme işleminin tüm detaylarını sorgular.
Parametreler
Section titled “Parametreler”| Parametre | Konum | Tip | Açıklama | Varsayılan | Örnek |
|---|---|---|---|---|---|
| Authorization * | header | string | Bearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...) | - | Bearer <TOKEN> |
| USER_ID * | path | string | İşlem yapan kullanıcının kimlik (ID) değeri. UUID formatındadır. | - | - |
| _id * | path | string | [object Object] | - | - |
Örnek Kod
Section titled “Örnek Kod”fetch('https://api.kargomucuz.com/v1/payments/0/0', { method: 'GET', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer <YOUR_TOKEN>' }}).then(response => response.json()).then(data => console.log(data));$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.kargomucuz.com/v1/payments/0/0');curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();$headers[] = 'Content-Type: application/json';$headers[] = 'Authorization: Bearer <YOUR_TOKEN>';curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);if (curl_errno($ch)) { echo 'Error:' . curl_error($ch);}curl_close($ch);echo $result;Yanıtlar
Section titled “Yanıtlar”200: Gerekli kimlik bilgisi (ID) eksik veya geçersiz olduğunda dönen yanıt.
{ "status": false, "message": "Id parametresi geçersiz.", "code": 500}200 - Başarılı kimlik doğrulaması ve geçerli ID parametresiyle istek gönderildiğinde dönen yanıt.: Başarılı kimlik doğrulaması ve geçerli ID parametresiyle istek gönderildiğinde dönen yanıt.
{ "status": true, "message": "Kullanıcı ödeme işlemi getirildi.", "payload": { "data": { "others": { "locale": null, "installment": 1, "cardType": null, "cardAssociation": null, "cardFamily": null, "binNumber": null, "lastFourDigits": null, "invoiceId": false, "returned": false, "canceled": false, "updated": "2026-06-15T11:53:40.280Z", "created": "2026-06-15T11:53:40.280Z" }, "_id": "6a2fe7c408583e83096a8c45", "resellerId": null, "status": "completed", "provider": { "entity": "system", "serviceId": null, "serviceCode": "system_shipment_delete_refund", "polarity": "notr", "previousAmount": 0, "newAmount": 0 }, "to": { "entity": "wallet", "serviceId": null, "serviceCode": "wallet_balance", "polarity": "positive", "previousAmount": 5998.08, "newAmount": 6107.08 }, "title": "Kargo İptal İadesi (Ref: 5554555550060)", "explanation": null, "currency": "try", "amount": 109, "totalAmount": 109, "taxes": [], "commissions": [], "__v": 0 }, "totalCount": 1 }, "code": 500}