From 79dbbe14ff6c58f7f338c585977ac82e80775c3c Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Mon, 17 Mar 2025 13:37:45 +0100 Subject: [PATCH] OVPAY-1564 - Added token information to POST orders. --- src/openapi/orders/service_engine_orders.yaml | 46 ++++++++++++++++++- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/src/openapi/orders/service_engine_orders.yaml b/src/openapi/orders/service_engine_orders.yaml index 4565ca9..bffeb33 100644 --- a/src/openapi/orders/service_engine_orders.yaml +++ b/src/openapi/orders/service_engine_orders.yaml @@ -975,7 +975,11 @@ paths: tags: - Order Creation v2.0 summary: Create a new order v2.0. - description: Create a new order v2.0. + description: | + Create a new order v2.0. This order can only contain the order itself, + one ore more order lines and optionally a customer token per order line. + All orders created via this endpoint are created with the status "concept". + Order lines are created with status "pending". requestBody: content: application/json: @@ -999,7 +1003,24 @@ paths: "quantity": 1, "validFrom": "2024-03-22T09:00:00", "validUntil": null, - "orderLineStatusId": 1, + "customerTokens": + [ + { + "tokenTypeId": 1, + "ovPayTokenId": 1, + "serviceReferenceId": "NLOV1234567ABCDEFG", + "amount": 34, + "ovpasNumber": "OV34567", + "verificationCode": "A7H6", + "personalAccountData": + { + "name": "John Doe", + "dateOfBirth": "1980-01-01", + "gender": "male", + "countryOfResidence": "NL", + }, + }, + ], }, ], } @@ -1310,6 +1331,27 @@ paths: "validUntil": null, "orderLineStatus": { "orderLineStatusId": 1, "name": "pending" }, + "customerTokens": + [ + { + "customerTokenId": "878ad7c1-cd8f-4bcf-a983-1bd8c6e6975e", + "tokenType": + { "tokenTypeId": 1, "name": "EMV" }, + "ovPayTokenId": 1, + "serviceReferenceId": "NLOV1234567ABCDEFG", + "amount": 34, + "ovpasNumber": "OV34567", + "verificationCode": "A7H6", + "personalAccountData": + { + "personalAccountDataId": "47db8a40-3238-4bf5-9284-759e3888bd47", + "name": "John Doe", + "dateOfBirth": "1980-01-01", + "gender": "male", + "countryOfResidence": "NL", + }, + }, + ], }, ], },