Methods

Shop methods for managing orders and recurring payments

Get Shop

get

Returns shop information for the authenticated user

Authorizations
Api-KeystringRequired

API key for authentication.

Responses
chevron-right
200

Successful response

application/json
get
/shop

Get Shop Orders

get

Returns a list of shop orders sorted by ID descending (newest first)

Authorizations
Api-KeystringRequired

API key for authentication.

Responses
chevron-right
200

Successful response

application/json
get
/shop/orders

Create Shop Order

post

Creates a new shop order and returns a payment URL for the customer. Supports one-time and recurring payments.

Authorizations
Api-KeystringRequired

API key for authentication.

Body
amountinteger · int64Required

Order amount in smallest currency units (cents for EUR, kopecks for RUB)

Example: 100000
currencystring · enumRequired

Currency code (lowercase)

Example: rubPossible values:
titlestringRequired

Order title (required, max 100 UTF-16 characters)

Example: Product X
descriptionstringRequired

Order description (required, max 300 UTF-16 characters)

Example: Detailed product description
successUrlstring · uriOptional

Redirect URL on successful payment (optional, must be valid URL)

Example: https://shop.com/success
failUrlstring · uriOptional

Redirect URL on failed payment (optional, must be valid URL)

Example: https://shop.com/fail
emailstring · emailOptional

Customer email (optional, validated if provided)

Example: [email protected]
savePaymentMethodbooleanOptional

Whether to save payment method for recurring charges (requires shop.recurrent to be enabled)

Example: false
commentstringOptional

Optional comment for the order

Example: Special request
customerIdstring · max: 256Optional

Unique customer identifier

Example: user_12345
periodstring · enumOptional

Billing period. Defaults to "onetime" if not specified. Recurring periods require shop.recurrent to be enabled

Default: onetimeExample: monthlyPossible values:
Responses
chevron-right
200

Order created successfully

application/json
post
/shop/orders

Get Shop Order Status

get

Returns the current status of a specific shop order by its UUID. Only accessible by the shop owner.

Authorizations
Api-KeystringRequired

API key for authentication.

Path parameters
orderUuidstring · uuidRequired

Order UUID

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Successful response

application/json
get
/shop/orders/{orderUuid}/status

Cancel Recurring Shop Order

post

Cancels a recurring shop order subscription. Only accessible by the shop owner or authorized managers.

Authorizations
Api-KeystringRequired

API key for authentication.

Path parameters
orderUuidstring · uuidRequired

Order UUID

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Order cancelled successfully

application/json
post
/shop/orders/{orderUuid}/cancel

Get Shop Order Transactions

get

Returns a paginated list of transactions for a specific shop order. Only accessible by the shop owner or authorized managers.

Authorizations
Api-KeystringRequired

API key for authentication.

Path parameters
orderUuidstring · uuidRequired

Order UUID

Example: 550e8400-e29b-41d4-a716-446655440000
Query parameters
startFromintegerOptional

Pagination offset (number of records to skip)

Default: 0Example: 0
Responses
chevron-right
200

Successful response

application/json
get
/shop/orders/{orderUuid}/transactions

Refund Shop Order Transaction

post

Initiates a refund for a specific transaction of a shop order. Only accessible by the shop owner or authorized managers. Only sell transactions from paid orders can be refunded.

Authorizations
Api-KeystringRequired

API key for authentication.

Path parameters
orderUuidstring · uuidRequired

Order UUID

Example: 550e8400-e29b-41d4-a716-446655440000
txIdinteger · uint64Required

Transaction ID (must be a sell transaction)

Example: 12345
Responses
chevron-right
200

Refund initiated successfully

application/json
post
/shop/orders/{orderUuid}/transactions/{txId}/refund

Last updated