Home > @poq/sdk-sfcc > IBasketsClient > patchBasketsByIDPaymentInstrumentsByID
Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}
Signature:
patchBasketsByIDPaymentInstrumentsByID(basketId: string, paymentInstrumentId: string, body: BasketPaymentInstrumentRequest, options?: RequestOptions): Promise<PoqResponse<Basket>>;
Parameter | Type | Description |
---|---|---|
basketId | string | the basket id |
paymentInstrumentId | string | the id of the payment instrument to be updated |
body | BasketPaymentInstrumentRequest | |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<Basket>>