Home > @poq/sdk-sfcc > ICustomersClient > getCustomersByIDPaymentInstruments
Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT.
Signature:
getCustomersByIDPaymentInstruments(customerId: string, paymentMethodId?: string, options?: RequestOptions): Promise<PoqResponse<CustomerPaymentInstrumentResult>>;
Parameter | Type | Description |
---|---|---|
customerId | string | the id of the customer to retrieve the payment instruments for |
paymentMethodId | string | (Optional) |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<CustomerPaymentInstrumentResult>>