Skip to main content
Beta version

Welcome to the beta version of the Global Payments 2 API! For the generally available Global Payments API, refer to Global Payments

Get the details of a Push to Wallet payment

In this tutorial, you learn how to get the details of a Push to Wallet payment.

Before you begin

To get the details of a Push to Wallet request, you need the following:

Send a request

From your command line, send a GET request to the /payments/{paymentId} endpoint.

For example, the following code snippet contains a cURL command that gets the details of a Push to Wallet payment that uses a PayPal email address:

Example of a request to get the details of a Push to Wallet payment that uses a PayPal email address
Curl
curl --request GET \
  --url https://api-mock.payments.jpmorgan.com/payment/v2/payments/b887bcaf-16b2-4e90-ace1-e54386cf4bd3 \
  --header 'Accept: application/json' \
  --header 'Request-Id: 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p'

A successful response contains a Push to Wallet payment's status. 

For example, the following code snippet contains a response to the previous cURL command to get the details of a Push to Wallet payment that uses a PayPal email address. It's formatted in JSON so that it's easier to see.

Example of a response to a successful request to get the details of a Push to Wallet payment that uses a PayPal email address
Json
{
  "paymentId": "b887bcaf-16b2-4e90-ace1-e54386cf4bd3",
  "paymentStatus": "PROCESSING",
  "statusUpdatedAt": "2024-10-01T14:15:22Z",
  "requestedExecutionDate": "2024-10-01",
  "paymentIdentifiers": {
    "endToEndId": "PY202109202311354152"
  },
  "transferType": "CREDIT",
  "value": {
    "currency": "USD",
    "amount": "10"
  },
  "paymentType": "PAYPAL",
  "debtor": {
    "name": "Delwin O",
    "account": {
      "accountNumber": "1000103",
      "accountType": "DDA"
    }
  },
  "debtorAgent": {
    "financialInstitutionIds": [
      {
        "id": "CHASUS33",
        "idType": "BIC"
      }
    ]
  },
  "creditor": {
    "name": "Robert Brown",
    "account": {
      "alternateAccountIdentifiers": [
        {
          "identifier": "robert.brown@example.com",
          "idType": "PROPRIETARY",
          "proprietarySchemeName": "EMAL"
        }
      ]
    },
    "postalAddress": {
      "postalCode": "33634",
      "country": "US"
    }
  },
  "paymentPurpose": {
    "purpose": {
      "code": "GOODS",
      "type": "PROPRIETARY"
    }
  },
  "remittanceInformation": {
    "unstructuredInformation": [
      {
        "text": "Payment for Building materials - INVC009100"
      }
    ]
  }
}