Refund Checkout
POST https://sandbox-checkout.payjustnow.io/v2/refund
The OpenAPI specification for this checkout operation can be found here.
note
You can only refund a checkout that is in PAID, PAID_PENDING_CALLBACK or PARTIALLY_REFUNDED status.
This operation is synchronous.
Here is an example of a successful PayJustNow checkout refund request and response:
POST /v2/refund HTTP/1.1X-Signature: twj/mCvqfeSCZq+uZDJL3WLmXBvT2lB8UDPbBf9yf8s=X-Merchant-Account-ID: 1Content-Type: application/jsonUser-Agent: PostmanRuntime/7.31.1Accept: */*Postman-Token: 2f33ebd7-e057-4ad2-bde8-f7920414c1d7Host: sandbox-checkout.payjustnow.ioAccept-Encoding: gzip, deflate, brConnection: keep-aliveContent-Length: 194 { "checkoutToken": "v2.1.5d44cf8d-0357-4ec1-b541-f32164962435", "merchantRefundReference": "RF18402", "refundAmountCents": 100000, "refundDescription": "Please refund this order."} HTTP/1.1 200 OKDate: Mon, 20 Mar 2023 13:10:56 GMTContent-Type: application/jsonContent-Length: 158Connection: keep-alivex-amzn-RequestId: 0f9d0ef4-75cd-4d92-a909-7242d0288cd1x-amz-apigw-id: CFM21H_9joEFqIQ=X-Amzn-Trace-Id: Root=1-64185b5e-27a24f9e62e3e9f76d977acf { "refundedAmountCents": 100000, "refundStatus": "SUCCESS", "refundStatusAt": "2023-03-20T13:10:55.735536Z", "refundStatusDescription": "Order successfully refunded"}