FILTER BY TAG

Check a Request Status

This service returns the current status of an Afterpay or Clearpay transaction. Use the request ID value returned by the individual service to check the status of the service request.

Endpoints

Production:
POST
https://api.cybersource.com
/pts/v2/refresh-payment-status/
{id}
Test:
POST
https://apitest.cybersource.com
/pts/v2/refresh-payment-status/
{id}
Set the
{id}
to the request ID of the API service you are retrieving.

Response Statuses

Cybersource
responds to your request with one of these statuses in the
status
.
  • AUTHORIZED
    : you have successfully completed the authorization or sale using the redirection URL sent in response.
  • AUTH-REVERSED
    : the authorization is successfully reversed.
  • FAILED
    : the service request is rejected due to missing fields, invalid fields, or downtime.
  • PENDING
    : the payment is waiting for authentication or approval. When you receive a pending status, wait a short time and request the check status service.
  • REFUNDED
    : the refund is successfully completed.
  • SETTLED
    : the payment is successfully completed.

REST API
Example: Checking Status

Request
{ "clientReferenceInformation": { "code": "refnum-1234" }, "paymentInformation": { "paymentType": { "name": "INVOICE", "method": { "name": "AFTERPAY" } } }, "processingInformation": { "actionList": "AP_STATUS" } }
Response to a Successful Request
{ "clientReferenceInformation": { "code": "refnum-1234" }, "id": "7117622159336850603955", "processorInformation": { "responseCode": "00003" }, "reconciliationId": "XFZ3YU79ASG0", "status": "AUTHORIZED" }