Credit Management System (CMS)
The DpaSettings Object
The DpaSettings object represents the DPA configuration for a specific partner.
Attributes
| Attribute | Description | Type |
|---|---|---|
partnerId | Unique identifier of the partner | String (UUID) |
defaults | Default configuration for the DPA flow | Object |
timezone | Partner's timezone | String |
onApproveFlowReserveAllAssignedAmount | Indicates whether to reserve the entire assigned amount upon flow approval | Boolean |
invoiceOverLimit | Allowed percentage over the invoice limit | Number |
reserveOnStart | Indicates whether to reserve the amount when starting a DPA flow | Boolean |
Defaults Object
| Attribute | Description | Type |
|---|---|---|
currency | Default currency for the DPA flow | String |
flowExpirationMinutes | Flow expiration time in minutes | Integer |
closingBalanceThreshold | Closing balance threshold | String |
excludeDefaultProductFromSegmentation | Allows excluding the default product from advanced simulations | boolean |
productId | Identifier of the default credit product for simple simulations | uuid |
segmentationId | Identifier of the default segmentation used for simple simulations | uuid |
calendarType | Calendar type for date calculations | String ("Custom", "BusinessDays", "NaturalDays") |
Endpoints
Get DPA Configuration for a Partner
Retrieves the DPA configuration for a specific partner.
Path Parameters:
| Parameter | Description |
|---|---|
partnerId | ID of the partner to retrieve the configuration |
Successful Response:
Update DPA Configuration for a Partner
Updates the DPA configuration for a specific partner.
Path Parameters:
| Parameter | Description |
|---|---|
partnerId | ID of the partner to update the configuration |
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
defaults | New default values | Object | No |
timezone | New timezone | String | No |
onApproveFlowReserveAllAssignedAmount | New value for reserve on approval | Boolean | No |
invoiceOverLimit | New value for invoice limit | Number | No |
reserveOnStart | New value for reserve on start | Boolean | No |
Example Request:
Successful Response:
The response will be the updated DpaSettings object.
Error Handling
The API may return the following error codes:
| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
Errors will include a descriptive message in the response body.