Get a free key
Payments

Payments

Growth and upView as Markdown

A loan payment on the advertised (or given) price, with taxes and fees for the ZIP when one is given, and a lease payment when the manufacturer publishes a money factor and residual for the model. Every figure carries its terms; none is an offer of credit.

GEThttps://api.motorsdynamic.com/api/v2/payments/{vin}

Plan and price

PlanAccessPrice
FreeNonot included
GrowthYes$0.005 per call
ScaleYes$0.003 per call
EnterpriseYescontract

A call is billed when it answers 2xx. See pricing.

Parameters

NameInTypeRequiredDescription
vinpathstringyes17-character VIN (case-insensitive).
pricequerynumbernoPrice to compute on. Default: the dealer's advertised price.
zipquerystringno5-digit ZIP code of a US state or DC.
termqueryintegernoLoan term in months.
downquerynumbernoCash down payment.
tradeInquerynumbernoTrade-in value.
rebatequerynumbernoManufacturer rebate applied to the price.
docFeequerynumbernoDealer documentation fee. Default: the fee crawled with the car's listing.
creditScorequeryintegernoCredit score; picks the credit tier.
aprquerynumbernoAPR in percent. Default: the market estimate for the credit tier.
conditionquerynew or usednoWhich rate table to read. Default: the listing's condition.

Example request

curl "https://api.motorsdynamic.com/api/v2/payments/1HGCM82633A004352" \
  -H "x-api-key: $MD_API_KEY"

Response fields

FieldTypeDescription
metaobject
dataobject
data.vinstring
data.vehicleobject
data.vehicle.yearinteger or null
data.vehicle.makestring or null
data.vehicle.modelstring or null
data.vehicle.trimstring or null
data.zipstring or null
data.statestring or null
data.priceobject
data.price.amountnumber
data.price.currencystring
data.price.sourcequery or dealer_advertised
data.loanobject
data.loan.monthly_paymentnumber
data.loan.amount_financednumber
data.loan.total_interestnumber
data.loan.total_of_paymentsnumber
data.loan.estimatetrue
data.loan.termsobject
data.taxes_and_feesobject or null
data.leaseobject or null
data.lease_unavailable_reasonno_manufacturer_lease_offer or no_money_factor_published or msrp_unknown or offer_terms_do_not_fit or null
data.disclosurestring

Errors

StatusCodeWhen
400invalid_parameterA parameter is missing or malformed. The message names it.
401invalid_api_keyThe key is missing, revoked or mistyped.
402plan_requiredThe endpoint is on a higher plan. The body names the plan and links to the upgrade.
403not_entitledThe key may not read this dealer or source.
404not_foundNothing matches the identifier in the path.
429rate_limited or quota_exceededSlow down (see Retry-After), or the Free monthly calls are used up.
503errorSee the message.
504query_timeoutThe query passed its 4 second budget. Narrow the filters. Not billed.

Every error has the same body. Full list: errors.