Jetpay Developer Guide
Using the API
Checking the Status of a Payment
4 min
finding your transaction id if you docid\ hueqe96w0fsvjq2ddm0fw through the api, both a link and an identifier were returned to you the identifier is what we use to identify a transaction, which is also contained in the last section of the link { "identifier" "6277711d f132 4ef0 918c 56fcb1539707", "link" "https //jetpay baselinepayments com/payment/pay/6277711d f132 4ef0 918c 56fcb1539707" } if you did not save the identifier or link, transaction identifiers can be found on the https //demo jetpay baselinepayments com/admin/payments on your jetpay dashboard simply click on the payment in the payments table to see all transaction details of that payment, including the id creating the query now that you have an api token and a payment identifier, you are ready to query a transaction's status see the api reference documentation of the https //extapi jetpay baselinepayments com/docs#tag/transactions (v0)/operation/get transaction status transaction identifier status get for more details and additional languages if you have followed the steps how to docid\ hwhhrzbkw1u b1bnjqp6p , you can call the endpoint with the parameters we've gathered if you want to test this without docid\ kitm7qjbkr j pfhbjrjg , you can do this by using https //curl se/ replace \<your api token here> and {identifier} with the api token and identifier you just found curl request get \\ \ url 'https //extapi jetpay baselinepayments com/transaction/{identifier}/status' \\ \ header 'content type application/json' \\ \ header 'authorization bearer \<your api token here>' using the response if you have done everything correctly, you will receive an http 200 ok response from the api indicating that the request status was successfully retrieved on the right is an example of response the state field is the most important; this is the current state of the transaction { "state" "failed", "fail reason" "account frozen", "fail direction" "pull" } there are many potential states the most important ones are initiated , failed , and completed if the state shows failed , additional information about why the transaction failed is included in the form of the fail reason and fail direction see the https //extapi jetpay baselinepayments com/docs#tag/transactions (v0)/operation/get transaction status transaction identifier status get (expand the successful response details) for the complete list of possible states and their meaning, the fail reasons and the failure direction (during the push phase or during the pull phase)


