OVPAY-1564 - Changes in POST /orders.
This commit is contained in:
parent
387bf909ad
commit
383ea04bcc
@ -697,20 +697,21 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Startdate of this product should be at most 60 days in the future.",
|
||||
"pointer": "#/0/startDate",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 2
|
||||
"productId": 2,
|
||||
},
|
||||
{
|
||||
"detail": "Combination of product and token type is not valid.",
|
||||
"pointer": "#/1/ovPayTokenId",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
/customers/{customerProfileId}/orders:
|
||||
parameters:
|
||||
@ -990,7 +991,6 @@ paths:
|
||||
"languageId": 1,
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
"orderStatusId": 1,
|
||||
"orderLines":
|
||||
[
|
||||
{
|
||||
@ -1000,78 +1000,8 @@ paths:
|
||||
"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": "Jan de Vries",
|
||||
"dateOfBirth": "01-01-1970",
|
||||
"photoReference": "DSC_0502.JPG",
|
||||
"fileType": "image/jpg",
|
||||
"challengeTypeId": 1,
|
||||
"oneTimePassword": "H5Iiz3JTaQeIV8p",
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"payments":
|
||||
[
|
||||
{
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"amountDebit": 121,
|
||||
"paymentMethodId": 1,
|
||||
"isRefund": false,
|
||||
"htmPaymentReference": "HTM-1234",
|
||||
"pspPaymentReference": "Buckaroo-1234",
|
||||
"paymentStatuses":
|
||||
[
|
||||
{
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"statusCode": "190",
|
||||
"statusDescription": "Success",
|
||||
"statusSubCode": "S001",
|
||||
"statusSubDescription": "PaymentSuccessFul",
|
||||
},
|
||||
],
|
||||
"mandateInput":
|
||||
{
|
||||
"directDebitMandateTypeId": 1,
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"bic": "RABONL2U",
|
||||
"iban": "NL44RABO0123456789",
|
||||
"ascription": "J. de Vries",
|
||||
"place": "Den Haag",
|
||||
},
|
||||
},
|
||||
],
|
||||
"orderCustomer":
|
||||
{
|
||||
"birthname": "Jan",
|
||||
"surname": "Vries",
|
||||
"prefix": "de",
|
||||
"emailAddress": "jandevries@outlook.com",
|
||||
"dateOfBirth": "1970-01-01",
|
||||
"orderCustomerAddresses":
|
||||
[
|
||||
{
|
||||
"addressTypeId": 1,
|
||||
"street": "Kon. Julianaplein",
|
||||
"houseNumber": 10,
|
||||
"houseNumberSuffix": "a",
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
v1.2:
|
||||
summary: Order creation v1.2
|
||||
@ -1320,6 +1250,8 @@ paths:
|
||||
examples:
|
||||
v2.0:
|
||||
value:
|
||||
{
|
||||
"order":
|
||||
{
|
||||
"orderId": "1e441d7d-50d6-4006-aca7-5e87e2f218df",
|
||||
"externalOrderId": null,
|
||||
@ -1348,10 +1280,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -1377,79 +1310,17 @@ paths:
|
||||
"validUntil": null,
|
||||
"orderLineStatus":
|
||||
{ "orderLineStatusId": 1, "name": "pending" },
|
||||
"tokens":
|
||||
[
|
||||
{
|
||||
"tokenTypeId": 1,
|
||||
"ovPayTokenId": 1,
|
||||
"serviceReferenceId": "NLOV1234567ABCDEFG",
|
||||
"amount": 34,
|
||||
"ovpasNumber": "OV34567",
|
||||
"verificationCode": "A7H6",
|
||||
"personalAccountData":
|
||||
{
|
||||
"name": "Jan de Vries",
|
||||
"dateOfBirth": "01-01-1970",
|
||||
"photoReference": "DSC_0502.JPG",
|
||||
"fileType": "image/jpg",
|
||||
"challengeTypeId": 1,
|
||||
"oneTimePassword": "H5Iiz3JTaQeIV8p",
|
||||
}
|
||||
},
|
||||
],
|
||||
"additionalRemarks" : []
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
[
|
||||
"orderValidation":
|
||||
{
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"amountDebit": 121,
|
||||
"paymentMethodId": 1,
|
||||
"touchPointId": 1,
|
||||
"isRefund": false,
|
||||
"htmPaymentReference": "HTM-1234",
|
||||
"pspPaymentReference": "Buckaroo-1234",
|
||||
"paymentStatuses":
|
||||
[
|
||||
{
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"statusCode": "190",
|
||||
"statusDescription": "Success",
|
||||
"statusSubCode": "S001",
|
||||
"statusSubDescription": "PaymentSuccessFul",
|
||||
"validationResult": true,
|
||||
"additionalRemarks":
|
||||
[{ "code": "string", "parameter": "string" }],
|
||||
"validationErrors":
|
||||
[{ "detail": "string", "pointer": "string" }],
|
||||
},
|
||||
],
|
||||
"payPush":
|
||||
{
|
||||
"consumerIssuer": "ABN AMRO",
|
||||
"transactionId": "0000000000000001",
|
||||
"consumerName": "J. de Vries",
|
||||
"consumerIBAN": "NL44RABO0123456789",
|
||||
"consumerBIC": "RABONL2U",
|
||||
},
|
||||
},
|
||||
],
|
||||
"customer":
|
||||
{
|
||||
"birthname": "Jan",
|
||||
"surname": "Vries",
|
||||
"prefix": "de",
|
||||
"emailAddress": "jandevries@outlook.com",
|
||||
"dateOfBirth": "1970-01-01",
|
||||
"addresses":
|
||||
[
|
||||
{
|
||||
"addressTypeId": 1,
|
||||
"street": "Kon. Julianaplein",
|
||||
"houseNumber": 10,
|
||||
"houseNumberSuffix": "a",
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
@ -1469,20 +1340,21 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Startdate of this product should be at most 60 days in the future.",
|
||||
"pointer": "#/0/startDate",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 2
|
||||
"productId": 2,
|
||||
},
|
||||
{
|
||||
"detail": "Combination of product and token type is not valid.",
|
||||
"pointer": "#/1/ovPayTokenId",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
/orders/{orderId}:
|
||||
parameters:
|
||||
@ -1704,7 +1576,8 @@ paths:
|
||||
v2.0:
|
||||
summary: Order update v2.0
|
||||
description: Order update v2.0
|
||||
value: {
|
||||
value:
|
||||
{
|
||||
"languageId": 1,
|
||||
"billingAddressId": 2,
|
||||
"shippingAddressId": 1,
|
||||
@ -1713,7 +1586,8 @@ paths:
|
||||
v1.2:
|
||||
summary: Order update v1.2
|
||||
description: Order update v1.2
|
||||
value: {
|
||||
value:
|
||||
{
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"languageId": 1,
|
||||
@ -1737,11 +1611,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -1758,10 +1633,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -1811,9 +1687,9 @@ paths:
|
||||
[
|
||||
{
|
||||
"code": "MANDATE_REQUIRED",
|
||||
"parameter": "directDebitMandateId"
|
||||
}
|
||||
]
|
||||
"parameter": "directDebitMandateId",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
@ -1863,9 +1739,9 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
@ -1885,20 +1761,21 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Startdate of this product should be at most 60 days in the future.",
|
||||
"pointer": "#/0/startDate",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 2
|
||||
"productId": 2,
|
||||
},
|
||||
{
|
||||
"detail": "Combination of product and token type is not valid.",
|
||||
"pointer": "#/1/ovPayTokenId",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
delete:
|
||||
tags:
|
||||
@ -1920,13 +1797,14 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The order can not be deleted.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Order status is paid",
|
||||
"pointer": "#/order_OrderStatus/1/orderStatus/orderStatusId",
|
||||
"orderStatusId": 4
|
||||
}
|
||||
]
|
||||
"orderStatusId": 4,
|
||||
},
|
||||
],
|
||||
}
|
||||
/orders/{orderId}/orderlines:
|
||||
parameters:
|
||||
@ -1977,9 +1855,9 @@ paths:
|
||||
"amount": null,
|
||||
"ovpasNumber": null,
|
||||
"verificationCode": null,
|
||||
"personalAccountData": null
|
||||
"personalAccountData": null,
|
||||
},
|
||||
]
|
||||
],
|
||||
}
|
||||
v1.2:
|
||||
summary: Create orderLine v1.2
|
||||
@ -2047,11 +1925,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -2068,10 +1947,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -2121,9 +2001,9 @@ paths:
|
||||
[
|
||||
{
|
||||
"code": "MANDATE_REQUIRED",
|
||||
"parameter": "directDebitMandateId"
|
||||
}
|
||||
]
|
||||
"parameter": "directDebitMandateId",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"orderLineId": "2cb04b38-e9a8-465a-a273-261c55a21b71",
|
||||
@ -2156,11 +2036,11 @@ paths:
|
||||
"amount": null,
|
||||
"ovpasNumber": null,
|
||||
"verificationCode": null,
|
||||
"personalAccountData": null
|
||||
}
|
||||
"personalAccountData": null,
|
||||
},
|
||||
],
|
||||
"additionalRemarks" : []
|
||||
}
|
||||
"additionalRemarks": [],
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
[
|
||||
@ -2209,12 +2089,13 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value: { "orderLineId": "e78b78d9-4fb0-4a9c-8dc0-6d100c9f1b3f" }
|
||||
value:
|
||||
{ "orderLineId": "e78b78d9-4fb0-4a9c-8dc0-6d100c9f1b3f" }
|
||||
"400":
|
||||
description: Bad request
|
||||
content:
|
||||
@ -2227,20 +2108,21 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Startdate of this product should be at most 60 days in the future.",
|
||||
"pointer": "#/0/startDate",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 2
|
||||
"productId": 2,
|
||||
},
|
||||
{
|
||||
"detail": "Combination of product and token type is not valid.",
|
||||
"pointer": "#/1/ovPayTokenId",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
/orderlines/{orderLineId}:
|
||||
parameters:
|
||||
@ -2277,7 +2159,7 @@ paths:
|
||||
{
|
||||
"quantity": 1,
|
||||
"validFrom": "2024-03-25T09:00:00",
|
||||
"validUntil": null
|
||||
"validUntil": null,
|
||||
}
|
||||
v1.2:
|
||||
summary: Orderline updatev1.2
|
||||
@ -2309,11 +2191,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -2330,10 +2213,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -2376,16 +2260,16 @@ paths:
|
||||
"fileType": "image/jpg",
|
||||
"challengeTypeId": 1,
|
||||
"oneTimePassword": "H5Iiz3JTaQeIV8p",
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
"additionalRemarks":
|
||||
[
|
||||
{
|
||||
"code": "MANDATE_REQUIRED",
|
||||
"parameter": "directDebitMandateId"
|
||||
}
|
||||
]
|
||||
"parameter": "directDebitMandateId",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
@ -2435,9 +2319,9 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
@ -2454,14 +2338,15 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The start date of the product is not allowed. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Startdate of this product should be at most 60 days in the future.",
|
||||
"pointer": "#/0/startDate",
|
||||
"ovPayTokenId": 123,
|
||||
"productId": 2
|
||||
}
|
||||
]
|
||||
"productId": 2,
|
||||
},
|
||||
],
|
||||
}
|
||||
delete:
|
||||
tags:
|
||||
@ -2484,11 +2369,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 0,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -2505,10 +2391,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines": null,
|
||||
"payments": null,
|
||||
@ -2529,9 +2416,9 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
"400":
|
||||
description: Bad request
|
||||
@ -2545,14 +2432,15 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Product requires product with productId=2",
|
||||
"pointer": "#/1/orderLine",
|
||||
"orderLineId": "0574440e-7fa0-401f-b907-539c91633a5d",
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
/orders/{orderId}/payments:
|
||||
parameters:
|
||||
@ -2661,11 +2549,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -2682,10 +2571,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -2763,10 +2653,10 @@ paths:
|
||||
"amount": null,
|
||||
"ovpasNumber": null,
|
||||
"verificationCode": null,
|
||||
"personalAccountData": null
|
||||
}
|
||||
]
|
||||
}
|
||||
"personalAccountData": null,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
[
|
||||
@ -2815,13 +2705,12 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
{ "paymentId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
value: { "paymentId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
/payments/{paymentId}:
|
||||
parameters:
|
||||
- in: path
|
||||
@ -2875,7 +2764,7 @@ paths:
|
||||
"iban": "NL44RABO0123456789",
|
||||
"ascription": "J. de Vries",
|
||||
"place": "Den Haag",
|
||||
}
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
summary: Order payment update v1.2
|
||||
@ -2901,11 +2790,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -2916,10 +2806,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -2965,7 +2856,7 @@ paths:
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
],
|
||||
"payments":
|
||||
[
|
||||
@ -3021,13 +2912,12 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
{ "paymentId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
value: { "paymentId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
/orders/{orderId}/ordercustomers:
|
||||
parameters:
|
||||
- in: path
|
||||
@ -3118,11 +3008,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -3139,10 +3030,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -3188,7 +3080,7 @@ paths:
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
],
|
||||
"payments": null,
|
||||
"customer":
|
||||
@ -3208,13 +3100,15 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
{ "orderCustomerId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
{
|
||||
"orderCustomerId": "94270188-4cf6-447e-bd49-e8186bcec073",
|
||||
}
|
||||
/ordercustomers/{orderCustomerId}:
|
||||
patch:
|
||||
parameters:
|
||||
@ -3281,11 +3175,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -3302,10 +3197,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -3351,8 +3247,8 @@ paths:
|
||||
},
|
||||
},
|
||||
],
|
||||
"additionalRemarks" : []
|
||||
}
|
||||
"additionalRemarks": [],
|
||||
},
|
||||
],
|
||||
"payments": null,
|
||||
"customer":
|
||||
@ -3372,13 +3268,15 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
v1.2:
|
||||
value:
|
||||
{ "orderCustomerId": "94270188-4cf6-447e-bd49-e8186bcec073" }
|
||||
{
|
||||
"orderCustomerId": "94270188-4cf6-447e-bd49-e8186bcec073",
|
||||
}
|
||||
/ordercustomers/{orderCustomerId}/orderCustomerAddress:
|
||||
post:
|
||||
parameters:
|
||||
@ -3436,11 +3334,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 2,
|
||||
"shippingAddressId": 1,
|
||||
@ -3457,10 +3356,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -3510,10 +3410,10 @@ paths:
|
||||
[
|
||||
{
|
||||
"code": "MANDATE_REQUIRED",
|
||||
"parameter": "directDebitMandateId"
|
||||
}
|
||||
]
|
||||
}
|
||||
"parameter": "directDebitMandateId",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"payments": null,
|
||||
"customer":
|
||||
@ -3533,9 +3433,9 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
/orderCustomerAddress/{orderCustomerAddressId}:
|
||||
patch:
|
||||
@ -3594,11 +3494,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 121,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -3615,10 +3516,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines":
|
||||
[
|
||||
@ -3668,10 +3570,10 @@ paths:
|
||||
[
|
||||
{
|
||||
"code": "MANDATE_REQUIRED",
|
||||
"parameter": "directDebitMandateId"
|
||||
}
|
||||
]
|
||||
}
|
||||
"parameter": "directDebitMandateId",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"payments": null,
|
||||
"customer":
|
||||
@ -3691,9 +3593,9 @@ paths:
|
||||
"postalCode": "2595 AA",
|
||||
"city": "Den Haag",
|
||||
"country": "NL",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
delete:
|
||||
tags:
|
||||
@ -3732,11 +3634,12 @@ paths:
|
||||
"orderNumber": "ORD-123456",
|
||||
"customerProfileId": 1337,
|
||||
"totalAmount": 0,
|
||||
"language": {
|
||||
"language":
|
||||
{
|
||||
"languageId": 1,
|
||||
"name": "Nederlands",
|
||||
"iso639Code": "nl-NL",
|
||||
"ietfCode": "nl"
|
||||
"ietfCode": "nl",
|
||||
},
|
||||
"billingAddressId": 1,
|
||||
"shippingAddressId": 1,
|
||||
@ -3753,10 +3656,11 @@ paths:
|
||||
[
|
||||
{
|
||||
"order_orderStatusId": "f1d0e1a7-a3cf-4876-b8f2-073add10667f",
|
||||
"orderStatus": { "orderStatusId": 1, "name": "concept" },
|
||||
"orderStatus":
|
||||
{ "orderStatusId": 1, "name": "concept" },
|
||||
"createdOn": "2024-03-22T09:00:00",
|
||||
"description": "Order is aangemaakt",
|
||||
}
|
||||
},
|
||||
],
|
||||
"orderLines": null,
|
||||
"payments": null,
|
||||
@ -3767,8 +3671,8 @@ paths:
|
||||
"prefix": "de",
|
||||
"emailAddress": "jandevries@outlook.com",
|
||||
"dateOfBirth": "1970-01-01",
|
||||
"addresses": null
|
||||
}
|
||||
"addresses": null,
|
||||
},
|
||||
}
|
||||
"400":
|
||||
description: Bad request
|
||||
@ -3782,14 +3686,15 @@ paths:
|
||||
"title": "Your request is not valid.",
|
||||
"detail": "The combination of tokens and/or products chosen is not valid. See errors for more details.",
|
||||
"instance": "urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b",
|
||||
"errors": [
|
||||
"errors":
|
||||
[
|
||||
{
|
||||
"detail": "Product requires product with productId=2",
|
||||
"pointer": "#/1/orderLine",
|
||||
"orderLineId": "0574440e-7fa0-401f-b907-539c91633a5d",
|
||||
"productId": 3
|
||||
}
|
||||
]
|
||||
"productId": 3,
|
||||
},
|
||||
],
|
||||
}
|
||||
/orders/{orderId}/fulfill:
|
||||
parameters:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user