OVPAY-1433 - Added order fulfillment and order creation v2.2.
This commit is contained in:
parent
023bcf8aa5
commit
093b826f2b
@ -469,6 +469,101 @@ paths:
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
v2.2:
|
||||||
|
summary: Order fulfillment v2.2
|
||||||
|
description: Order fulfillment v2.2
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"orderId": "a0ef57fa-395c-4a03-96e9-234c26dccea9",
|
||||||
|
"customerProfileId": 1337,
|
||||||
|
"languageId": 1,
|
||||||
|
"billingAddressId": 1,
|
||||||
|
"shippingAddressId": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"orderStatusId": 4,
|
||||||
|
"orderLines":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"orderLineId": "2ba39cae-c401-446b-ae5c-2d6d85b3df1f",
|
||||||
|
"productId": 1,
|
||||||
|
"quantity": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"validFrom": "2024-03-22T09:00:00",
|
||||||
|
"validUntil": null,
|
||||||
|
"orderLineStatusId": 4,
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"payments":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
description: Created
|
description: Created
|
||||||
@ -858,131 +953,247 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/unavailable"
|
$ref: "#/components/schemas/unavailable"
|
||||||
example:
|
examples:
|
||||||
{
|
v2:
|
||||||
"externalOrderId": null,
|
summary: Order creation v2.1
|
||||||
"customerProfileId": 1337,
|
description: Order creation v2.1
|
||||||
"totalAmount": 121,
|
value:
|
||||||
"touchPoint":
|
|
||||||
{
|
{
|
||||||
"salesTouchpointId": 3,
|
"externalOrderId": null,
|
||||||
"name": "Website (Perplex)",
|
"customerProfileId": 1337,
|
||||||
"isActive": true,
|
"totalAmount": 121,
|
||||||
"retailerId": 1001,
|
"touchPoint":
|
||||||
},
|
{
|
||||||
"languageId": 1,
|
"salesTouchpointId": 3,
|
||||||
"billingAddressId": 1,
|
"name": "Website (Perplex)",
|
||||||
"shippingAddressId": 1,
|
"isActive": true,
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
"retailerId": 1001,
|
||||||
"order_OrderStatus":
|
},
|
||||||
[
|
"languageId": 1,
|
||||||
{
|
"billingAddressId": 1,
|
||||||
"orderStatusId": 1,
|
"shippingAddressId": 1,
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
"description": "Concept order",
|
"order_OrderStatus":
|
||||||
},
|
|
||||||
],
|
|
||||||
"orderLines":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"externalOrderLineId": null,
|
|
||||||
"productId": 1,
|
|
||||||
"productName": "HTM Maandkorting 20%",
|
|
||||||
"productCode": "HTM-MND-20",
|
|
||||||
"productDescription": "HTM Maandkorting 20%",
|
|
||||||
"taxAmount": 21,
|
|
||||||
"taxMetadataId": "7275b910-37d9-40c1-aaac-80d8ceb62ff9",
|
|
||||||
"amountExclTax": 100,
|
|
||||||
"amountInclTax": 121,
|
|
||||||
"quantity": 1,
|
|
||||||
"orderLineTerms":
|
|
||||||
[{ "termsUrl": "generalTermsAndConditions.pdf" }],
|
|
||||||
"validFrom": "2024-03-22T09:00:00",
|
|
||||||
"validUntil": "2025-03-22T09:00:00",
|
|
||||||
"orderLineStatusId": 4,
|
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
|
||||||
"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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"orderAccountingStatuses":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"accountingStatusId": 1,
|
|
||||||
"createdOn": "2024-03-22T09:00:00",
|
|
||||||
"description": "Financiele transactie voor de FIKO.",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"payments":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"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",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"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,
|
"orderStatusId": 1,
|
||||||
"street": "Kon. Julianaplein",
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
"houseNumber": 10,
|
"description": "Concept order",
|
||||||
"houseNumberSuffix": "a",
|
|
||||||
"postalCode": "2595 AA",
|
|
||||||
"city": "Den Haag",
|
|
||||||
"country": "NL",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
"orderLines":
|
||||||
}
|
[
|
||||||
|
{
|
||||||
|
"externalOrderLineId": null,
|
||||||
|
"productId": 1,
|
||||||
|
"productName": "HTM Maandkorting 20%",
|
||||||
|
"productCode": "HTM-MND-20",
|
||||||
|
"productDescription": "HTM Maandkorting 20%",
|
||||||
|
"taxAmount": 21,
|
||||||
|
"taxMetadataId": "7275b910-37d9-40c1-aaac-80d8ceb62ff9",
|
||||||
|
"amountExclTax": 100,
|
||||||
|
"amountInclTax": 121,
|
||||||
|
"quantity": 1,
|
||||||
|
"orderLineTerms":
|
||||||
|
[{ "termsUrl": "generalTermsAndConditions.pdf" }],
|
||||||
|
"validFrom": "2024-03-22T09:00:00",
|
||||||
|
"validUntil": "2025-03-22T09:00:00",
|
||||||
|
"orderLineStatusId": 4,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"orderAccountingStatuses":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"accountingStatusId": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"description": "Financiele transactie voor de FIKO.",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"payments":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
v2.2:
|
||||||
|
summary: Order creation v2.2
|
||||||
|
description: Order creation v2.2
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"externalOrderId": null,
|
||||||
|
"customerProfileId": 1337,
|
||||||
|
"touchPointId": 3,
|
||||||
|
"languageId": 1,
|
||||||
|
"billingAddressId": 1,
|
||||||
|
"shippingAddressId": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"order_OrderStatus":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"orderStatusId": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"description": "Concept order",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"orderLines":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"externalOrderLineId": null,
|
||||||
|
"productId": 1,
|
||||||
|
"quantity": 1,
|
||||||
|
"validFrom": "2024-03-22T09:00:00",
|
||||||
|
"validUntil": "2025-03-22T09:00:00",
|
||||||
|
"orderLineStatusId": 4,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"orderAccountingStatuses":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"accountingStatusId": 1,
|
||||||
|
"createdOn": "2024-03-22T09:00:00",
|
||||||
|
"description": "Financiele transactie voor de FIKO.",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"payments":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
description: Created
|
description: Created
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user