PerformEnrollment

[POST] .../v1/promobonus/performenrollment

Posts operation deposit on customer card. Use this method after PromoBonus/CreateEnrollment to post the pending customer card enrollment operation. The request requires uuid, the promo bonus add permission, and an operation that exists, is not a payment operation, and is not deleted. The method locks the uuid, marks the enrollment as performed, emits the enrollment-performed webhook, and returns row_affected. Business errors such as a missing request body, missing uuid, denied access, missing operation, payment-operation uuid, deleted operation, missing active row, database errors, or persistence failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
uuid String Required UUID of the accrual operation on the customer card.

Request Example

{
  "uuid": "00000000-0000-0000-0000-000000000000"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}