From 00f091a4c2bbcd51d3f452ba214b80ad213b750f Mon Sep 17 00:00:00 2001 From: yoeriwalstra Date: Mon, 2 Dec 2024 12:26:12 +0100 Subject: [PATCH] use Error schema --- specification/paths/ServiceRates.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/specification/paths/ServiceRates.json b/specification/paths/ServiceRates.json index 2860260..fba5861 100644 --- a/specification/paths/ServiceRates.json +++ b/specification/paths/ServiceRates.json @@ -89,6 +89,27 @@ } } } + }, + "404": { + "description": "Rating is temporarily unavailable for one or more services, or the destination country is not serviced.", + "content": { + "application/vnd.api+json": { + "schema": { + "type": "object", + "required": [ + "errors" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } } } }