Get the details of a Push to Card payment
In this tutorial, you learn how to get the details of a Push to Card payment.
Before you begin
To get the details of a Push to Card payment, you need the following:
- A registered and fully onboarded account on the J.P. Morgan Payments Developer Portal.
- An active project that provides you with the credentials to make a request.
- A
paymentId
provided in a successful response.
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 Card payment in the United States:
Example of a request to get the details of a Push to Card payment in the United States
Curl
curl --request GET \
--url https://api-mock.payments.jpmorgan.com/payment/v2/payments/98275a2d-1e88-beed-6938-0521a7e0uptc \
--header 'Accept: application/json' \
--header 'Request-Id: 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p'
A successful response contains a Push to Card payment's details, but with a tokenized card number.
For example, the following code snippet contains a response to the previous cURL command to get the details of a Push to Card payment in the United States. 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 Card payment in the United States
Json
{
"paymentId": "98275a2d-1e88-beed-6938-0521a7e0uptc",
"paymentStatus": "PROCESSING",
"statusUpdatedAt": "2024-10-30T14:15:22Z",
"requestedExecutionDate": "2024-10-30",
"paymentIdentifiers": {
"endToEndId": "1lv0t92e023g11354100"
},
"transferType": "CREDIT",
"value": {
"currency": "USD",
"amount": "750"
},
"paymentType": "CARD",
"debtor": {
"name": "Colin Hanks",
"account": {
"alternateAccountIdentifiers": [
{
"identifier": "PRU01US",
"idType": "PROGRAM_ID"
}
]
}
},
"debtorAgent": {
"financialInstitutionIds": [
{
"id": "CHASUS33",
"idType": "BIC"
}
]
},
"creditor": {
"name": "Yuki Tanaka",
"account": {
"card": {
"pan": "4137110019999999",
"expiryDate": "2207"
}
}
},
"remittanceInformation": {
"unstructuredInformation": [
{
"text": "Invoice#012345"
}
]
}
}
Related
- For more information about Push to Card payment parameters, see Payment parameters.
- For more information about the status responses and error codes supported by the Global Payments API, see Global Payments 2 status responses and error codes.