Blockstream Enterprise
ReferenceAPI ReferenceCustomers

Get Customers

Get Customers.

Request

CustomersGetRequest
interface CustomersGetRequest {
  action: 'get'
  resource: string
  details?: {} | undefined
}

Prop

Type

Response

CustomersGetResponse_success
interface CustomersGetResponse_success {
  status: 'success'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
  details: {
    id: string
    name: string
    display_name: string
    description: string | undefined
    public_key: string
    svix_app_id: string | undefined
    svix_magic_link: string | undefined
    is_default: boolean
    status: 'active' | 'disabled' | 'archived'
    created_at: string
    created_by: string
    updated_at: string
    updated_by: string
  }
  metadata: unknown
}

Prop

Type

CustomersGetResponse_failed | pending | unauthorized | rejected
interface CustomersGetResponse_failed | pending | unauthorized | rejected {
  status: 'failed' | 'pending' | 'unauthorized' | 'rejected'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
}

Prop

Type

Example

Example
import { resourceSchema } from '@blockstream/ecs-js-sdk'
import { broadcastRequest } from './broadcaster'

const response = await broadcastRequest<
  typeof resourceSchema.shape.customers.shape.get
>(
  {
    action: 'get',
    resource: '/customers/{id}',
    details: {
      // TODO: fill in required fields
    },
  },
  blockstream,
)

On this page