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>
Important note about currency.clamp
When consuming the quotation endpoint, developers must always check the currency.clamp field in the response.
This field can have two possible values:
NORMAL → The quotation was calculated normally, without hitting any limits.
MAXIMUM → The quotation has reached the maximum allowed value. In this case, the returned amount is already capped at the defined limit, currently 200,000 USD approximately.
⚠️ Attention: If the response indicates MAXIMUM, it means the amount used for the calculation is already the maximum allowed. This exact value will also be applied in the create charge operation, so it is essential not to recalculate or assume a different amount than the one returned by the quotation.
💡 Note:
The maximum allowed value is also exposed in the field currency.maxValueSimplePay.
Body Params
amount
Number
desired amount
5197
currency
String
currency
USD
spread
Float
Dynamic Spread
0.015
fee
Number
Dynamic Fee
10
Request
Response

