Get Quotation with Dynamic Spread and Fees
Get Quotation with Dynamic Spread and Fees
POST {{Environment_URL}}/vendors/v1/charges/quotation
Before starting the payment creation process, it is necessary to obtain a quotation for the desired amount.
With Dynamic Spread and Fee, the system can define, in real time, the spread and fee to be applied to a specific transaction. By sending the parameters spread and fee in the Get Quotation request, these values will override the default configuration and will be used only for that quotation. The API will then return a quotation_id, which must be used in the standard Comm.Pix payment creation flow. PS: To use this route, you need a specific permission from our Frente Corretora development team. If you want to enable it, please contact us through our support Slack channel. This is a sensitive route, as it allows you to temporarily change your spread and fee values for a single transaction
amount
Operation value in cents
true
Integer
4200 This results in a Quotation for $42.00
currency
Operation Currency
true
String
USD
spread
Operation custom Spread. Spread is a +% to the operation value. Minimum Value: 0 Maximum Value: 20
false
Float
0.15
fee
Operation custom Fee. Fee is a fixed value added to the operation. Value in cents
false
Integer
250 This results in a Fee of $2.50
The response will have the quotation id, you must use it to create a new charge.
The spread and fee fields must be used at the request body.
Headers
Authorization
Bearer <token>
Body Params
amount
Number
desired amount
5197
currency
String
currency
USD
spread
Float
Dynamic Spread
0.015
fee
Number
Dynamic Fee
10
Request
Response

