Updates the credit line of an existing child balance and automatically adjusts both the child’s credit limit and the parent’s available credit.
Increasing the credit line deducts the additional amount from the parent’s available credit, while decreasing it returns the difference to the parent. All updates are performed atomically to ensure consistency.
The operation fails if the parent does not have sufficient available credit or if the new credit line is lower than the child’s outstanding debt. The child_id parameter refers to the internal balance ID.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
400
Bad Request - Validation errors or invalid parameters.
Error code 5000 - Validation errors:
not enough available_credit in this balance's parent (The parent does not have sufficient available credit)
credit_line too small; credit_limit would become negative (The new credit line would make the credit limit negative)
incorrect balance_id (The balance_id does not exist or is invalid)
Example of error response
JSON
{
"timestamp": "2025-10-01T11:55:50.529350567-06:00",
"endpoint": "/wallet/v1/composite-balance/child/10248/update-credit-line",
"error": {
"code": 5000,
"text": "Validation Error",
"hints": [
"Validations for the request failed, please check the parameters and try again",
"incorrect balance_id"
]
},
"payload": {}
}
Updated 7 months ago
Did this page help you?
Yes
No
Language
ShellNodeRubyPHPPython
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: