Skip to main content
Version: 2.11
SEP-31

Retrieve Fees

GET 

/fee

The Platform will make this request to the anchor every time a transaction is initiated by a client application without a quote_id.

The Anchor must ensure that the sending and receiving customers specified in the request meet the KYC requirements necessary to partake in the transaction described in the request.

The anchor must return the fee it will charge for the transaction.

In the future, this endpoint may be used to provide estimated fees to client applications prior to initiating transactions. When this change is made, the request schema will be adapted to support the use case.

Request

Query Parameters

    send_asset stringrequired

    The asset the client application will send to the anchor in exchange for receive_asset in Asset Identification Format.

    receive_asset stringrequired

    The asset the that the anchor will send in exchange for send_asset in Asset Identification Format.

    send_amount string

    The amount of send_asset the client application will send in exchange for receive_asset. One of send_amount or receive_amount will always be included in the request. If the client application specified a quote_id in its transaction creation request, both amounts specified in the referenced quote will be passed.

    receive_amount string

    The amount of receive_asset the anchor will send in exchange for send_asset. One of send_amount or receive_amount will always be included in the request. If the client application specified a quote_id in its transaction creation request, both amounts specified in the referenced quote will be passed.

    client_id stringrequired

    An identifier for the client application making the request. This ID can be used to offer different fees to different clients. A client ID it the Stellar account of a sending anchor: In SEP-31, the client_id should match the account of a known SEP-31 sending anchor match the one used to authenticate via SEP-10.

    sender_id stringrequired

    The SEP-12 customer ID of the sending user.

    receiver_id stringrequired

    The SEP-12 customer ID of the receiving user.

Responses

Success.
Schema

    fee

    object

    amount stringrequired
    asset stringrequired
Loading...