Testing your Integration
...
Testing your Direct (API) Inte...
Testing GET Transactions
testing get transactions get transactions scenarios (positive flow) important to consider ensure the list all transactions permission is enabled on your api credentials there are no limits on date ranges queries for long date ranges may time out we recommend you use short date ranges the page size is currently limited to 500 or less retrieve details using a specific yourconsumerreference retrieve details using a specific yourpaymentreference retrieve details of a single transaction using the receiptid use the sandbox endpoint /transactions/{receiptid} you can query the following transaction types payments preauths refunds collections use the sandbox endpoint /transactions/{transactiontype} scenarios return a list of transactions within a given time frame , a specific consumer , or a specific payment true false 215,139false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type retrieve details of a single transaction using the receiptid true false 218,140false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type return a list of transactions of a transactiontype associated with the given query true false 179,104false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type request parameters sandbox endpoint https //api sandbox judopay com/transactions sandbox endpoint https //api sandbox judopay com/transactions/{receiptid} sandbox endpoint https //api sandbox judopay com/transactions/{transactiontype} http method get header parameters depending on how you integrate with judopay, you can authenticate requests by /paymentsession , or tokensecretauth the token and secret pair for more information, see authentication methods docid\ ylkw5coh5nqnfq3j wjk2 false false 265,403false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type body parameters configuration property descriptions true false 196false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type get receiptid https //api sandbox judopay com/transactions/968893796475637760 response example (receiptid) { "receiptid" "968893796475637760", "yourpaymentreference" "payment111", "type" "payment", "createdat" "2023 04 27t16 18 02 3780+01 00", "result" "success", "message" "authcode 033670", "judoid" 100042597, "merchantname" "shodan", "appearsonstatementas" "shodan", "netamount" "5 00", "amount" "5 00", "currency" "gbp", "acquirertransactionid" "75516047204453281723", "externalbankresponsecode" "", "authcode" "033670", "postcodecheckresult" "unknown", "acquirer" "barclays", "carddetails" { "cardlastfour" "3436", "enddate" "1224", "cardtoken" "sof u cnj8d3tsmz70eecez 2g", "cardtype" 11, "cardscheme" "visa", "cardfunding" "debit", "cardcategory" "", "cardcountry" "fr", "bank" "credit industriel et commercial", "cardholdername" "emma waters" }, "billingaddress" {}, "consumer" { "yourconsumerreference" "alayna crona\@example net" }, "yourpaymentmetadata" {}, "threedsecure" { "attempted" false }, "risks" { "postcodecheck" "unknown", "cv2check" "passed", "merchantsuggestion" "allow" } } get all transactions https //api sandbox judopay com/transactions?from=01/01/2021\&to=01/01/2023\&pagesize=50 response example (all transactions) { "resultcount" 1060479, "pagesize" 10, "offset" 0, "results" \[ { "receiptid" "965609160727236608", "yourpaymentreference" "5fb14ac3 ddff 49b4 ad20 4ad1ac473b01", "type" "preauth", "createdat" "2023 04 18t14 46 06 0231+01 00", "result" "success", "message" "authcode 5", "judoid" 100502614, "merchantname" "shodan", "appearsonstatementas" "shodan", "amountcollected" "0 00", "netamount" "5 00", "amount" "5 00", "currency" "gbp", "postcodecheckresult" "unknown", "carddetails" { "cardlastfour" "1111", "enddate" "1224", "cardtype" 1, }, "consumer" { "yourconsumerreference" "consumer" }, "yourpaymentmetadata" {} }, { "receiptid" "965577423548743680", "yourpaymentreference" "98b46ad3 4ced 4b4a 93cf 7e81f82a8fc1", "type" "payment", "createdat" "2023 04 18t12 39 57 0387+01 00", "result" "success", "message" "authcode 961022", "judoid" 100042297, "merchantname" "shodan", "appearsonstatementas" "shodan", "netamount" "1 01", "amount" "1 01", "currency" "gbp", "postcodecheckresult" "unknown", "carddetails" { "cardlastfour" "3436", "enddate" "1225", "cardtype" 11, }, "consumer" { "yourconsumerreference" "consumer" }, "yourpaymentmetadata" { "internallocationref" "example", "internalid" 99 } }, { "receiptid" "965576965044207616", "yourpaymentreference" "d48503dc 9619 4413 a39c 4e99478ba96c", "type" "payment", "createdat" "2023 04 18t12 38 07 7234+01 00", "result" "success", "message" "authcode 217509", "judoid" 100042197, "merchantname" "shodan", "appearsonstatementas" "shodan", "netamount" "1 01", "amount" "1 01", "currency" "gbp", "postcodecheckresult" "unknown", "carddetails" { "cardlastfour" "3436", "enddate" "1225", "cardtype" 11, }, "consumer" { "yourconsumerreference" "consumer" }, "yourpaymentmetadata" { "internallocationref" "example", "internalid" 99 } }, } ], "sort" "time descending" } get transactions scenarios (negative flow) field and formatting errors can occur for various reasons, it can be impossible to simulate all the negative scenarios in a sandbox environment true false 213,125false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type where the codes remain fixed, the descriptions may change you should not build any error handling logic based on these descriptions for a list of possible error codes, types and descriptions, see codes and descriptions docid zrsihomuew xnrq4pbtj