AltScore
Credit Management System (CMS)

The DpaSettings Object

The DpaSettings object represents the DPA configuration for a specific partner.

{
  "partnerId": "6457c3ce-3887-45d6-92ca-299219ea96db",
  "defaults": {
    "currency": "MXN",
    "flowExpirationMinutes": 15,
    "closingBalanceThreshold": "1.00",
    "productId": "e4341b4b-ce1c-4692-bb75-9f438b29dec4",
    "segmentationId": "e4341b4b-ce1c-4692-bb75-9f438b29dec4",
    "excludeDefaultProductFromSegmentation": false,
    "calendarType": "BusinessDays"
  },
  "timezone": "America/Argentina/Buenos_Aires",
  "onApproveFlowReserveAllAssignedAmount": true,
  "invoiceOverLimit": 12.5,
  "reserveOnStart": true
}

Attributes

AttributeDescriptionType
partnerIdUnique identifier of the partnerString (UUID)
defaultsDefault configuration for the DPA flowObject
timezonePartner's timezoneString
onApproveFlowReserveAllAssignedAmountIndicates whether to reserve the entire assigned amount upon flow approvalBoolean
invoiceOverLimitAllowed percentage over the invoice limitNumber
reserveOnStartIndicates whether to reserve the amount when starting a DPA flowBoolean

Defaults Object

AttributeDescriptionType
currencyDefault currency for the DPA flowString
flowExpirationMinutesFlow expiration time in minutesInteger
closingBalanceThresholdClosing balance thresholdString
excludeDefaultProductFromSegmentationAllows excluding the default product from advanced simulationsboolean
productIdIdentifier of the default credit product for simple simulationsuuid
segmentationIdIdentifier of the default segmentation used for simple simulationsuuid
calendarTypeCalendar type for date calculationsString ("Custom", "BusinessDays", "NaturalDays")

Endpoints

Get DPA Configuration for a Partner

Retrieves the DPA configuration for a specific partner.

GET /v2/partners/:partnerId/settings/dpa

Path Parameters:

ParameterDescription
partnerIdID of the partner to retrieve the configuration

Successful Response:

{
  "partnerId": "6457c3ce-3887-45d6-92ca-299219ea96db",
  "defaults": {
    "currency": "MXN",
    "excludeDefaultProductFromSegmentation": true,
    "flowExpirationMinutes": 15,
    "productId": "e4341b4b-ce1c-4692-bb75-9f438b29dec4",
    "segmentationId": "e4341b4b-ce1c-4692-bb75-9f438b29dec4",
    "closingBalanceThreshold": "1.00",
    "calendarType": "BusinessDays"
  },
  "timezone": "America/Argentina/Buenos_Aires",
  "onApproveFlowReserveAllAssignedAmount": true,
  "invoiceOverLimit": 12.5,
  "reserveOnStart": true
}

Update DPA Configuration for a Partner

Updates the DPA configuration for a specific partner.

PATCH /v2/partners/:partnerId/settings/dpa

Path Parameters:

ParameterDescription
partnerIdID of the partner to update the configuration

Input Parameters:

ParameterDescriptionTypeRequired
defaultsNew default valuesObjectNo
timezoneNew timezoneStringNo
onApproveFlowReserveAllAssignedAmountNew value for reserve on approvalBooleanNo
invoiceOverLimitNew value for invoice limitNumberNo
reserveOnStartNew value for reserve on startBooleanNo

Example Request:

{
  "defaults": {
    "currency": "USD",
    "flowExpirationMinutes": 30,
    "calendarType": "BusinessDays"
  },
  "timezone": "America/New_York",
  "invoiceOverLimit": 15.0
}

Successful Response:

The response will be the updated DpaSettings object.

Error Handling

The API may return the following error codes:

CodeDescription
400Bad Request
401Unauthorized
403Forbidden
404Not Found
500Internal Server Error

Errors will include a descriptive message in the response body.

On this page