{"openapi":"3.1.0","info":{"title":"AM-i APi","description":"","version":"1.0.8"},"tags":[{"name":"Remarketing"},{"name":"Pictures"},{"name":"Document delivery"}],"paths":{"/remarketing":{"post":{"summary":"Remarketing","deprecated":false,"description":"","tags":["Remarketing"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"licencePlates":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"tag","enum":["AUCTION","REALLOCATE"]}},"required":["licencePlates","status"]},"example":{"licensePlates":["T956PN"],"status":"AUCTION"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":[]}}},"headers":[]}},"security":[{"apikey-header-ami-api-key":[]}]}},"/vehicle-photos":{"post":{"summary":"Vehicle Photos","deprecated":false,"description":"","tags":["Pictures"],"parameters":[{"name":"Client-Id","in":"header","description":"","required":true,"example":"","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tenantId":{"type":"integer"},"licensePlate":{"type":"string"},"vehicleIdentificationNumber":{"type":"string"},"images":{"type":"array","items":{"type":"string"}}},"required":["tenantId","licensePlate","vehicleIdentificationNumber","images"]},"example":{"licensePlate":"T868HJ","vehicleIdentificationNumber":"WBA5A51070G176269","images":["https://placehold.co/600x400"]}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]},"examples":{"1":{"summary":"Success","value":{"success":true,"message":"Added to processing queue"}},"2":{"summary":"Success","value":{"success":false,"message":"Missing data"}}}}},"headers":[]},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]}}},"headers":[]}},"security":[{"apikey-header-ami-api-key":[]}]}},"/vehicle-documents":{"post":{"summary":"Vehicle document","deprecated":false,"description":"","tags":["Document delivery"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"licensePlate":{"type":"string"},"dealerCode":{"type":"string"},"pdfUrl":{"type":"string"},"type":{"type":"string","description":"Document type. IntakeConfirmation is supported for backwards compatibility and maps to Inspection-Report.","enum":["IntakeConfirmation","Alarm-Certificate","Appraisal-Report","Bpm-Declaration","Certificate-Of-Conformity","Certificate-Of-Indemnification","Company-Stock-Certificate","Confirmation-Of-Registration","Inspection-Report","Intake-Report-Cleaner","Maintenance-Records","Nap-Certificate","Other","Periodic-Inspection-Report","Proof-Of-Registration","Purchase-Invoice","Quotation-Damage-Recovery","Registration-Certificate","Technical-Inspection","Valuation-Report","Vehicle-Intake-Damage-Report","Warranty-Certificate","Window-Sticker","Workshop-Invoice","Vehicle-History-NL","Vehicle-History-FR","Vehicle-History-EN"]}},"required":["licensePlate","dealerCode","pdfUrl","type"]},"examples":{"IntakeConfirmation":{"summary":"Backwards compatible intake confirmation","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://app.flexibil.nl/IntakeConfirmationReports/View/ef7558af-fa49-4daa-9192-08e83a2460a8","type":"IntakeConfirmation"}},"Alarm-Certificate":{"summary":"Alarm-Certificate","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Alarm-Certificate"}},"Appraisal-Report":{"summary":"Appraisal-Report","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Appraisal-Report"}},"Bpm-Declaration":{"summary":"Bpm-Declaration","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Bpm-Declaration"}},"Certificate-Of-Conformity":{"summary":"Certificate-Of-Conformity","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Certificate-Of-Conformity"}},"Certificate-Of-Indemnification":{"summary":"Certificate-Of-Indemnification","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Certificate-Of-Indemnification"}},"Company-Stock-Certificate":{"summary":"Company-Stock-Certificate","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Company-Stock-Certificate"}},"Confirmation-Of-Registration":{"summary":"Confirmation-Of-Registration","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Confirmation-Of-Registration"}},"Inspection-Report":{"summary":"Inspection-Report","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Inspection-Report"}},"Intake-Report-Cleaner":{"summary":"Intake-Report-Cleaner","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Intake-Report-Cleaner"}},"Maintenance-Records":{"summary":"Maintenance-Records","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Maintenance-Records"}},"Nap-Certificate":{"summary":"Nap-Certificate","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Nap-Certificate"}},"Other":{"summary":"Other","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Other"}},"Periodic-Inspection-Report":{"summary":"Periodic-Inspection-Report","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Periodic-Inspection-Report"}},"Proof-Of-Registration":{"summary":"Proof-Of-Registration","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Proof-Of-Registration"}},"Purchase-Invoice":{"summary":"Purchase-Invoice","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Purchase-Invoice"}},"Quotation-Damage-Recovery":{"summary":"Quotation-Damage-Recovery","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Quotation-Damage-Recovery"}},"Registration-Certificate":{"summary":"Registration-Certificate","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Registration-Certificate"}},"Technical-Inspection":{"summary":"Technical-Inspection","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Technical-Inspection"}},"Valuation-Report":{"summary":"Valuation-Report","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Valuation-Report"}},"Vehicle-Intake-Damage-Report":{"summary":"Vehicle-Intake-Damage-Report","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Vehicle-Intake-Damage-Report"}},"Warranty-Certificate":{"summary":"Warranty-Certificate","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Warranty-Certificate"}},"Window-Sticker":{"summary":"Window-Sticker","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Window-Sticker"}},"Workshop-Invoice":{"summary":"Workshop-Invoice","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Workshop-Invoice"}},"Vehicle-History-NL":{"summary":"Vehicle-History-NL","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Vehicle-History-NL"}},"Vehicle-History-FR":{"summary":"Vehicle-History-FR","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Vehicle-History-FR"}},"Vehicle-History-EN":{"summary":"Vehicle-History-EN","value":{"licensePlate":"XX123Y","dealerCode":"200790","pdfUrl":"https://example.com/document.pdf","type":"Vehicle-History-EN"}}}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}},"required":["status","message"]},"examples":{"1":{"summary":"Success","value":{"status":"accepted","message":"Intake confirmation received and will be processed."}},"2":{"summary":"Success","value":{"status":"error","message":"Validation failed","errors":[{"field":"licensePlate","message":"This field is required."},{"field":"pdfUrl","message":"This field is required."}]}}}}},"headers":[]},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}},"required":["field","message"]}}},"required":["status","message","errors"]}}},"headers":[]}},"security":[{"apikey-header-ami-api-key":[]}]}}},"components":{"schemas":[],"securitySchemes":{"apikey-header-ami-api-key":{"type":"apiKey","in":"header","name":"ami-api-key"}}},"servers":[{"url":"https://main-api.ff.acc.am-i.nl","description":"Testing Env"},{"url":"https://main-api.am-i.nl","description":"Prod Env"}]}