From 2726ddb332dbe210ea2050395e43a9183048836a Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Wed, 26 Mar 2025 11:45:55 +0100 Subject: [PATCH] updated tax fields in orders --- src/openapi/orders/orders-crud.yaml | 57 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/src/openapi/orders/orders-crud.yaml b/src/openapi/orders/orders-crud.yaml index 1f4c370..5855893 100644 --- a/src/openapi/orders/orders-crud.yaml +++ b/src/openapi/orders/orders-crud.yaml @@ -4,7 +4,8 @@ info: version: "1.0" description: CRUD APIs for ABT Orders database. These are NOT the functional APIs from Service Engine. servers: - - url: https://api.integratielaag.nl/v1 + - url: https://api.integratielaag.nl/v1 + - url: https://api.integratielaag.nl/v2 paths: /orders: get: @@ -12,6 +13,8 @@ paths: - Order summary: P1. Find orders. description: Find orders. + servers: + - url: https://api.integratielaag.nl/v1 parameters: - in: query name: externalOrderId @@ -169,13 +172,8 @@ paths: "productCode": "HTM-MND-20", "productDescription": "HTM Maandkorting 20%", "taxAmount": 21, - "taxMetadata": - { - "taxMetadataId": "06270769-a263-4325-82d6-f49396f39d03", - "taxCode": "V21", - "taxPercentageAmount": 21, - "description": "21% BTW", - }, + "taxCode": "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, @@ -347,7 +345,8 @@ paths: "productCode": "HTM-MND-20", "productDescription": "HTM Maandkorting 20%", "taxAmount": 21, - "taxMetadataId": "7275b910-37d9-40c1-aaac-80d8ceb62ff9", + "taxCode: "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, @@ -518,13 +517,8 @@ paths: "productCode": "HTM-MND-20", "productDescription": "HTM Maandkorting 20%", "taxAmount": 21, - "taxMetadata": - { - "taxMetadataId": "06270769-a263-4325-82d6-f49396f39d03", - "taxCode": "V21", - "taxPercentageAmount": 21, - "description": "21% BTW", - }, + "taxCode": "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, @@ -744,7 +738,8 @@ paths: "productCode": "HTM-MND-20", "productDescription": "HTM Maandkorting 20%", "taxAmount": 21, - "taxMetadataId": "1d6f1725-1072-4f08-982c-3df51dd854a1", + "taxCode": "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, @@ -949,13 +944,21 @@ paths: required: false description: The amount of tax calculated. - in: query - name: taxMetadataId + name: taxCode schema: type: string format: uuid - example: 3435119f-6a99-4f90-967b-25086b9a8bac + example: "V21" required: false - description: The technical id of the tax code. + description: The tax code. + - in: query + name: taxPercentage + schema: + type: string + format: uuid + example: 21 + required: false + description: The tax percentage. - in: query name: amountExclTax schema: @@ -1068,13 +1071,8 @@ paths: "productCode": "HTM-MND-20", "productDescription": "HTM Maandkorting 20%", "taxAmount": 21, - "taxMetadata": - { - "taxMetadataId": "06270769-a263-4325-82d6-f49396f39d03", - "taxCode": "V21", - "taxPercentageAmount": 21, - "description": "21% BTW", - }, + "taxCode": "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, @@ -1150,13 +1148,14 @@ paths: example: { "taxAmount": 21, - "taxMetadataId": "0574440e-7fa0-401f-b907-539c91633a5d", + "taxCode": "V21", + "taxPercentage": 21, "amountExclTax": 100, "amountInclTax": 121, "quantity": 1, "validFrom": "2024-03-22T09:00:00", "validUntil": "2025-03-22T09:00:00", - "orderLineStatusId": 4, + "orderLineStatusId": 1, } responses: "200":