Use this API to query the payment completed earlier

Search for Request Payment already completed.

This interface could only be accessed by the Optus host. All other access will be blocked. IP whitelisting will ensure only traffic from Optus could access this endpoint.

The interface provided is an HTTP GET request and JSON response.

HTTP Request

GET https://<env>/v1/payments?requestor={requestor}&paymentRequestId={paymentRequestId}

Request headers

ParameterMandatoryDescription
Content-Typeyesapplication/json
Acceptyesapplication/json
AuthorizationyesBearer Access-admin-oauth-token (Refer Authentication)
User-AgentyesAll requests must include information about the Merchant, Platform, Channel and Service. For example `Merchant/FGH; Platform/Digital; MerchantId/ABC123; Channel/app; CountryCode/AU; System Information/Java/8.3; Service/Shop
Request-Idyesunique identifier for query payment request provided by Merchant

Query parameter

NameTypeMandatoryDescriptionComment
requestorstringyesWho requested the query payment
paymentRequestIdstringyesRequest Id of the original payment request provided by Merchant

Sample Example

curl -v -X POST https://<env>/v1/payments?requestor=0464613757&paymentRequestId=84567324156665656565656565656511 \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer eghijkWerTyuiohjhkjhjkh" \
-H "User-Agent: Merchant/FGH; Platform/Merchant-BE; MerchantId/ABC123; Channel/sms; CountryCode/AU System Information/Java/8.3; Service/Recharge"\
-H "Request-Id: 84567324156665656565656565656512" \

Response body

A successful request returns the 200 OK status code and a JSON response body.

NameTypeMandatoryDescriptionComment
idstringyesUniquely identifies each payment. This is generated by the APT and is included in the response
receiptIdstringyesThe unique identifier representing the payment processed
tokenstringnoThe unique identifier representing the customer's payment card
amountnumberyesThe value of the funds to be transferred from the payment card
currencystringyesThe currency in which the transaction is to occur
initiatorstringyesindicates whether this transaction is initiated by customer or merchantE.g. Merchant/Customer
requestorstringyesWho requested the query paymentphone number, employee number etc.

Sample Example

Status: 200 OK
{
  "id": "13e753e2e4a4b2f692b573e5fbe98b7b5523586a",
  "receiptId": "342344",
  "token": "6966af4975984c30ae2e2c18985bc21c",
  "amount": 100.5,
  "currency": "AUD",
  "initiator": "Customer",
  "requestor": "6140222333",
}
Language
Click Try It! to start a request and see the response here!