跳到主要内容

创建转让/替代批次


Request

ENDPOINT
/trade_receivables/BASE_URL/assignment
MÉTODO
POST
Request Body
{
"external_id": "931e9437-d025-41ab-bb53-6b94e10fd361",
"assignment_date": "2024-04-01"
}

Body Params

字段类型描述字符数
external_id *string集成合作伙伴系统中该批次的唯一标识键。最多50
assignment_date *string转让日期YYYY-MM-DD

Response

STATUS
201
Response Body
{
"assignment_key": "41d6ff41-1dac-4df7-9e50-d15210ec57f3",
"status": "pending_assets_insertion",
}

可能的错误


STATUS
404
Response Body
{
"title": "AssignmentConfiguration was not found",
"description": "AssignmentConfiguration was not found",
"translation": "Configuração de cessão não foi encontrada",
"code": "TRC000016"
}



STATUS
400
Response Body
{
"title": "Invalid assignment date.",
"description": "Given assignment date is different from fund accounting date.",
"translation": "Data de cessão fornecida diferente da data do fundo.",
"code": "TRC000083"
}



STATUS
400
Response Body
{
"title": "Assignment Configuration is not active.",
"description": "Assignment Configuration is not active.",
"translation": "A configuração de cessão não está ativa.",
"code": "TRC000014"
}



STATUS
400
Response Body
{
"title": "Already Exists This External Id",
"description": "Already Exists This External Id",
"translation": "Ja existe lote com esse external_id",
"code": "TRC000041"
}