ReferenceAPI ReferenceCustomers
Deactivate Customers
Deactivate Customers.
Request
interface CustomersDeactivateRequest {
action: 'deactivate'
resource: string
details?: {} | undefined
}Prop
Type
Response
interface CustomersDeactivateResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: unknown
metadata: unknown
}Prop
Type
interface CustomersDeactivateResponse_pending {
status: 'pending'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
proposal_id: string
}
}Prop
Type
Example
import { resourceSchema } from '@blockstream/ecs-js-sdk'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof resourceSchema.shape.customers.shape.deactivate
>(
{
action: 'deactivate',
resource: '/customers/{id}',
details: {
// TODO: fill in required fields
},
},
blockstream,
)