Update child's credit line

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The child balance’s unique identifier

Body Params
integer
required

The new credit line in Mexican cents

Headers
string
required

OAuth token belonging to the e-commerce

Responses

{
  "text": "Success",
  "timestamp": "2025-10-01T11:54:58.26455793-06:00",
  "endpoint": "/wallet/v1/composite-balance/child/10249/update-credit-line",
  "error": {},
  "payload": {
    "child": {
      "credit_limit": 100000
    },
    "parent": {
      "id": "66acce83856147e791206ca90a6e4b6d",
      "available_credit": 250000
    }
  }
}

{
  "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": {}
}
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json