Skip to main content
POST
/
search
Search
curl --request POST \
  --url https://test.paysight.io/customerapi/search \
  --header 'Authorization: <api-key>' \
  --header 'ClientId: <clientid>' \
  --header 'Content-Type: application/json' \
  --header 'UserEmail: <useremail>' \
  --data '
{
  "parentCompanyId": 1,
  "userEmail": "[email protected]",
  "email": "[email protected]",
  "cardNumber": "535456******1742",
  "name": "Joe Bloggs",
  "orderId": 1095654254
}
'
{
  "success": true,
  "message": "",
  "transactions": [
    {
      "gateway": "Decline Defense",
      "messageID": "429b7902-33de-416c-ab98-3d165870bcec",
      "orderId": 191582180,
      "sent": "2024-09-17T14:08:50.257",
      "email": "[email protected]",
      "application": "Sub Start MID Retry",
      "applicationID": 209,
      "customerID": 38284156,
      "shortcodeID": 1533,
      "billingCode": "FlexCharge - CommerceConnect - Grand Med",
      "data": "19 Day Renewal.Charge FAILED: Do Not Honor - 29.990 NMITransId:9943005219 FlexCharge rescue attempt",
      "status": "Submitted",
      "statusID": 1789,
      "success": false,
      "completed": null,
      "premium": 1,
      "currency": "USD",
      "pricePointID": 31566,
      "pricePoint": "$29.990",
      "priceVal": 29.99,
      "product": "US - RibbedDecor",
      "productID": 8324,
      "campaign": "None/Unassigned",
      "campaignID": 0,
      "shopId": 1300430925,
      "storeName": "Ribbedecor",
      "storeDomain": "www.ribbedecor.com",
      "storeRootDomain": "ribbedecor.com",
      "merchantAccountId": 608,
      "midName": "DeclineDefense - Commerce Connect - Grand Media",
      "mid": "flexComConGrandMedia",
      "companyId": 103,
      "company": "Grand Media Inc.",
      "parentCompanyId": 100,
      "parentCompany": "Commerce Connect",
      "bin": "535456",
      "last4": 1742,
      "sessionId": "20240829140820431062231114683",
      "name": "Shane Connolly",
      "refundable": false,
      "refunded": false,
      "hasAlert": false,
      "chargedBack": false,
      "attempt": 2,
      "authOnly": false,
      "paymentNumber": 1,
      "totalAttempt": 2,
      "refundSource": 0,
      "alertType": 0,
      "alertSource": 0,
      "originalMessageId": null,
      "originalApplicationId": 209,
      "originalApplication": "Sub Start MID Retry",
      "storeCurrency": "USD",
      "blackListing": 0,
      "alertSourceName": "Unassigned",
      "alertTypeName": "Unassigned",
      "refundSourceName": "Unassigned",
      "childTransactions": "<array>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your Paysight API key. You can find it in your Paysight account at https://app.paysight.io/settings/account

Headers

ClientId
string
required

Your Paysight Tenant/Client Id. This is the id of the parent company listed in https://app.paysight.io/management/companies. Alternatively, this will be provided by Paysight

UserEmail
string
required

The email address of the party or group making the request

Body

application/json

Payload

parentCompanyId
integer
required

Your Paysight tenant id. This will be provided by Paysight.

Example:

1

userEmail
string<email>
required

An email associated with the party/agent making the request

email
string<email>

The email address of the customer. This is required if no other search parameters (name or card number) is provided

cardNumber
string

This can be the full 16 digit card number or the card number with the middle 6 digits redacted, as per example.

Example:

"535456******1742"

name
string

Customer name. This can be entered along with cardNumber. If entered alone then it must be at least 10 characters

Example:

"Joe Bloggs"

orderId
integer

The unique Paysight orderId

Example:

1095654254

Response

200 - application/json

Valid Request. More detailed info will be in the JSON body

success
boolean

This indicates if this request was processed successfully, no validation issues etc.

Example:

true

message
string

Debug information

Example:

""

transactions
object[]

Array of transactions