Skip to main content
POST
/
merchant
/
users
/
{id}
/
fund
Fund sub-user wallet
curl --request POST \
  --url https://api.skinshark.gg/merchant/users/{id}/fund \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'api-key: <api-key>' \
  --data '
{
  "amount": "<string>"
}
'
{
  "requestId": "<string>",
  "success": true,
  "data": {
    "transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "idempotent": true
  },
  "error": {
    "code": 1500,
    "key": "INSUFFICIENT_BALANCE",
    "message": "Insufficient balance"
  }
}

Authorizations

api-key
string
header
required

Your raw API key. Generate, rotate, and revoke keys from the merchant dashboard. Keys can optionally be bound to one or more allowed source IPs — requests from any other IP are rejected with API_KEY_IP_DENIED.

Headers

Idempotency-Key
string
required

Required for POST /merchant/users/:id/fund. Scope is merchant:<merchantId>:<key>. Replay with the same key returns the original transaction with idempotent: true.

Minimum string length: 1

Path Parameters

id
string
required
Required string length: 1 - 128

Body

application/json
amount
string
required

Decimal in the merchant's currency. Sub-user must use the same currency.

Pattern: ^\d+(\.\d{1,2})?$

Response

OK.

requestId
string
required
success
boolean
required
data
object

Present when success: true. Shape varies per endpoint.

error
object