Get Car Payment Processors
GET
/api/v1/cars/{id}/payment_processors.json
const url = 'https://dashboard.dealerstudio.com.au/api/v1/cars/example/payment_processors.json';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.dealerstudio.com.au/api/v1/cars/example/payment_processors.json \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Car ID/Slug/Custom_slug
Query Parameters
Section titled “Query Parameters ” website
string
Optional Website ID/Slug to scope the response to that website’s payment processor
Responses
Section titled “ Responses ”Retrieves payment processors for a car
Media type application/json
Examples
Example success
{ "payment_processors": [ { "id": 1, "authorization_type": "st_george", "authorization_key": "abc-123", "supports_all_types": true, "merchant_id": "merchant_123", "types": [ "checkout" ], "deposit_amount": 500, "apple_pay_enabled": true, "google_pay_enabled": false, "google_merchant_id": "google_merchant_123" } ]}Invalid API key
If car does not exist