Endpoint
GET https://api.digitzs.com/payments/status/{id}
Overview
Use this lightweight endpoint to quickly check the status of a payment transaction without retrieving all transaction details.
This endpoint returns less data than GET /payments/, making it ideal for status polling or when you only need to know if a payment succeeded.
Authentication
Header Value Required
x-api-keyYour API key Yes AuthorizationBearer {appToken}Yes appIdYour application ID Yes
Path Parameters
The unique payment transaction ID
Response
Success Response (200 OK)
{
"links" : {
"self" : "https://api.digitzs.com/payments/status/pay_abc123xyz"
},
"data" : {
"type" : "payments" ,
"id" : "pay_abc123xyz" ,
"attributes" : {
"status" : "completed" ,
"paymentType" : "card" ,
"amount" : "2500" ,
"currency" : "USD" ,
"createdAt" : "2024-01-15T10:30:00Z" ,
"updatedAt" : "2024-01-15T10:30:05Z"
}
}
}
Current payment status: pending, completed, failed, refunded, voided, or partial_refund
Transaction amount in cents
data.attributes.createdAt
ISO 8601 timestamp of payment creation
data.attributes.updatedAt
ISO 8601 timestamp of last status update
Code Examples
cURL
JavaScript
Python
PHP
Ruby
curl -X GET https://api.digitzs.com/payments/status/pay_abc123xyz \
-H "x-api-key: your-api-key" \
-H "Authorization: Bearer your-app-token" \
-H "appId: your-app-id"
Status Values
Status Description Next Actions
pendingPayment processing (typical for ACH) Wait for settlement completedSuccessfully processed No action needed failedPayment failed or declined Review error, retry with different payment method refundedFully refunded No further refunds possible voidedTransaction cancelled same-day No action needed partial_refundPartially refunded Additional refunds possible up to remaining amount
Polling Best Practices
Frequency: Check every 30-60 minutes during business hoursDuration: ACH payments take 3-5 business days to settleBetter Alternative: Implement webhooks for real-time status updates
Frequency: Check once immediately after creation, then hourly if neededDuration: Card payments typically complete within secondsTimeout: If pending after 5 minutes, likely an issue - investigate
For repeated status checks:
First check: Immediate
Second check: 30 seconds
Third check: 1 minute
Fourth check: 2 minutes
Continue doubling up to maximum interval
Error Responses
{
"errors" : [
{
"status" : "404" ,
"title" : "Not Found" ,
"detail" : "Payment not found"
}
]
}
Common Use Cases
Status Polling: Regularly check ACH payment status until settled
Payment Confirmation: Verify payment completed before fulfilling orders
Dashboard Updates: Display real-time payment status in admin interfaces
Webhook Verification: Confirm status received via webhook matches current state
Lighter Payload: This endpoint returns significantly less data than GET /payments/, making it faster and more efficient for status checks.
Rate Limiting: Avoid excessive polling. Implement reasonable intervals or use webhooks instead.
Next Steps
Get Full Payment Details Retrieve complete payment information including fees and splits
List Payments View all payments for a merchant