Skip to Content
Paycose Docs
Application fees

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • accountstring | object (account)RequiredExpandable

    ID of the connected account (acct_…) the fee was taken from, or the full account object when you pass expand[]=account.

  • amountintegerRequired

    Fee amount in the currency's smallest unit (for example 49900 = 499.00 THB).

  • amount_refundedintegerRequired

    Part of the fee refunded so far, in the currency's smallest unit.

  • amount_remainingintegerRequired

    The part of the fee not yet refunded: amount less amount_refunded, never below 0.

  • refundedbooleanRequired

    true once the whole fee has been refunded.

  • applicationstringRequired

    ID of your application, which earned the fee.

  • balance_transactionstringRequiredNullable

    ID of the record-only balance transaction for the fee you earned; null on older fees recorded without one.

  • chargestringRequiredNullable

    ID of the charge the fee was taken from; null when the fee came from a payout.

  • originating_transactionstringRequiredNullable

    ID of the charge the fee was taken from, the same as charge; null when the fee came from a payout.

  • currencystringRequired

    Three-letter ISO 4217 currency code, in lowercase.

  • fee_sourceobjectRequired

    The object the fee was taken from.

    Show child attributes
    • fee_source.typestringRequired

      Kind of object the fee was taken from.

      • charge

        The fee was taken from a destination charge.

      • payout

        The fee was taken from a payout.

    • fee_source.chargestringNullable

      ID of the charge the fee was taken from, when type is charge.

    • fee_source.payoutstringNullable

      ID of the payout the fee was taken from, when type is payout.

  • refundsobjectRequired

    The fee's newest refunds, at most 10.

    Show child attributes
    • refunds.objectstringRequired

      String naming the object's type: always list.

    • refunds.dataarray of objects (fee_refund)Required

      The fee's newest refunds, at most 10.

    • refunds.has_morebooleanRequired

      true when the fee has more refunds than data holds; list them all at url.

    • refunds.urlstringRequired

      URL that lists all of this fee's refunds.

  • scaling_factorintegerRequired

    Number of smallest units in one unit of the currency, for example 100 for THB. Divide an amount by it to get major units.

  • credit_covered_amountintegerRequired

    Part 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.

  • planestringRequired

    Whether the charge's money went through Paycose or into your own provider account.

    • custodial

      The charge settled through Paycose, which holds the money.

    • memo

      The charge was paid into your own provider account; Paycose only records it.