diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index a22d028..9ccb7cd 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -3894,6 +3894,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error500: type: object required: @@ -3921,6 +3922,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error400: type: object required: @@ -3998,6 +4000,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error501: type: object required: @@ -4025,6 +4028,7 @@ components: details: type: object description: Additional error details + additionalProperties: true CustomerType: type: string enum: @@ -4339,6 +4343,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error404: type: object required: @@ -4378,6 +4383,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error: type: object properties: @@ -5716,6 +5722,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error424: type: object required: @@ -5747,6 +5754,7 @@ components: details: type: object description: Additional error details + additionalProperties: true QuoteAccountSource: type: object required: @@ -6070,6 +6078,32 @@ components: response_body: type: string description: The raw body content returned by the webhook endpoint in response to the request + GridError: + type: object + title: GridError + properties: + code: + type: string + description: Error code + message: + type: string + description: Error message + details: + type: object + description: Additional error details + additionalProperties: true + BulkCustomerImportErrorEntry: + allOf: + - $ref: '#/components/schemas/GridError' + - type: object + description: Error information for a failed bulk import entry + required: + - correlationId + properties: + correlationId: + type: string + description: Platform customer ID or row number for the failed entry + example: biz456 BulkCustomerImportJob: type: object required: @@ -6118,17 +6152,7 @@ components: type: array description: Detailed error information for failed entries items: - type: object - required: - - correlationId - - error - properties: - correlationId: - type: string - description: Platform customer ID or row number for the failed entry - example: biz456 - error: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/BulkCustomerImportErrorEntry' completedAt: type: string format: date-time @@ -6223,6 +6247,7 @@ components: details: type: object description: Additional error details + additionalProperties: true UmaProvider: type: object properties: @@ -6441,7 +6466,7 @@ components: description: Information about the recipient, provided by the platform if requested in the webhook via `requestedReceiverCustomerInfoFields` and the payment is approved. IncomingPaymentWebhookForbiddenResponse: allOf: - - $ref: '#/components/schemas/Error' + - $ref: '#/components/schemas/GridError' - type: object properties: reason: @@ -6450,7 +6475,7 @@ components: example: RESTRICTED_JURISDICTION IncomingPaymentWebhookUnprocessableResponse: allOf: - - $ref: '#/components/schemas/Error' + - $ref: '#/components/schemas/GridError' - type: object properties: requiredFields: diff --git a/openapi.yaml b/openapi.yaml index a22d028..9ccb7cd 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3894,6 +3894,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error500: type: object required: @@ -3921,6 +3922,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error400: type: object required: @@ -3998,6 +4000,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error501: type: object required: @@ -4025,6 +4028,7 @@ components: details: type: object description: Additional error details + additionalProperties: true CustomerType: type: string enum: @@ -4339,6 +4343,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error404: type: object required: @@ -4378,6 +4383,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error: type: object properties: @@ -5716,6 +5722,7 @@ components: details: type: object description: Additional error details + additionalProperties: true Error424: type: object required: @@ -5747,6 +5754,7 @@ components: details: type: object description: Additional error details + additionalProperties: true QuoteAccountSource: type: object required: @@ -6070,6 +6078,32 @@ components: response_body: type: string description: The raw body content returned by the webhook endpoint in response to the request + GridError: + type: object + title: GridError + properties: + code: + type: string + description: Error code + message: + type: string + description: Error message + details: + type: object + description: Additional error details + additionalProperties: true + BulkCustomerImportErrorEntry: + allOf: + - $ref: '#/components/schemas/GridError' + - type: object + description: Error information for a failed bulk import entry + required: + - correlationId + properties: + correlationId: + type: string + description: Platform customer ID or row number for the failed entry + example: biz456 BulkCustomerImportJob: type: object required: @@ -6118,17 +6152,7 @@ components: type: array description: Detailed error information for failed entries items: - type: object - required: - - correlationId - - error - properties: - correlationId: - type: string - description: Platform customer ID or row number for the failed entry - example: biz456 - error: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/BulkCustomerImportErrorEntry' completedAt: type: string format: date-time @@ -6223,6 +6247,7 @@ components: details: type: object description: Additional error details + additionalProperties: true UmaProvider: type: object properties: @@ -6441,7 +6466,7 @@ components: description: Information about the recipient, provided by the platform if requested in the webhook via `requestedReceiverCustomerInfoFields` and the payment is approved. IncomingPaymentWebhookForbiddenResponse: allOf: - - $ref: '#/components/schemas/Error' + - $ref: '#/components/schemas/GridError' - type: object properties: reason: @@ -6450,7 +6475,7 @@ components: example: RESTRICTED_JURISDICTION IncomingPaymentWebhookUnprocessableResponse: allOf: - - $ref: '#/components/schemas/Error' + - $ref: '#/components/schemas/GridError' - type: object properties: requiredFields: diff --git a/openapi/components/schemas/common/GridError.yaml b/openapi/components/schemas/common/GridError.yaml new file mode 100644 index 0000000..4f956b6 --- /dev/null +++ b/openapi/components/schemas/common/GridError.yaml @@ -0,0 +1,13 @@ +type: object +title: GridError +properties: + code: + type: string + description: Error code + message: + type: string + description: Error message + details: + type: object + description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/customers/BulkCustomerImportErrorEntry.yaml b/openapi/components/schemas/customers/BulkCustomerImportErrorEntry.yaml new file mode 100644 index 0000000..79bfb0b --- /dev/null +++ b/openapi/components/schemas/customers/BulkCustomerImportErrorEntry.yaml @@ -0,0 +1,11 @@ +allOf: + - $ref: ../common/GridError.yaml + - type: object + description: Error information for a failed bulk import entry + required: + - correlationId + properties: + correlationId: + type: string + description: Platform customer ID or row number for the failed entry + example: biz456 diff --git a/openapi/components/schemas/customers/BulkCustomerImportJob.yaml b/openapi/components/schemas/customers/BulkCustomerImportJob.yaml index a550d9c..1c74dc1 100644 --- a/openapi/components/schemas/customers/BulkCustomerImportJob.yaml +++ b/openapi/components/schemas/customers/BulkCustomerImportJob.yaml @@ -45,17 +45,7 @@ properties: type: array description: Detailed error information for failed entries items: - type: object - required: - - correlationId - - error - properties: - correlationId: - type: string - description: Platform customer ID or row number for the failed entry - example: biz456 - error: - $ref: ../common/Error.yaml + $ref: BulkCustomerImportErrorEntry.yaml completedAt: type: string format: date-time diff --git a/openapi/components/schemas/errors/Error400.yaml b/openapi/components/schemas/errors/Error400.yaml index 7a7e69c..25ea279 100644 --- a/openapi/components/schemas/errors/Error400.yaml +++ b/openapi/components/schemas/errors/Error400.yaml @@ -74,3 +74,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error401.yaml b/openapi/components/schemas/errors/Error401.yaml index dc367d8..04d653a 100644 --- a/openapi/components/schemas/errors/Error401.yaml +++ b/openapi/components/schemas/errors/Error401.yaml @@ -24,3 +24,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error403.yaml b/openapi/components/schemas/errors/Error403.yaml index 520dea4..e93a32b 100644 --- a/openapi/components/schemas/errors/Error403.yaml +++ b/openapi/components/schemas/errors/Error403.yaml @@ -28,3 +28,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error404.yaml b/openapi/components/schemas/errors/Error404.yaml index 055b9ca..4c53ac3 100644 --- a/openapi/components/schemas/errors/Error404.yaml +++ b/openapi/components/schemas/errors/Error404.yaml @@ -36,3 +36,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error409.yaml b/openapi/components/schemas/errors/Error409.yaml index a529e0f..4bcefbc 100644 --- a/openapi/components/schemas/errors/Error409.yaml +++ b/openapi/components/schemas/errors/Error409.yaml @@ -24,3 +24,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error412.yaml b/openapi/components/schemas/errors/Error412.yaml index 923d19d..4dd24c3 100644 --- a/openapi/components/schemas/errors/Error412.yaml +++ b/openapi/components/schemas/errors/Error412.yaml @@ -21,3 +21,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error424.yaml b/openapi/components/schemas/errors/Error424.yaml index 6d60cf3..e546848 100644 --- a/openapi/components/schemas/errors/Error424.yaml +++ b/openapi/components/schemas/errors/Error424.yaml @@ -28,3 +28,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error500.yaml b/openapi/components/schemas/errors/Error500.yaml index d077e25..0fd1023 100644 --- a/openapi/components/schemas/errors/Error500.yaml +++ b/openapi/components/schemas/errors/Error500.yaml @@ -24,3 +24,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/errors/Error501.yaml b/openapi/components/schemas/errors/Error501.yaml index 3c46735..c467f08 100644 --- a/openapi/components/schemas/errors/Error501.yaml +++ b/openapi/components/schemas/errors/Error501.yaml @@ -24,3 +24,4 @@ properties: details: type: object description: Additional error details + additionalProperties: true diff --git a/openapi/components/schemas/webhooks/IncomingPaymentWebhookForbiddenResponse.yaml b/openapi/components/schemas/webhooks/IncomingPaymentWebhookForbiddenResponse.yaml index 12c0b08..4d8b6c0 100644 --- a/openapi/components/schemas/webhooks/IncomingPaymentWebhookForbiddenResponse.yaml +++ b/openapi/components/schemas/webhooks/IncomingPaymentWebhookForbiddenResponse.yaml @@ -1,5 +1,5 @@ allOf: - - $ref: ../common/Error.yaml + - $ref: ../common/GridError.yaml - type: object properties: reason: diff --git a/openapi/components/schemas/webhooks/IncomingPaymentWebhookUnprocessableResponse.yaml b/openapi/components/schemas/webhooks/IncomingPaymentWebhookUnprocessableResponse.yaml index 83e0026..543ecce 100644 --- a/openapi/components/schemas/webhooks/IncomingPaymentWebhookUnprocessableResponse.yaml +++ b/openapi/components/schemas/webhooks/IncomingPaymentWebhookUnprocessableResponse.yaml @@ -1,5 +1,5 @@ allOf: - - $ref: ../common/Error.yaml + - $ref: ../common/GridError.yaml - type: object properties: requiredFields: