Update credit debt purchaser
Important:
To update the credit debt purchaser, the following requirements must be met:
- the credit operation cannot be cancelled;
- the credit operation cannot be in the assignment processing stage;
- the credit operation cannot be assigned;
- there must be an active assignment configuration with the new purchaser.
Request
ENDPOINT
/debt/DEBT-KEY/purchaserMÉTODO
PATCHRequest Body
{
"purchaser_document_number": "01234567890001"
}
PATH PARAMS
Field | Type | Description |
---|---|---|
debt_key * | string | Debt Id. |
Response
STATUS
201Response Body
{}
STATUS
400Response Body
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Credit Operation is already in assignment process for changing the purchaser.\", \"translation\": \"A opera\u00e7\u00e3o de cr\u00e9dito est\u00e1 em processo de cess\u00e3o e n\u00e3o pode ter seu comprador alterado.\", \"extra_fields\": {}, \"code\": \"COP000376\"}"
}