API Reference / BillingService
BillingService
Billing, invoicing, and payment methods for ad accounts.
Placeholder
SetupPaymentMethod
Request
| Field | Type | Validation | Description |
|---|---|---|---|
| payment_configuration_id | string | min_len: 1 |
Response
| Field | Type | Description |
|---|---|---|
| client_secret | string |
GetCardInfo
Request
| Field | Type | Validation | Description |
|---|---|---|---|
| payment_configuration_id | string | min_len: 1 |
Response
| Field | Type | Description |
|---|---|---|
| cards | CardInfo[] |
GetPaymentConfigByAccountID
Request
| Field | Type | Validation | Description |
|---|---|---|---|
| account_id | string | min_len: 1 |
Response
| Field | Type | Description |
|---|---|---|
| payment_configuration_id | string |
SetPrimaryCard
Request
| Field | Type | Validation | Description |
|---|---|---|---|
| payment_configuration_id | string | min_len: 1 | |
| payment_method_id | string | min_len: 1 |
Messages
CardInfo
| Field | Type | Description |
|---|---|---|
| payment_method_id | string | |
| brand | string | |
| last4 | string | |
| exp_month | int64 | |
| exp_year | int64 | |
| name | string | |
| primary | bool |