Loading

Delete Customer Payment Instruments using OCAPI API calls on a B2C Commerce realm

公開日: Dec 19, 2023
説明
Environment : Any PIG or SIG instance

This article describes the steps that are to be taken to delete the payment instruments from the customer profiles on a B2C Commerce realm using OCAPI.
解決策
The steps below can be utilized to remove customer payment instruments:
  1. First use DATA API GET /customer_lists/{list_id}/customers/{customer_no} to get the customer ID of the customer who you want to delete payment instruments for.
  2. Once you have the customer ID, use that to make the SHOP API GET /customers/{customer_id}/payment_instruments to get the list of customer payment instruments and also fetch the payment instrument ID from the response to be utilized in the next step.
  3. Trigger the DELETE /customers/{customer_id}/payment_instruments/{payment_instrument_id} to remove the respective payment instrument from the customer's profile.
  4. Lastly, use the GET /customers/{customer_id}/payment_instruments to validate if that payment instrument has been deleted successfully.

Note: Another way to confirm if the payment instrument has been deleted from the customer's profile is to use the "Login on Behalf" functionality within Customer Service Center and validate that the deleted payment instrument is no longer available when checking their saved payment methods.
ナレッジ記事番号

000396425

 
読み込み中
Salesforce Help | Article