Skip to content

Funds Settlement Statement

File Transfer

File Generation Time

Generate D-1 day fund bill settlement file at 01:00:00 AM (GMT+3) on D day

File Acquisition


Server Information

  • Sandbox environment server address: sandbox.sgate.sa

File Acquisition Rules

  • Get a list of files:
shell
curl "ftp://{USER}:{PASSWORD}@sandbox.sgate.sa/" -v --ssl --list-only
  • Download Funds Settlement Statement
shell
curl "ftp://{USER}:{PASSWORD}@sandbox.sgate.sa/{YYYYMMDD}/GCCFUND_{MERCHANR_ID}_{YYYYMMDD}.xlsx" -v --ssl -o "GCCRECO_{MERCHANR_ID}_{YYYYMMDD}.xlsx"
  1. {USER}: Merchant reconciles FTP account in SGate system
  2. {PASSWORD}: The merchant reconciles the FTP account password in the SGate system
  3. {MERCHANR_ID}: Merchant’s merchant number in the SGate system
  4. {YYYYMMDD}: Transaction date: D-1, format: yyyy-MM-dd, example: 2023-08-21
  • System background acquisition

img

Basic File Information

File format and encoding method

  • The file uses the standard xlsx format file
  • The file is encoded using UTF-8

File Name

Fund bill settlement file name: GCCFUND_{MERCHANR_ID}_{YYYYMMDD}

  • {MERCHANR_ID}: Merchant’s merchant ID in the SGate system
  • {YYYYMMDD}: Transaction date: D-1, format: yyyy-MM-dd, example: 2023-08-21

Document Content

Document Details Record

The details of the fund bill settlement file are recorded as the transaction information details of all transactions with final status on T-1 of the corresponding merchant.

Serial numberField nameField descriptionMeaning
1Merchant_IDMerchant IDMerchant’s merchant ID in SGate
2Order_IDOrder numberThe order number of the order in SGate
3Merchant_Order_IDMerchant order numberThe order number of the order in the merchant
4Order_Create_TimeOrder creation timeOrder creation time, yyyy-MM-dd HH:mm:ss(z). Such as 2023-01-23 13:33:28(GMT+3)
6Order_Complete_TimeOrder completion timeOrder completion time, yyyy-MM-dd HH:mm:ss(z). Such as 2023-01-23 13:33:28(GMT+3)
8AmountOrder amountTotal order amount, accurate to two decimal places
9CurrencyCurrency of order amountCurrency corresponding to total order amount
10Order_StatusOrder StatusOrder Status
11Trans_TypeTransaction typeOrder transaction type
12Payment_TypePayment typeThe type of user payment order, such as DEBIT
13Payment_MethodPayment methodThe way the user pays for the order, such as MADA
14Fee_AmountHandling fee amountThe handling fee amount corresponding to the order, accurate to two decimal places
15Fee_CurrencyHandling fee currencyOrder corresponding handling fee currency
16Settle_AmountAmount to be settledAmount to be settled corresponding to the order, accurate to two decimal places
17Settle_CurrencyCurrency of the amount to be settledCurrency of the amount to be settled corresponding to the order
18Refund_AmountRefund amountTotal refund amount of the order
19Refund_CurrencyRefund currencyCurrency to apply for refund
20Refund_TimeRefund timeRefund completion time
21Ori_Order_IDOriginal transaction order numberSGate Original transaction order number
22Ori_Merchant_Order_IDOriginal transaction merchant order numberOriginal transaction merchant order number

Transaction Summary Data

  • Total Amount: the total amount of the order
  • Total Fee: Total amount of handling fees
  • Total Settle Amount: The total amount to be settled

Sppendix

Order Status

Order StatusMeaning
STransaction successful

Order Transaction Type

Transaction TypeMeaning
PPayment Transaction
RRefund Transaction
CChargeback Transaction