xMoney Crypto API (1.1.0)

The xMoney Crypto API allows merchants to integrate cryptocurrency payments into their platforms. It follows RESTful principles and uses JSON:API specifications.

Key features:

  • Resource-oriented URLs
  • JSON responses
  • Standard HTTP response codes and verbs

API keys are used for authentication to ensure secure communication. Webhooks are supported for real-time payment notifications.

Overview
Languages
Servers
Development
https://docs.xmoney.com/_mock/crypto_api/reference/
Production server (live)
https://merchants.api.crypto.xmoney.com/api/
Sandbox server (test)
https://merchants.api.sandbox.crypto.xmoney.com/api/

Order

Operations related to managing orders.

Operations

Refund

Operations

Creates a refund proposal

Request

As a merchant you can only propose refunds, it's ultimately the buyer's decision to either accept or reject it (within a reasonable timeframe). There can only be one refund proposed per payment.For payments older than 3 months, refund is not allowed.

Path
payment_idstring(UUID)required

The unique identifier (UUID) of the payment to refund.

Bodyapplication/vnd.api+json

Refund proposal to send to the buyer

dataobject
curl -i -X POST \
  'https://docs.xmoney.com/_mock/crypto_api/reference/stores/refunds/{payment_id}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/vnd.api+json' \
  -d '{}'

Responses

Refund details

Bodyapplication/vnd.api+json
arrays
Response
application/vnd.api+json
[]

Returns a refund for the given payment, if there is one

Request

Path
payment_idstring(UUID)required

The unique identifier (UUID) of the order to operate on.

curl -i -X GET \
  'https://docs.xmoney.com/_mock/crypto_api/reference/stores/refunds/{payment_id}' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Refund details

Bodyapplication/vnd.api+json
dataobject
Response
application/vnd.api+json
{ "data": { "id": "c8d65cc2-0c82-429a-95ea-3f65011fc2cc", "type": "refunds", "attributes": {} } }