Ödeme durumunu getir
GET
/api/payments/orders/{id}/status
const url = 'https://api.petanqueai.com/api/payments/orders/example/status';const options = {method: 'GET', headers: {'x-storefront-token': '<x-storefront-token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.petanqueai.com/api/payments/orders/example/status \ --header 'x-storefront-token: <x-storefront-token>'Siparişin son ödemesinin sonucu: PENDING, SUCCEEDED, FAILED, CANCELLED ya da bir iade durumu. Paranın çekildiğinin tek güvenilir kanıtı budur; sonuç sayfanızdan PENDING olmaktan çıkana kadar sorgulayın. Başarılı olduğunda orderDocumentNo, müşteriye göstereceğiniz sipariş kodunu (SA-…) taşır. Henüz ödeme başlatılmadıysa data null’dır.
Yetkilendirmeler
Bölüm başlığı “Authorizations”Parametreler
Bölüm başlığı “Parameters”Yol parametreleri
Bölüm başlığı “Path Parameters”id
zorunlu
string