Operations

Barrings regularization


Request example

1
2
3
4

curl -X GET https://barrings.masstack.com/v3/operations \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK List with all operations [RegularizationDto]
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Parameters

Name In Type Required Description
body body object true Contains the CSV file with regularization data and a string reason for the operation.

Request body - Content-Type: multipart/form-data

Custom schema example

1
2
3
file: string
reason: Regularization for debt masks.

Name Type Required Description
file string true The CSV file containing the regularization data.
reason string true A string explaining the reason for this regularization.

Request example

1
2
3
4
5
6
7

curl -X POST https://barrings.masstack.com/v3/operations \
  -H "Content-Type: multipart/form-data" \
  -H "Accept: application/json" \
  -F "file=undefined" \
  -F "reason=Regularization for debt masks." \

Responses

Code Meaning Description Schema
202 Accepted File uploaded successfully UploadFileResponse
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
404 Not Found SubscriptionId not found ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Parameters

Name In Type Required Description
regularizationId path string true Regularization identifier
offset query integer true Number of items to skip (for pagination)
limit query integer false Maximum number of items to return (for pagination)

Request example

1
2
3
4

curl -X GET https://barrings.masstack.com/v3/operations/22222/items?offset='0'&limit='20'?offset=0 \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK List with all operations items by id [RegularizationItemDto]
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Endpoints

Masks

    Services

      Operations