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
string
required
The unique Track ID you submitted in the original payment initialization
request. Alphanumeric, maximum 255 characters.
string
required
The Payzah Payment ID returned as
PaymentID in the initialization response.
Maximum 255 characters.Sample Request
cURL
Request Body
Response Fields
Success Response
boolean
true when a matching payment record was found.object
Contains the full details of the located payment.
Error Response
boolean
false when no matching record was found or an error occurred.string
A human-readable description of the error.
number
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:

