Skip to main content

accounts

Creates, updates, deletes, gets or lists a accounts resource.

Overview

Nameaccounts
TypeResource
Idgoogle.cloudcommerceprocurement.accounts

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the account. Account names have the form accounts/{account_id}.
approvalsarrayOutput 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.
createTimestringOutput only. The creation timestamp.
inputPropertiesobjectOutput only. The custom properties that were collected from the user to create this account.
providerstringOutput 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.
statestringOutput 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.
updateTimestringOutput only. The last update timestamp.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountsId, providersIdGets a requested Account resource.
listSELECTprovidersIdLists Accounts that the provider has access to.
approveEXECaccountsId, providersIdGrants an approval on an Account.
rejectEXECaccountsId, providersIdRejects an approval on an Account.
resetEXECaccountsId, providersIdResets 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 }}';