Search for a Payment Method
Return a list of stored payment methods where search criteria is in the message body.
Authorization
bearerAuth Access token from POST /accesstoken, sent as Authorization: Bearer <token>.
In: header
Header Parameters
The version of the API to execute the request.
1 <= length <= 50"2021-03-22"Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.
1 <= length <= 50Request Body
application/json
A meaningful label for the merchant account set by Global Payments.
1 <= length <= 50Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/payment-methods/search" \ -H "X-GP-Version: 2021-03-22" \ -H "Content-Type: application/json" \ -d '{ "account_name": "Tokenization", "card": { "number": "4263970000005262", "expiry_month": "05", "expiry_year": "30" } }'{ "total_record_count": 1000, "current_page_size": 564, "merchant_id": "MER_c4c0df11039c48a9b63701adeaa296c3", "merchant_name": "Sandbox_merchant_2", "account_id": "TRA_86920f927028745yt34d077d88beb29b", "account_name": "Tokenization", "filter": { "account_name": "Tokenization", "number": "4263970000005262", "expiry_month": "05", "expiry_year": "25" }, "paging": { "page": 1, "page_size": 5, "order_by": "TIME_CREATED", "order": "ASC" }, "payment_methods": [ { "id": "PMT_31087d9c-e68c-4389-9f13-39378e166ea5", "time_created": "2021-05-03T21:23:39.718Z", "status": "ACTIVE", "reference": "CustABC_Card_1", "card": { "number_last4": "string", "brand": "VISA", "expiry_month": "05", "expiry_year": "25", "masked_network_token_last4": "xxxxxxxxxxxx5262", "network_token_expiry_month": "05", "network_token_expiry_year": "25" } } ], "action": { "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d", "type": "PAYMENT_METHOD_CREATE", "time_created": "2021-05-03T21:23:39.718Z", "result_code": "SUCCESS", "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d", "app_name": "my_lovely_app" }}Detokenize a Payment Method POST
Detokenize the stored payment method to get a full payment method information.(Availability in production depends on your live configuration.)
Get a Transaction Summary Report GET
Transaction Summary Report Get an aggregated view of all Transactions across all Payment Methods. Availability of this feature in production depends on your allowed live configuration. Please contact Global Payments before coding this feature to confirm it will be available to you when you go live.