APIS

Data Flow


Data Structures

ApplicationCharge

FieldDescriptionType
idPrimary key IDbigint
store_idStore IDbigint
application_idApplication IDvarchar
namePayment namevarchar
pricePayment amountdecimal
confirm_urlConfirmation payment page URLvarchar
return_urlRedirect URL after payment or denialvarchar
statusPayment statusvarchar
testWhether it is a test modetinyint
created_atCreation timedatetime
updated_atUpdate timedatetime

RecuuringCharge

FieldDescriptionType
idBill IDbigint
store_idStore IDbigint
application_idApplication IDvarchar
nameBill Namevarchar
priceBill Amountdecimal
capped_amountCapped Amount for Usage-Based Billingdecimal
termsTerms of Usage-Based Billingvarchar
return_urlApp Homepagevarchar
confirmation_urlMerchant Confirmation Pagevarchar
statusCurrent Bill Status (pending, accepted, declined, active, expired, frozen)varchar
trial_daysTrial Daysbigint
activated_onActivation Timedatetime
trial_ends_onTrial End Timedatetime
billing_onNext Billing Timedatetime
cancelled_onBill Cancellation Timedatetime
testTest Mode Indicatortinyint
created_atCreation Timedatetime
updated_atUpdate Timedatetime
cancel_sub_onSubscription Cancellation Timedatetime
charge_timesNumber of Charges, 0 Represents Unlimitedint
charge_interval_daysBilling Interval in Daysint
remaining_charge_timesRemaining Charges, for Unlimited this Value is Always 1int

UsageCharge

FieldDescriptionType
idPrimary key IDbigint
created_atCreation Timedatetime
updated_atUpdate Timedatetime
store_idStore IDbigint
recurring_charge_idAssociated Recurring Charge IDbigint
termsTerms of Chargevarchar
pricePricedecimal
application_idApplication IDvarchar
pay_statusPayment Statusvarchar
transaction_idAssociated Transaction IDbigint

Transaction

FieldDescriptionType
idPrimary key IDbigint
store_idStore IDbigint
charge_idID associated with ApplicationCharge/RecurringChargebigint
priceCharge pricedecimal
statusCurrent transaction status (pending, paying, paid, failed)varchar
paid_atPayment timedatetime
created_atCreation timedatetime
updated_atUpdate timedatetime
usage_priceUsage feedecimal
file_urlInvoice URLvarchar
bill_idID from settlement_billsbigint
commission_rateCommission ratedecimal
pay_channelPayment channelvarchar
payment_serial_numberPayment serial numbervarchar
application_idApplication IDvarchar
testWhether it is a test billtinyint

Refund

FieldDescriptionType
idPrimary keybigint
settlement_bills.idAssociated Settlement Bill IDbigint
transaction_idAssociated Transaction Order IDbigint
store_idStore IDbigint
charge_typeCurrent Bill Type (one-time/recurring charge)varchar
application_idApplication IDvarchar
amount_refundRefund Amountdecimal
voucher_pathPayment Voucher Pathvarchar
created_atCreation Timedatetime
updated_atUpdate Timedatetime

SettlementBill

FieldDescriptionType
idPrimary key IDbigint
created_atCreation Timedatetime
updated_atUpdate Timedatetime
partner_idPartner IDbigint
application_idApplication IDvarchar
start_timeStart Time of the Bill Cycledatetime
end_timeEnd Time of the Bill Cycledatetime
before_total_charge_amountTotal Charge Amount before Settlementdecimal
free_commission_limitFree Commission Limitdecimal
amountTotal Amount of the Orderdecimal
amount_payableAmount Payable on the Billdecimal
commission_amountCommission Amount on the Billdecimal
amount_refundRefund Amount on the Billdecimal
commission_rateCommission Ratedecimal
statusStatusvarchar
reject_reasonReason for Rejectionvarchar

Invoice for merchants