Skip to main content
PATCH
/
api
/
v1.0
/
accounts
/
update-status
/
{id}
Update
curl --request PATCH \
  --url https://sandbox-payment-b2b.singapay.id/api/v1.0/accounts/update-status/{id} \
  --header 'Accept: <api-key>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-PARTNER-ID: <api-key>' \
  --data '
{
  "status": "active",
  "invite_members": [
    "john@example.com",
    "jane@example.com"
  ]
}
'
{
  "status": 200,
  "success": true,
  "data": {
    "id": "01K946KF851RK7FX075GJHBVKF",
    "name": "John Doe",
    "status": "active",
    "account_number": "000000000123",
    "account_type": "owned",
    "kyb_status": "kyb_in_review",
    "invite_members": [
      "john@example.com"
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.

X-PARTNER-ID
string
header
required

Merchant API key (Credential.api_key). Required on every request.

Accept
string
header
required

Response format. Send application/json on every merchant API request.

Path Parameters

id
string
required

Account ULID

Body

application/json
status
enum<string>
required

Target account status.

Available options:
active,
inactive
Example:

"active"

invite_members
string<email>[] | null

Optional. Array of team member email addresses to grant access to this account. This replaces the entire member list — any existing members not included will lose access. Omit the field to leave current members unchanged. All emails must belong to registered members of the merchant.

Maximum array length: 50
Example:
["john@example.com", "jane@example.com"]

Response

Updated

status
integer
required
Example:

200

success
boolean
required
Example:

true

data
object
required