post
https://api.caas.staging.bancocdc.com.br/assignment/launch
This route allows the creation of a credit assignment, where rights to a credit are transferred from a creditor to a third party.
Attention point:
It's only possible to create an assignment for a single buyer. Buyers cannot be merged in one assignment.
Response
| Http Code | Return Code | Message |
|---|---|---|
| 200 | 200-01 | Success. |
| 400 | 400-01 | Something unexpected happened. |
| 400 | 400-09 | There are no results for the query. |
| 401 | 401-06 | The requested module is not enabled. |
| 406 | 406-03 | field #replaceHere is mandatory and was not informed. |
| 503 | 503-05 | It was not possible to process the assignment, please contact CDC Bank. |
Response Parameters
| Parameter | Format | Description |
|---|---|---|
| request_code | String | Unique identifier for the request. |
| return | Boolean | Indicates if the request was successful. |
| return_code | String | Code indicating the result of the request. |
| message | String | Description of the result of the request. |
| data | Object | Contains information about the generated assignment. |
| data.code | String | Unique identifier for the generated assignment. |
| data.number_assignment | String | Number assigned to the generated assignment. |