Home > @shopware-pwa/shopware-6-client > invokePost
# invokePost() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Invoke custom POST request to shopware API. Mostly for plugins usage. You can skip domain and pass only endpoint ex. /api/my/endpoint
Signature:
export declare function invokePost({ address, payload, }: {
address: string;
payload?: any;
}, contextInstance?: ShopwareApiInstance): Promise<any>;
# Parameters
Parameter | Type | Description |
---|---|---|
{ address, payload, } | { address: string; payload?: any; } | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<any>
# Exceptions
ClientApiError