Skip to main content
Skip to main content

AdminPublishableApiKeyResource

admin/publishable-api-keys.AdminPublishableApiKeyResource

Methods

addSalesChannelsBatch

addSalesChannelsBatch(id, payload, customHeaders?): ResponsePromise<AdminPublishableApiKeysRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysRes>


create

create(payload, customHeaders?): ResponsePromise<AdminPublishableApiKeysRes>

Parameters

customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysRes>


delete

delete(id, customHeaders?): ResponsePromise<DeleteResponse>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<DeleteResponse>

ResponsePromiseResponsePromise<DeleteResponse>Required

deleteSalesChannelsBatch

deleteSalesChannelsBatch(id, payload, customHeaders?): ResponsePromise<AdminPublishableApiKeysRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysRes>


list

list(query?, customHeaders?): ResponsePromise<AdminPublishableApiKeysListRes>

Parameters

customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysListRes>


listSalesChannels

listSalesChannels(id, query?, customHeaders?): ResponsePromise<AdminSalesChannelsListRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminSalesChannelsListRes>


retrieve

retrieve(id, query?, customHeaders?): ResponsePromise<AdminPublishableApiKeysRes>

Parameters

idstringRequired
queryobject
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysRes>


revoke

revoke(id, customHeaders?): ResponsePromise<AdminPublishableApiKeysRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPublishableApiKeysRes>


update

update(id, payload, customHeaders?): Promise<any>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

Promise<any>

PromisePromise<any>Required
Was this section helpful?