Skip to main content
Version: v2

Get Checkout Status

POST https://sandbox-checkout.payjustnow.io/v2/getstatus

The OpenAPI specification for this checkout operation can be found here.

info

This is the same payload that is posted back to your server to the checkoutStatusCallbackUrl you supplied during the gateway installation.

tip

Useful in cases where a callback has not been received and you would like to retrieve the status of a checkout.

Here is an example of a successful PayJustNow checkout status request and response:

POST /v2/getstatus HTTP/1.1X-Signature: JP/eRfdMpk6Y4a/dM4oQqx+JO28iqtTf40dFSBqZasE=X-Merchant-Account-ID: 1Content-Type: application/jsonUser-Agent: PostmanRuntime/7.31.1Accept: */*Postman-Token: 25139991-39e0-4228-ae64-df4217fa5dcfHost: sandbox-checkout.payjustnow.ioAccept-Encoding: gzip, deflate, brConnection: keep-aliveContent-Length: 66 {    "checkoutToken": "v2.1.5d44cf8d-0357-4ec1-b541-f32164962435"} HTTP/1.1 200 OKDate: Mon, 20 Mar 2023 13:08:07 GMTContent-Type: application/jsonContent-Length: 710Connection: keep-alivex-amzn-RequestId: 84fb2a43-d550-477d-898d-63111f457ab5x-amz-apigw-id: CFMcwH0UjoEFatw=X-Amzn-Trace-Id: Root=1-64185ab7-0e3f9ca414abced575101773 {    "requestId": "idempkey",    "checkoutToken": "v2.1.5d44cf8d-0357-4ec1-b541-f32164962435",    "checkoutTotalCents": 300000,    "paymentUrl": "https://sandbox.payjustnow.com/api/v2/app/checkout/v2.1.5d44cf8d-0357-4ec1-b541-f32164962435",    "checkoutPaymentStatus": "PAID",    "paidAt": "2023-03-20T13:07:51.363709Z",    "paymentReference": 15468,    "merchantOrderReference": "yourorderref",    "payjustnowOrderReference": 8173,    "clickTraceId": "S09PRE9PRkVCMjAyM0tPT0RPT0ZFQjIwMjN1bmRlZmluZWQ=",    "createdAt": "2023-03-20T12:25:05.382Z",    "updatedAt": "2023-03-20T13:07:52.007Z",    "expiresAt": "2023-03-20T14:06:31.000000Z",    "cancelledAt": "2023-03-20T13:34:59.000000Z",    "lastCallbackAttemptedAt": "2023-03-20T13:07:54.235Z",    "lastCallbackAttemptStatusMessage": "OK"}