Quote a convenience fee (mirrors IFee shape)
POST
/v1/hosted-sessions/{sessionId}/quote-fee
const url = 'https://api.govifi.com/v1/hosted-sessions/example/quote-fee';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"method":"card","card_type":"visa","processor_token":"example","payment_method":{"card":{"last4":"example","exp_month":1,"exp_year":1,"bin":"example","card_brand":"example"},"ach":{"bank_name":"example","routing_number":"example","account_number_suffix":"example","account_type":"checking"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.govifi.com/v1/hosted-sessions/example/quote-fee \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "method": "card", "card_type": "visa", "processor_token": "example", "payment_method": { "card": { "last4": "example", "exp_month": 1, "exp_year": 1, "bin": "example", "card_brand": "example" }, "ach": { "bank_name": "example", "routing_number": "example", "account_number_suffix": "example", "account_type": "checking" } } }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sessionId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
method
required
string
card_type
Required when method=card (different cards have different rates)
string
processor_token
Proxynized token for the entered details (same token confirm uses). Required for card/ach; omitted for apple_pay.
string
payment_method
Required for card/ach; omitted for apple_pay.
object
card
object
last4
string
exp_month
integer
exp_year
integer
bin
string
card_brand
string
ach
object
bank_name
string
routing_number
string
account_number_suffix
string
account_type
string
Responses
Section titled “ Responses ”Fee quote
Media type application/json
Mirrors miViewPointExtreme.SharedCore.Portal.IFee
object
amount
required
Subtotal in cents (IFee.Amount)
integer
convenience_fee
required
Cents (IFee.ConvenienceFee)
integer
developer_fee
Cents (IFee.DeveloperFee), optional
integer
total_amount
required
Cents (IFee.TotalAmount)
integer
method
required
string
card_type
string
cached_until
string format: date-time
Example
{ "method": "card"}