Files
Stay organized with collections
Save and categorize content based on your preferences.
Definitions
- PIAID: Payment Integrator Account ID. This defines a specific integration with contractual constraints.
- NDJSON: Newline Delimited JSON. A format for storing or transmitting sequences of JSON objects. Each valid JSON object resides on its own line, separated by newline characters, enabling efficient streaming and processing of large datasets.
GPS File Protocol Overview
GSP files are intended to communicate large numbers of events or entities. GSP files use NDJSON formats, signed and encrypted using the Payment Integrator's same PGP or JWE keys that are used for application-layer encryption. The general format of a GSP file will start with a FileHeader, followed by a file type specific header, followed by the remaining contents of the file.
{"requestId":"G664529173","generationTimestamp":{"epochMillis":"1481899949606"},"type":"GSP_CARD_SETTLEMENT_V1","paymentIntegratorAccountId":"PAYMENT_INTEGRATOR"}
...
...
File Type Content
...
...
File Exchange Protocol
Google will set up an SFTP server for the purposes of file exchanges. For files created by the Payment Integrator and provided to Google, the Payment Integrator will place the file in Google-Hosted SFTP server. Google will provide the SFTP server credentials during onboarding. This will be setup at a Payment Integrator’s level and Payment Integrators will be expected to use the same credentials for multiple PIAIDs.
File Naming
The naming convention for GSP Files is as follows: {FileTypeSpecificPrefix}-{PIAID}-{ISO 8601 Formatted FileGenerationDate(truncated to day)}-{FileGenerationTimeStamp}
Compression
The file may be zipped using Gzip. The files that utilize this format must use the “.gz” extension for clear identification. The compression must be performed after encrypting the file. Use of this feature should be communicated with Google during the setup process.
Security
The file must be signed and encrypted using the same encryption mechanisms outlined on the GSP’s Application layer security page.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["\u003cp\u003eGSP (Google Service Protocol) files transmit large datasets using the NDJSON format, enabling efficient processing.\u003c/p\u003e\n"],["\u003cp\u003eThese files are secured via encryption and signing using the Payment Integrator's existing PGP or JWE keys, ensuring data integrity and confidentiality.\u003c/p\u003e\n"],["\u003cp\u003eGoogle facilitates file exchange through a designated SFTP server, streamlining the transfer process.\u003c/p\u003e\n"],["\u003cp\u003eFiles adhere to a specific naming convention: \u003ccode\u003e{FileTypeSpecificPrefix}-{PIAID}-{ISO 8601 Formatted FileGenerationDate(truncated to day)}-{FileGenerationTimeStamp}\u003c/code\u003e, promoting organization and clarity.\u003c/p\u003e\n"],["\u003cp\u003eOptional Gzip compression can be applied after encryption to reduce file size, indicated by a ".gz" extension.\u003c/p\u003e\n"]]],["GSP files, utilizing NDJSON format, communicate large datasets and are signed and encrypted with the Payment Integrator's PGP or JWE keys. Files are transferred via a Google-hosted SFTP server, using credentials shared across multiple PIAIDs. Files start with a FileHeader, followed by type-specific content. Naming convention follows a specific format, including FileType, PIAID, and timestamp. Files may be Gzip compressed after encryption, marked with a \".gz\" extension.\n"],null,["# Files\n\nDefinitions\n-----------\n\n- **PIAID**: Payment Integrator Account ID. This defines a specific integration with contractual constraints.\n- [**NDJSON**](https://en.wikipedia.org/wiki/JSON_streaming#Newline-delimited_JSON): Newline Delimited JSON. A format for storing or transmitting sequences of JSON objects. Each valid JSON object resides on its own line, separated by newline characters, enabling efficient streaming and processing of large datasets.\n\nGPS File Protocol Overview\n--------------------------\n\nGSP files are intended to communicate large numbers of events or entities. GSP files use [NDJSON](https://en.wikipedia.org/wiki/JSON_streaming#Newline-delimited_JSON) formats, signed and encrypted using the Payment Integrator's same PGP or JWE keys that are used for [application-layer encryption](/pay/korea-cards-v1/guides/connectivity/security/application-layer). The general format of a GSP file will start with a [FileHeader](/pay/korea-cards-v1/guides/connectivity/FileHeader), followed by a file type specific header, followed by the remaining contents of the file. \n\n {\"requestId\":\"G664529173\",\"generationTimestamp\":{\"epochMillis\":\"1481899949606\"},\"type\":\"GSP_CARD_SETTLEMENT_V1\",\"paymentIntegratorAccountId\":\"PAYMENT_INTEGRATOR\"}\n ...\n ...\n File Type Content\n ...\n ...\n\nFile Exchange Protocol\n----------------------\n\nGoogle will set up an SFTP server for the purposes of file exchanges. For files created by the Payment Integrator and provided to Google, the Payment Integrator will place the file in Google-Hosted SFTP server. Google will provide the SFTP server credentials during onboarding. This will be setup at a Payment Integrator's level and Payment Integrators will be expected to use the same credentials for multiple PIAIDs.\n\nFile Naming\n-----------\n\nThe naming convention for GSP Files is as follows: `{FileTypeSpecificPrefix}-{PIAID}-{ISO 8601 Formatted FileGenerationDate(truncated to day)}-{FileGenerationTimeStamp}`\n\nCompression\n-----------\n\nThe file may be zipped using [Gzip](https://www.gnu.org/software/gzip/). The files that utilize this format must use the \".gz\" extension for clear identification. The compression must be performed after encrypting the file. Use of this feature should be communicated with Google during the setup process.\n\nSecurity\n--------\n\nThe file must be signed and encrypted using the same encryption mechanisms outlined on the [GSP's Application layer security page](/pay/korea-cards-v1/guides/connectivity/security/application-layer)."]]