Skip to content

Commit

Permalink
New referenceValue parameter Create Payment edpt
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoaerobr committed Oct 24, 2023
1 parent d5c58eb commit 1d686b9
Showing 1 changed file with 23 additions and 0 deletions.
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

0 comments on commit 1d686b9

Please sign in to comment.