Phone: +46 739 444 438 |
Email: peter.wilmenius@riverty.com |
With this update, we are transitioning from the previous payload structure to a new format for the Customer Lookup endpoint. We are adding 2 new fields - CustomerNumber and IndividualRiskScore. CustomerNumber can be used to send us a custom customer number from the merchants side. Risk score is used to steer risk for different types of customer.
{
"customerNumber": "TestCustomer67860",
"individualRiskScore": 0,
"lookup": {
"type": "PhoneNumber",
"value": "{{ssn}}"
}
}
{
"lookupField": "IdentificationNumber",
"lookupValue": "string"
}
To ensure uninterrupted service, please update your integration to accommodate the new payload structure as outlined above before the specified effective date. Failure to do so may result in errors or disruption of service.
Discount Feature v2, provides merchants the functionality to create custom discount types and periods. This feature allows merchants the ability to match Riverty’s Recurring Product to a large variety of different discount scenarios, which can help Merchants increase customer retention.
The changes in the API include:
Your service is not impacted unless you are using the discount feature. In this case, some fields will be deprecated, and new fields will be introduced due to recent changes in the Discount API resource. Please note, your existing discount data will be migrated to be consistent with our new discount approach.
The API resource of the Discount will be changed on 11 December 2023, existing discount programs will continue to run as long as the below instructions are followed.
Please make sure your service is compliant with deprecated and newly introduced objects as shown below.
API Resource: /v1/clients/{clientId}/subscriptions/{subscriptionId}/discounts/{discountId}
{
"description": "Discount due to promotion code",
"numberOfPeriods": 2,
"periodAmount": {
"grossAmount": 62.5,
"vatPercentage": 25
},
"metadata": [
{
"key": "order-id",
"value": "a9ee9996-e941-4aa8-90b9"
}
]
}
{
"description": "12.5% off discount",
"type": "PERCENTAGE",
"value": 12.5,
"start": "2023-09-10",
"duration": {
"type": "REPEATING",
"count": 5
},
"metadata": [
{
"key": "order-id",
"value": "a9ee9996-e941-4aa8-90b9"
}
]
}
{
"id": "discount-1",
"description": "12.5% off discount",
"type": "PERCENTAGE",
"value": 12.5,
"start": "2023-09-10",
"duration": {
"type": "REPEATING",
"count": 5
},
"metadata": [{ "key": "order-id", "value": "a9ee9996-e941-4aa8-90b9"}],
"createdAt": "2022-09-01T07:29:04.407Z",
"status": "ACTIVE"
}
The details of the parameters in the discount request payload are as follows:
Input name | Type | Description |
---|---|---|
Description | string | Specifies the description of the discount |
Type | string | Indicates whether a discount by a fixed amount or by a percentage. Valid values are: AMOUNT, PERCENTAGE |
Value | decimal(18,4) | Indicates how much the subscription will be discounted |
Start | date | Indicates the date that the discount was applied or started |
Duration.Type | string | Indicates how long the discount will be applied Valid values are: ONCE, REPEATING, ALWAYS |
Duration.Count | short | Specifies the discount duration if type REPEATING is selected |
Metadata | string | Specifies metadata for which custom values can be used |
Product Itemization allows merchants to differentiate different fees within their subscription invoices. The functionality means that consumers will be able to distinguish the product/service price from other costs on their invoices, such as shipping or equipment. This invoicing flexibility increases transparancy between the merchant and consumers by allowing consumers to recieve a clearer understanding of what they are paying for.
The changes in the API include:
Your service is impacted by this change as this is deprecating one object and introducing a new one in the Subscription Product API resource. However, your existing product data will be migrated to be consistent with our new itemization approach. This means your past products will contain only one item that will reflect the actual product/service price in the new system.
The API resource of the Subscription product will be changed on 10 April 2023.
After 10 April 2023, your existing services will continue to run as we will migrated your existing product data. However, if you decided to add additional item offerings in the future, you may need to reconfigure your subscription products to fulfill the itemization requirements below.
Please make sure your service is compliant with deprecated and newly introduced objects as shown below.
API Resource: /v1/clients/{clientId}/subscription-products/{subscriptionProductId}
{
"id": "subscription-product-id-1",
"period": {
"type": "MONTH",
"start": {
"type": "ACTIVATION"
}
},
"items": [
{
"name": "Internet 100M / 25M, monthly fee",
"description": "Home internet services",
"price": {
"grossAmount": 27,
"vatPercentage": 20
},
"metadata": [
{
"key": "order-id",
"value": "a9ee9996-e941-4aa8-90b9-4b047c4afe87"
}
]
},
{
"name": "Router Technicolor DGA4330, monthly fee",
"description": "Equipment rent",
"price": {
"grossAmount": 2.99,
"vatPercentage": 20
},
"isRefundable": false
}
]
}
{
"id": "subscription-product-id-1",
"period": {
"type": "MONTH",
"start": {
"type": "FIXED",
"day": 10,
"month": null
}
},
"items": [
{
"name": "Internet 100M / 25M, monthly fee",
"description": "Home internet services",
"price": {
"grossAmount": 27,
"vatPercentage": 20
},
"partialPeriodAmountCalculation": "Partial"
},
{
"name": "Router Technicolor DGA4330, monthly fee",
"description": "Equipment rent",
"price": {
"grossAmount": 2.99,
"vatPercentage": 20
},
"isRefundable": false,
"partialPeriodAmountCalculation": "Full"
}
]
}
The details of the parameters in the Items array are as follows:
Input Name | Type | Description |
---|---|---|
Name | String | Specifies the name of the product item |
Description | String | Specifies the description of the product item |
Price.GrossAmount | decimal(18,4) | Specifies the gross amount of the product item |
Price.VatPercentage | decimal(18,4) | Specifies the VAT percentage of the product item |
Metadata | String | Specifies metadata for which custom values can be used |
IsRefundable | boolean | Specifies whether the item can be refund. Default: true |
PartialPeriodAmountCalculation | String | Specifies the type of amount calculation in case of partial periodization. Default: PARTIAL Only applicable for fixed period start type. Valid values are: PARTIAL, FULL, IGNORE |