Application fees
The application_fee object
An application fee is the part of a destination charge you keep; the rest is owed to the connected account. Paycose records one when the charge settles, and refunding it adds the refunded amount to what you owe the connected account.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
ID of the connected account (
acct_…) the fee was taken from, or the full account object when you passexpand[]=account.amountintegerRequiredFee amount in the currency's smallest unit (for example 49900 = 499.00 THB).
amount_refundedintegerRequiredPart of the fee refunded so far, in the currency's smallest unit.
amount_remainingintegerRequiredThe part of the fee not yet refunded:
amountlessamount_refunded, never below 0.refundedbooleanRequiredtrueonce the whole fee has been refunded.applicationstringRequiredID of your application, which earned the fee.
balance_transactionstringRequiredNullableID of the record-only balance transaction for the fee you earned;
nullon older fees recorded without one.chargestringRequiredNullableID of the charge the fee was taken from;
nullwhen the fee came from a payout.originating_transactionstringRequiredNullableID of the charge the fee was taken from, the same as
charge;nullwhen the fee came from a payout.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
fee_sourceobjectRequiredThe object the fee was taken from.
Show child attributes
fee_source.typestringRequiredKind of object the fee was taken from.
chargeThe fee was taken from a destination charge.
payoutThe fee was taken from a payout.
fee_source.chargestringNullableID of the charge the fee was taken from, when
typeischarge.fee_source.payoutstringNullableID of the payout the fee was taken from, when
typeispayout.
refundsobjectRequiredThe fee's newest refunds, at most 10.
Show child attributes
refunds.objectstringRequiredString naming the object's type: always
list.The fee's newest refunds, at most 10.
refunds.has_morebooleanRequiredtruewhen the fee has more refunds thandataholds; list them all aturl.refunds.urlstringRequiredURL that lists all of this fee's refunds.
scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.credit_covered_amountintegerRequiredPart of the fee that was paid from Paycose fee credit, in the currency's smallest unit. Fee credit is no longer used for this, so new fees show
0.planestringRequiredWhether the charge's money went through Paycose or into your own provider account.
custodialThe charge settled through Paycose, which holds the money.
memoThe charge was paid into your own provider account; Paycose only records it.