Magento version: EE 2.2.5

I have a customer with store credit.

I created cart using

rest/default/V1/customers/:customerId/carts

And I added items to that cart using

rest/default/V1/carts/:cartId/items

And added shipping information using

rest/default/V1/carts/:cartId/shipping-information

But i need to apply store credit for this order using API.

  • How that can be done?
  • which API I have to hit ?
  • Or is there something i have to add in request body?
有帮助吗?

解决方案

Customer balance(store credit) operations

rest/V1/carts/mine/balance/apply
  • method - POST
许可以下: CC-BY-SA归因
scroll top