메인 콘텐츠로 건너뛰기
POST
단가 등록

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

경로 매개변수

code
string
필수

단가를 넣을 미터의 code.

본문

application/json
dimension_values
object
필수
customer_id
string<uuid>
effective_from
string
effective_until
string
model
enum<string>
사용 가능한 옵션:
per_unit,
graduated,
volume
Pattern: per_unit|graduated|volume
tiers
object[]
Required array length: 1 - 100 elements
unit_price
number
필수 범위: x >= 0

응답

저장된 단가. 덮어쓴 경우에도 201이다

archived_at
string<date-time>
archived_from
string
billable_metric_code
string
customer_id
string<uuid>
dimension_values
object
effective_from
string
effective_until
string
id
string<uuid>
model
enum<string>
사용 가능한 옵션:
per_unit,
graduated,
volume
tiers
object[]

graduated, volume 모델의 구간. per_unit이면 null이다

unit_price
number

per_unit 모델의 단가. graduated, volume 모델에서는 null이다