accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | google.cloudcommerceprocurement.accounts |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the account. Account names have the form accounts/{account_id} . |
approvals | array | Output only. The approvals for this account. These approvals are used to track actions that are permitted or have been completed by a customer within the context of the provider. This might include a sign up flow or a provisioning step, for example, that the provider can admit to having happened. |
createTime | string | Output only. The creation timestamp. |
inputProperties | object | Output only. The custom properties that were collected from the user to create this account. |
provider | string | Output only. The identifier of the service provider that this account was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform. |
state | string | Output only. The state of the account. This is used to decide whether the customer is in good standing with the provider and is able to make purchases. An account might not be able to make a purchase if the billing account is suspended, for example. |
updateTime | string | Output only. The last update timestamp. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountsId, providersId | Gets a requested Account resource. |
list | SELECT | providersId | Lists Accounts that the provider has access to. |
approve | EXEC | accountsId, providersId | Grants an approval on an Account. |
reject | EXEC | accountsId, providersId | Rejects an approval on an Account. |
reset | EXEC | accountsId, providersId | Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts. |
SELECT
examples
Lists Accounts that the provider has access to.
SELECT
name,
approvals,
createTime,
inputProperties,
provider,
state,
updateTime
FROM google.cloudcommerceprocurement.accounts
WHERE providersId = '{{ providersId }}';