[POST] .../v1/paymenttype/addimage
Adds image to payment method. Use this method to add or replace a payment method image that is shown in POS and payment method selection interfaces. It accepts either JSON image data or a multipart file payload, validates payment_type_id and file content and returns row_affected after updating the payment method timestamp. The caller must have payment method edit permission; missing body, invalid payment_type_id, missing file, denied access, upload failures and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| file | String | Required | Image file payload. |
| payment_type_id | Int64 | Required | Payment method ID. |
Request Example
{
"payment_type_id": 3,
"file": "data:image/png;base64,iVBORw0KGgo="
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}