File Processing

List Files

GET
/files

Return a list of File Processing resources previously created by the merchant. Results can be filtered by status, id, and creation date range, and paginated using standard paging parameters.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /accesstoken, sent as Authorization: Bearer <token>.

In: header

Query Parameters

page?number

Indicates the page sequence to return in the response. The number of records presented on each page is determined by page_size field.1 means the first page, 2 the second and so on.

Default1
page_size?number

The total number of records to return in a single page for a list. The maximum this value can be is 1000, meaning that the maximum number of records to return in a single request is 1000.

Range1 <= value <= 1000
Default5
order?string

The direction of the ordering of the entire list, ASC or DESC

Value in

  • "ASC"
  • "DESC"
order_by?string

The value to order the search list results by.

Value in

  • "TIME_CREATED"
  • "ID"
status?string

The overall status of the file being processed. *INITIATED - The initial status of all newly created file resources. Occurs after the API sends the signed URL to upload your file to. *UPLOADED - Occurs after you upload the bulk file to the signed URL provided by the API. *PENDING - Occurs after record validation and the combinations are deemed valid by our File Processing solution. *SUBMITTED - Occurs once the file has been fully processed. *FAILED -Occurs after record validation if the combinations are deemed invalid by our File Processing solution *COMPLETED - Occurs after the response file is generated and the API sends you the signed URL to download the encrypted response file via webhook notification.

Value in

  • "INITIATED"
  • "UPLOADED"
  • "SUBMITTED"
  • "PENDING"
  • "FAILED"
  • "COMPLETED"
from_time_created?string

The start time to search for in a range, using the resource time_created value.

to_time_created?string

The end time to search for in a range, using the resource time_created value.

id?string

A unique identifier for the merchant account set by Global Payments.

Header Parameters

X-GP-Version*string

The version of the API to execute the request.

Length1 <= length <= 50
Default"2021-03-22"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/files" \  -H "X-GP-Version: 2021-03-22"
{  "total_record_count": 1,  "current_page_size": 1,  "merchant_id": "MER_880c34767b184d5e82b10e767201e648",  "merchant_name": "Curtis_Douglas49",  "account_id": "FMA_2d4ddd693ff7448b97ea420b13aecac2",  "account_name": "file_processing",  "filter": {    "from_time_created": "2026-05-03",    "to_time_created": "2026-05-10"  },  "paging": {    "page_size": 5,    "page": 1,    "order": "ASC",    "order_by": "TIME_CREATED"  },  "files": [    {      "id": "FPR_bnqlo0LgbMt221TczxF70Awdg7c5ez",      "time_created": "2023-03-10T13:14:48.386Z",      "status": "INITIATED",      "merchant_id": "MER_880c34767b184d5e82b10e767201e648",      "merchant_name": "Curtis_Douglas49",      "account_id": "FMA_2d4ddd693ff7448b97ea420b13aecac2",      "account_name": "file_processing"    }  ],  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "FILE_CREATE",    "time_created": "2021-05-03T21:23:39.718Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}