Home > @shopware-pwa/shopware-6-client > invokePost
# invokePost() function
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