Customer status changed

This webhook triggers when a Customer's state becomes closing, closed or held, and when Lirium lifts a hold. Other state changes don't trigger it.

New stateWhen
closingThe account was closed, with Update Customer or by Lirium, but the Customer still has a balance or pending orders and must withdraw its funds
closedThe account is closed. A closing Customer becomes closed once it has no balance and no pending orders, so you receive this webhook again. A Customer with nothing left goes straight to closed
heldLirium put the Customer on a Compliance hold: every product is disabled
active, from heldLirium lifted the hold: the products the Customer qualifies for are enabled again

customer is the Customer exactly as Customer Details returns it, with the new state.

{
  "id":"674670ef4c444efcac88ebae4184e4d4",
  "action":"customer-status-changed",
  "customer":{
    "id":"585fbdc4f9f311ea96a90242ac140006",
    "created_at":"2020-09-01T11:28:59+00:00",
    "reference_id":"AA24053066",
    "state":"closing",
    "type":"individual",
    "domain_status":"active",
    "profile":{
      "label":"jcpetella",
      "first_name":"Juan",
      "middle_name":"Carlos",
      "last_name":"Petella",
      "date_of_birth":"1974-08-09",
      "national_id_country":"AR",
      "national_id_type":"national_id",
      "national_id":"24053066",
      "citizenship":"AR",
      "address_line1":"1234 Any St",
      "address_line2":"Apt. C",
      "city":"Buenos Aires",
      "state":"CABA",
      "country":"AR",
      "zip_code":"1430"
    },
    "contact":{
      "email":"[email protected]",
      "cellphone":"+5491156668452"
    },
    "products":[
      {
        "code":"crypto_buy_sell",
        "active":true,
        "enabled":true
      },
      {
        "code":"crypto_receive",
        "active":true,
        "enabled":false
      },
      {
        "code":"crypto_send",
        "active":true,
        "enabled":true
      }
    ],
    "data_requirements":[
      {
        "id":"document_id_back",
        "created":"2020-09-01T11:28:59+00:00",
        "type":"document",
        "document_type":"id_back",
        "status":"approved",
        "last_updated_at":"2020-09-01T13:12:32+00:00",
        "submitted_at":"2020-09-01T11:31:46+00:00"
      },
      {
        "id":"document_id_front",
        "created":"2020-09-01T11:28:59+00:00",
        "type":"document",
        "document_type":"id_front",
        "status":"approved",
        "last_updated_at":"2020-09-01T13:12:32+00:00",
        "submitted_at":"2020-09-01T11:31:46+00:00"
      }
    ],
    "documents":[]
  }
}
  • This webhook is independent of Customer product changed: a change that also disables products sends both, one for each subscription. It is sent even when no product changes, for example when the Customer had none enabled.
  • A hold that leaves state unchanged doesn't trigger it, and neither does lifting one. When Lirium disables or enables a Customer's products without changing its state, you receive only Customer product changed.
  • Each webhook is delivered and retried on its own, so a closing one can arrive after the closed one. To know the Customer's current state, read it with Customer Details.

Did this page help you?