ResourcesWallet

Update wallet status

Freeze or activate a customer wallet.

PATCH
/v2/wallets/{customer}/status

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

curl -X PATCH "https://sell.app/api/v2/wallets/0/status" \  -H "Content-Type: application/json" \  -d '{    "status": "active"  }'
{
  "data": {
    "id": 0,
    "customer_id": 0,
    "customer_email": "user@example.com",
    "balance_cents": 0,
    "status": "active",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_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."
    ]
  }
}