-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New referenceValue parameter Create Payment edpt
- Loading branch information
1 parent
d5c58eb
commit 1d686b9
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
docs/release-notes/new-referencevalue-parameter-create-payment-endpoint.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
slug: "new-referencevalue-parameter-create-payment-endpoint" | ||
title: "New referenceValue parameter in the Create Payment endpoint request body" | ||
createdAt: 2023-10-24T00:00:00.000Z | ||
hidden: false | ||
type: "added" | ||
excerpt: "New parameter available in the Create Payment endpoint request body." | ||
--- | ||
The `referenceValue` parameter was added to the Create Payment endpoint. This new field is mandatory and must be sent on the endpoint to represent the payment amount without interest applied. The values of the `value` and `referenceValue` fields will be equal whenever the value of the `installmentsInterestRate` field is equal to zero. See the examples below: | ||
|
||
- **Case 1**: Order value is 15.00 (interest free): | ||
|
||
- `value`: 15.00 | ||
- `referenceValue`: 15.00 | ||
- `installments`: 1 | ||
- `installmentsInterestRate`: 0.00 | ||
|
||
- **Case 2**: Order value is 15.00 (with interest of 1.00 per month, 3 installments): | ||
|
||
- `value`: 15.00 | ||
- `referenceValue`: 12.00 | ||
- `installments`: 3 | ||
- `installmentsInterestRate`: 1.00 |