Invoice
請求関連のAPIリファレンスは以下の通りです。

Get Account total cost list

アカウント合計一覧の取得
Role actions
  • ReadInvoice
  • ModifyInvoice
Request
1
GET /invoice/{month}/details HTTP1.1
2
Authorization: Bearer {token}
Copied!
リクエストパラーメータの{month}のフォーマット: yyyy-mm 例: 2020-01
Response
1
HTTP 200
2
3
{
4
"accounts": [
5
{
6
"customer_id": "012345678987",
7
"customer_name": "customer 1",
8
"total": 431,
9
"total_exchanged": 43100,
10
"adjustment_entries": [
11
{
12
"name": "upfront - Sign up charge for subscription: 000000000, planId: 000000000",
13
"amount": 2,
14
"amount_exchanged": 200
15
}
16
]
17
},
18
{
19
"customer_id": "123456789875",
20
"customer_name": "customer 2",
21
"total": 6,
22
"total_exchanged": 600,
23
"adjustment_entries": [
24
{
25
"name": "upfront - one-time fee for 1 year All Upfront ap-southeast-1 EC2 Savings Plan ID:0000000000 ",
26
"amount": 1,
27
"amount_exchanged": 100
28
}
29
]
30
}
31
],
32
"billing_groups": [
33
{
34
"billing_group_id": "bgid1",
35
"billing_group_name": "bg1",
36
"vendor": "aws",
37
"tax_excluded_amount": 0,
38
"tax_excluded_amount_exchanged": 0,
39
"tax": 0,
40
"total_amount_exchanged": 0
41
},
42
{
43
"billing_group_id": "bgid2",
44
"billing_group_name": "bg2",
45
"vendor": "aws",
46
"tax_excluded_amount": 437,
47
"tax_excluded_amount_exchanged": 43700,
48
"tax": 4370,
49
"total_amount_exchanged": 48070
50
}
51
]
52
}
Copied!
accountsの詳細
Field
Type
Description
customer_id
string
顧客ID
customer_name
string
顧客名
total
double
$金額(税抜)
total_exchanged
double
換算後金額(税抜)
adjustment_entries
list
請求書に含んだ再計算請求データの一覧
billing_groupsの詳細
Field
Type
Description
billing_group_id
string
請求グループID
billing_group_name
string
請求グループ名
vendor
string
ベンダー
tax_excluded_amount
double
$合計金額(税抜)
tax_excluded_amount_exchanged
double
$換算後合計金額(税抜)
tax
double
消費税金額
total_amount_exchanged
double
合計請求金額

Get Invoice list

請求書一覧の取得
Role actions
  • ReadInvoice
  • ModifyInvoice
Request
1
GET /invoices/{month} HTTP1.1
2
Authorization: Bearer {token}
Copied!
リクエストパラーメータの{month}のフォーマット: yyyy-mm 例: 2020-01
Response
1
HTTP 200
2
3
{
4
"total": {
5
"stock":108850,
6
"sales":108850,
7
"azure_stock":0,
8
"azure_sales":0
9
},
10
"billinggroup": [
11
{
12
"company_id":"company1",
13
"name":"company1",
14
"billinggroup_id":"billinggroup1",
15
"billinggroup_name":"billinggroup1",
16
"project_id":null,
17
"project_code":null,
18
"project_label":null,
19
"project_currency":null,
20
"month":"2020-12",
21
"invoice_no":"2020-12billing1",
22
"created_data": {
23
"aws": {
24
"invoice_no":"2020-12billing1",
25
"calc_type":"account",
26
"currency":"jpy",
27
"discount_rate":0.02,
28
"discount_target_usage":"cloudpaywithfee",
29
"discount_calc_logic":"usageamount",
30
"tax_rate":0.10,
31
"support_fee":"fix",
32
"support_rate":0,
33
"support_fee_calc_target":"nondiscount",
34
"support_fix": 0,
35
"substitution_fee":"percent",
36
"substitution_rate":0,
37
"substitution_fix":0,
38
"substitution_fee_calc_target":"nondiscount",
39
"substitution_fee_target_usage":"cloudpaywithfee",
40
"substitution_fee_calc_type":"allsum",
41
"exchange_rate":102.45,
42
"memo":null,
43
"additional_items": []
44
},
45
"azure":null
46
},
47
"saved_data": {
48
"aws": {
49
"invoice_no":null,
50
"calc_type":"account",
51
"currency":"jpy",
52
"discount_rate":0.02,
53
"discount_target_usage":"cloudpaywithfee",
54
"discount_calc_logic":"usageamount",
55
"tax_rate":0.10,
56
"support_fee":"fix",
57
"support_rate":0,
58
"support_fee_calc_target":"nondiscount",
59
"support_fix":0,
60
"substitution_fee":"percent",
61
"substitution_rate":0,
62
"substitution_fix":0,
63
"substitution_fee_calc_target":"nondiscount",
64
"substitution_fee_target_usage":"cloudpaywithfee",
65
"substitution_fee_calc_type":"allsum",
66
"exchange_rate":102.45,
67
"memo":null,
68
"additional_items": []
69
},
70
"azure":null
71
},
72
"default_data": {
73
"aws": {
74
"invoice_no":null,
75
"calc_type":"account",
76
"currency":"jpy",
77
"discount_rate":0.02,
78
"discount_target_usage":"cloudpaywithfee",
79
"discount_calc_logic":"usageamount",
80
"tax_rate":0.10,
81
"support_fee":"fix",
82
"support_rate":0,
83
"support_fee_calc_target":"nondiscount",
84
"support_fix":0,
85
"substitution_fee":"percent",
86
"substitution_rate":0,
87
"substitution_fix":0,
88
"substitution_fee_calc_target":"nondiscount",
89
"substitution_fee_target_usage":"cloudpaywithfee",
90
"substitution_fee_calc_type":"allsum",
91
"exchange_rate":null,
92
"memo":null,
93
"additional_items": []
94
},
95
"azure": {
96
"invoice_no":null,
97
"calc_type":"account",
98
"currency":"jpy",
99
"discount_rate":0,
100
"discount_target_usage":"cloudpaywithfee",
101
"discount_calc_logic":"usageamount",
102
"tax_rate":0.10,
103
"support_fee":"fix",
104
"support_rate":0,
105
"support_fee_calc_target":"nondiscount",
106
"support_fix":0,
107
"substitution_fee":"percent",
108
"substitution_rate":0,
109
"substitution_fix":0,
110
"substitution_fee_calc_target":"nondiscount",
111
"substitution_fee_target_usage":"cloudpaywithfee",
112
"substitution_fee_calc_type":"allsum",
113
"exchange_rate":null,
114
"memo":null,
115
"additional_items": []
116
}
117
},
118
"accounts": [
119
{
120
"account_id":"012345678912",
121
"customer_id":"012345678912",
122
"customer_name":"customer1",
123
"vendor":"aws",
124
"service_discount":null
125
},
126
...
127
],
128
"create_time":"2020-12-21T11:26:55+09:00",
129
"update_time":null,
130
"total": {
131
"aws":108850,
132
"azure":0
133
},
134
"language":"ja"
135
},
136
...
137
]
138
}
Copied!
Last modified 1yr ago