{"openapi":"3.0.3","info":{"title":"API - INT-0218 - Vendor Submit API","description":"The API is utilised to send data to Vendor APIs like Jetcharge","version":"1.0.0"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/Toyota-AU/API-INT-0218-VendorSubmitAPI/1.0.0"},{"url":"https://tmca-main-dev-broker-gateway.boomi.cloud:8077/ws/rest/dev","description":"Development environment"},{"url":"https://tmca-main-nonprod-broker-gateway.boomi.cloud:8077/ws/rest/uat","description":"UAT environment"},{"url":"https://tmca-main-prod-broker-gateway.boomi.cloud:8077/ws/rest/prod","description":"Production environment"}],"security":[{"basicAuth":[],"apiKeyAuth":[]}],"paths":{"/v1/vendorsubmit/target/jetcharge":{"post":{"tags":["JetCharge"],"summary":"WSS - INT-0218a - Vendor Submit.JetCharge - POST","description":"This Endpoint is used to send customer details to JetCharge webhook.","parameters":[{"name":"uuid","in":"query","required":true,"description":"Unique request UUID for idempotency and tracing","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRequest"},"example":{"customerFirstName":"John","customerLastName":"Smith","customerEmail":"john.smith@email.com","customerMobile":"0400000000","customerStreetNumber":"10","customerStreetName":"Main Street","customerSuburb":"Melbourne","customerState":"VIC","customerPostcode":"3000","customerVehicleModel":"bZ4X","customerVIN":"JTDBR32E720123456","toyotaEmail":"dealer@toyota.com"}}}},"responses":{"200":{"description":"Customer details successfully sent to JetCharge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponse"},"example":[{"status":"ERROR","errorDeatils":{"errorCode":"TMCA.API.0218a.E01 - INTERNAL SERVER ERROR","message":"Error Message"}}]}}},"4XX":{"description":"JetCharge webhook error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JetChargeErrorResponse"},"example":[{"status":"ERROR","errorDetails":{"errorCode":"TMCA.API.0218a.E02 - JETCHARGE ERROR","message":"Error Message"}}]}}},"5XX":{"description":"JetCharge webhook error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JetChargeErrorResponse"},"example":[{"status":"ERROR","errorDetails":{"errorCode":"TMCA.API.0218a.E02 - JETCHARGE ERROR","message":"Error Message"}}]}}}}}}},"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Basic Authentication using username and password"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key required in request header"}},"schemas":{"CustomerRequest":{"type":"object","properties":{"customerFirstName":{"type":"string"},"customerLastName":{"type":"string"},"customerEmail":{"type":"string","format":"email"},"customerMobile":{"type":"string"},"customerStreetNumber":{"type":"string"},"customerStreetName":{"type":"string"},"customerSuburb":{"type":"string"},"customerState":{"type":"string"},"customerPostcode":{"type":"string"},"customerVehicleModel":{"type":"string"},"customerVIN":{"type":"string"},"toyotaEmail":{"type":"string","format":"email"}}},"SuccessResponse":{"type":"object","required":["attempt","id","request_id","status"],"properties":{"attempt":{"type":"string","format":"uuid"},"id":{"type":"string","format":"uuid"},"request_id":{"type":"string","format":"uuid"},"status":{"type":"string","example":"success"}}},"InternalServerErrorResponse":{"type":"array","items":{"type":"object","required":["status","errorDeatils"],"properties":{"status":{"type":"string","example":"ERROR"},"errorDeatils":{"type":"object","properties":{"errorCode":{"type":"string","example":"TMCA.API.0218a.E01 - INTERNAL SERVER ERROR"},"message":{"type":"string","example":"Error Message"}}}}}},"JetChargeErrorResponse":{"type":"array","items":{"type":"object","required":["status","errorDetails"],"properties":{"status":{"type":"string","example":"ERROR"},"errorDetails":{"type":"object","properties":{"errorCode":{"type":"string","example":"TMCA.API.0218a.E02 - JETCHARGE ERROR"},"message":{"type":"string","example":"Error Message"}}}}}}}}}