Token Replacement
Token Replacement to sFTP
Replace card tokens in a document and upload the result to an sFTP server.
PUT
File Transfer Token Replacement Guide
Replace tokens with card data in SFTP file transfers
Error Responses
Parameter Constraints
- serverAddress: Format is
hostnameorhostname:port. Only one colon is allowed. Default port is 22. - filter: Must be one of:
GBT,SIMPLECSV,SIMPLEJSON,AIR,IUR,TADC,CSV. Case-insensitive. - Authorization header: Must contain valid Basic Auth credentials (
username:password) for the SFTP server.
Parameters
Authentication
string
Recommended. A long-lived token for browser-side calls. How to generate.
string
Alternative. Valid for 5 minutes. How to generate.
Path Parameters
string
required
The sFTP server address. This can be an IP address or domain name. Add the port number with a colon if required. For example:
fsgatewaytest.aexp.com:22 or 10.200.1.10.string
required
The folder path where the file should be uploaded to. This can be an individual folder or a full path.
string
required
The file name for the content being uploaded, including extension. For example:
PCIBTST.xml.Query String
string
required
Indicates the format of the file being sent. Read more on Supported Formats.
string
The timeout, in seconds, for the sFTP server to respond.
Headers
string
required
Comma-separated token values to insert into the file. Tokens should be listed in the order of their appearance. For tokens appearing multiple times, include the number of occurrences in square brackets. Full token URIs or bare 32-character token IDs are both accepted. If fewer tokens are listed than there are card locations in the file, the last token is repeated for all remaining locations.
string
required
The authorization parameter used to authenticate to the sFTP server.
string
Supported compression formats:
gzip and deflate. Omit this header if no compression is needed.Request Body
The request body contains the raw file content as text, in the format named by thefilter parameter. The preset filter determines where card data belongs in that format; PCI Booking inserts the card details of the tokens listed in X-PciBooking-carduri, in order, then uploads the result to the sFTP server.

