success_url or error_url, you should verify the transaction’s outcome server-side before fulfilling an order or showing a confirmation screen. This endpoint lets you query a payment’s current status by supplying the trackid you generated during initialization and the PaymentID that Payzah returned in the initialization response. Never rely solely on the redirect URL parameters to confirm payment — always confirm with this endpoint.
Endpoint: POST /ws/paymentgateway/get-payment-details
Refer to the API Overview for the base URLs and required authentication headers before making this request.
Request Parameters
The unique Track ID you submitted in the original payment initialization
request. Alphanumeric, maximum 255 characters.
The Payzah Payment ID returned as
PaymentID in the initialization response.
Maximum 255 characters.Sample Request
cURL
Request Body
Response Fields
Success Response
true when a matching payment record was found.Contains the full details of the located payment.
Error Response
false when no matching record was found or an error occurred.A human-readable description of the error.
A numeric error code. See the Response Codes
reference for the full list.
Sample Responses
Success
Error
Payment Status Values
ThepaymentStatus field in the success response will contain one of the following values:
| Status | Description |
|---|---|
CAPTURED | The payment was successfully authorized and captured. Funds are secured and will be settled to your account. |
NOT CAPTURED | The payment was authorized but capture has not yet occurred. You may need to initiate capture separately depending on your account configuration. |
VOIDED | The payment was voided or cancelled after authorization. No funds were captured. |
CANCELED | The customer cancelled the payment before completion. |
DENIED BY RISK | The payment was blocked by Payzah’s risk management system. No funds were collected. |
HOST TIMEOUT | The payment host did not respond in time. The transaction outcome is uncertain — contact Payzah support or check your bank portal to confirm the result before retrying. |