On This Page
Check Status for an Order
You can retrieve the current status of any API request by requesting a check status. Use
the check status request as often as necessary to obtain the information you need.
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
to the request ID of the API service you are retrieving.
{id}
Required Fields for Checking Status
- Set to one of these values:
- payPal: the PayPal payment method.
- venmo: the Venmo payment method.
- Set toeWallet.
- Set toAP_STATUS.
Example: Checking Status
Request
{ "agreementInformation": { "agreementId": "agreementId" }, "clientReferenceInformation": { "code": "12" }, "processingInformation": { "actionList": [ "AP_STATUS" ] }, "paymentInformation": { "customer": { "customerId": "201.1" }, "paymentType": { "method": { "name": "payPal" }, "name": "eWallet" } } }
Response to a Successful Request
{ "submitTimeUtc": "2024-09-12T15:45:31Z", "orderInformation": { "referenceId": "default", "description": "1bc", "merchantDescriptor": "Demo-Merchant" }, "processorInformation": { "transactionId": "2F930071T65206814", "paymentUrl": "https://www.sandbox.paypal.com/checkoutnow?token=2F930071T65206814" }, "paypalgateway_mid": "J4QDR26LU6K4A", "message": "Successful", "reconciliationId": "7261559298496016901991", "paypalgateway_merchant_email": "[email protected]", "status": "PAYER_ACTION_REQUIRE", "id": "7261559585096017001991" }
Response Statuses for Checking Status
Cybersource
responds to your request with one of these statuses in
the status
response field. The possible
statuses are dependent on the API service you are retrieving a status for.- Create Order
- COMPLETED: The order was approved by the customer. This status can also occur when the order is successfully used for an authorization or sale.
- PAYER_ACTION_REQUIRE: The request was successful, and you must redirect the customer to the PayPal checkout URL in order for the customer to approve the payment.
- INVALID_REQUEST: The request was not successful. Send a new request.
- Update Order
- COMPLETED: The request was successful and the order information is updated.
- INVALID_REQUEST: The request was not successful. Send a new update order request.
- Save Order
- COMPLETED: The request was successful and the customer's payment information from the order is saved for future transactions.
- INVALID_REQUEST: The request was not successful. Send a new save order request.
- Void Order
- VOIDED: The request was successful and the customer's payment credentials are no longer saved.
- INVALID_REQUEST: The request was not successful. Send a new request.