ResourcesWallet

Adjust a customer wallet

Append an idempotent, staff-attributed manual credit or debit.

Positive amount_cents values credit the wallet; negative values debit it. Debits cannot exceed the available balance after active holds.

POST
/v2/wallets/{customer}/adjustments

Authorization

bearerAuth storeAuth
AuthorizationBearer <token>

Provide your SellApp API key as a bearer token.

In: header

X-STORE<token>

Select the SellApp store for this API request.

In: header

Path Parameters

customer*integer

The customer path parameter.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://sell.app/api/v2/wallets/0/adjustments" \  -H "Content-Type: application/json" \  -d '{    "amount_cents": -999999999999,    "idempotency_key": "string",    "note": "string"  }'
{
  "data": {
    "id": 0,
    "wallet_id": 0,
    "type": "MANUAL_ADJUSTMENT",
    "amount_cents": -999999999999,
    "balance_after_cents": 0,
    "note": "string",
    "idempotency_key": "string",
    "expires_at": "2019-08-24T14:15:22Z",
    "created_by_user_id": 0,
    "created_at": "2019-08-24T14:15:22Z"
  }
}
{
  "data": {
    "id": 0,
    "wallet_id": 0,
    "type": "MANUAL_ADJUSTMENT",
    "amount_cents": -999999999999,
    "balance_after_cents": 0,
    "note": "string",
    "idempotency_key": "string",
    "expires_at": "2019-08-24T14:15:22Z",
    "created_by_user_id": 0,
    "created_at": "2019-08-24T14:15:22Z"
  }
}
{
  "message": "Unauthenticated."
}
{
  "message": "This action is unauthorized."
}
{
  "message": "Rule not found."
}
{
  "message": "The given data was invalid.",
  "errors": {
    "data": [
      "The data field is required."
    ]
  }
}