Get Payment Status by Id
GET/payments/status/:cardpaymentId
Use this endpoint to retrieve data from an existing transaction.
There are no request parameters for this endpoint, besides the paymentId in the URI.
Request
Path Parameters
Unique identifier of the payment.
Header Parameters
appToken created by /auth/token
Format: Bearer xxxxxx...
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- ok
- Result
Schema
Array [
]
links
object
URL for this set
URL for the next set
URL to call for the next set
meta
object
Number of items in the response
Total count of items
Limit set for the number of items
Indicates if there are more items
data
object[]
Payment transaction identification code
attributes
object
billingAddress
object
The card holder’s zip or postal code
The card holder’s home country
The card holder’s home state
The card holder’s street address (line 2)
The card holder’s home city
The card holder’s street address (line 1)
card
object
The unique number assigned to an account
The first and last name on the account
The expiration date of the payment method
The three-character CVV2 code
The time/date when this transaction was created
The merchant ID that this transaction belongs to
The type of payment (card, ach, token, ...)
transaction
object
The transaction amount in dollars and cents
The currency used for the transaction
The invoice number for the transaction
The banking entity response code
The status of the transaction
{
"links": {
"self": "string",
"next": "string",
"note": "string"
},
"meta": {
"items": 0,
"count": 0,
"limit": "string",
"more": true
},
"data": [
{
"id": "string",
"attributes": {
"billingAddress": {
"zip": "string",
"country": "string",
"state": "string",
"line2": "string",
"city": "string",
"line1": "string"
},
"card": {
"number": "string",
"holder": "string",
"expiry": "string",
"code": "string"
},
"created": "2024-07-29T15:51:28.071Z",
"merchantId": "string",
"paymentType": "string",
"transaction": {
"amount": "string",
"currency": "string",
"invoice": "string",
"code": "string",
"message": "string"
}
}
}
]
}
{
"links": {
"self": ""
},
"data": {
"id": "paymentId",
"txnStatus": "CCDebitPending",
"type": "payments"
}
}
{
"links": {
"self": "x"
},
"data": {
"id": "{paymentId}",
"attributes": {
"merchantId": "{merchantId}",
"created": "2019-10-10T18:49:35.311Z",
"miscData": "test note",
"billingAddress": {
"zip": "90210",
"country": "USA",
"state": "CA",
"line2": "Suite 007",
"city": "Los Angeles",
"line1": "21 Jump Street"
},
"transaction": {
"amount": "500",
"code": "0",
"authCode": "A11111",
"avsResult": "T",
"gross": "500",
"rate": "2.95",
"fee": "35",
"currency": "USD",
"invoice": "123456",
"message": "Success",
"net": "450",
"grossMinusNet": "50"
},
"card": {
"number": "xxxx1685",
"holder": "Jane Doe",
"expiry": "0220",
"code": "xxx"
},
"paymentType": "card"
},
"type": "payments"
}
}