Buy Buttons

E-commerce payment button configuration

List buy buttons

get
/buy-buttons

Returns all buy buttons configured by the authenticated merchant. Supports filtering by name and date range.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Query parameters
startDatestring · dateOptional

Filter start date (ISO format)

endDatestring · dateOptional

Filter end date (ISO format, required if startDate is set)

namestringOptional

Filter by button name (partial match)

Responses
200

Buy button list

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/buy-buttons

Create a buy button

post
/buy-buttons

Creates a new e-commerce buy button. After creation, embed the generated HTML snippet on your product page.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Body
namestringRequired

Internal name for the button

websiteUrlstring · uriRequired

URL of the page where the button is embedded

itemRefstringOptional

Merchant's product reference

callbackUrlstringOptional

Webhook URL called when payment completes

pricenumberRequired

Fixed price in the specified currency

currencystringRequired

Currency code (e.g. EUR, USD, CHF)

Responses
200

Buy button created

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

post
/buy-buttons

Get a buy button

get
/buy-buttons/{id}

Returns details of a single buy button by ID.

Roles: SuperAdmin, Manager, SimpleUser, SuperManager, Service

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Responses
200

Buy button details

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/buy-buttons/{id}

Update a buy button

put
/buy-buttons/{id}

Updates one or more fields of a buy button.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Body
namestringOptional
websiteUrlstringOptional
itemRefstringOptional
callbackUrlstringOptional
pricenumberOptional
currencystringOptional
identifierstringOptional

HTML embed identifier

Responses
200

Buy button updated

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

put
/buy-buttons/{id}

Delete a buy button

delete
/buy-buttons/{id}

Permanently removes a buy button.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Responses
200

Buy button deleted

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

dataanyOptional

Response payload

delete
/buy-buttons/{id}

Last updated