Skip to content

rest

Auto Added by WPeMatico

REST on barebones Magento Server – Creating a product doesn’t show ANY Price–even the base one

I have a docker instance of magento running. I’m using the latest image. Here’s the post request to create a product: curl –request POST –url http://localhost/rest/V1/products –header ‘Authorization: Bearer <token>’ –header ‘Content-Type: application/json’ –data ‘{ “product”: { “sku”: “pain_and_anguish”, “name”:… Read More »REST on barebones Magento Server – Creating a product doesn’t show ANY Price–even the base one

Magento2.4.4 Place order using stripe payment method through REST API

From stripe sdk I am able to create payment id successfully but when call api to create order in magento2 then getting authentication error. I am calling below API http://localhost/xxx/rest/default/V1/carts/mine/payment-information with below body { “paymentMethod”: { “method”: “stripe_payments”, “additional_data”: {… Read More »Magento2.4.4 Place order using stripe payment method through REST API

REST api & sourceId

There are many REST endpoints that require passing a sourceId parameter. Where do I get the value for sourceId? https://magento.redoc.ly/2.4.5-admin/tag/inventorysources#operation/GetV1InventorySources GET https://mymagentodomain.com/rest/V1/inventory/sources returns { “items”: [ { “source_code”: “default”, “name”: “Default Source”, “enabled”: true, “description”: “Default Source”, “latitude”: 0, “longitude”:… Read More »REST api & sourceId