Upload a custom payment method's icon
Sent as multipart/form-data in a field called image. It replaces the one it had. Answers the store’s custom methods again, as “List custom payment methods” does.
Needs the payments.write permission (Change Payment Methods).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The method, by its ID (custom_ and 16 hex characters).
Body
The file.
Response
It worked.
Whether the request did what was asked.
Words for a person. Empty when it worked.
Why it was refused, as a word that does not change. Empty when it worked.
The thing asked for: an object, or for a list its rows.
For a paged list: how many pages there are.
For a paged list: how many rows there are in all.
Anything else the route answers beside the thing itself.

