Media

Attaching media to products and organizing your shop's media has never been easier with how Yordadev's Headless e-Commerce Solution has integrated 3rd party services such as Google Drive.

Product Variant ID

For more information on the variant_id, see here:

post
Attaching Media to Product

https://yorshop.yordadev.network/v1/media
This endpoint attaches a media_id to a Product Variant.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
Form Data Parameters
variant_id
required
string
The variant_id to which you want the media on.
media_id
required
string
The media_id of the media you want to attach.
Response
200: OK

delete
Detach Media From Product

https://yorshop.yordadev.network/v1/media
This endpoint detaches a media_id from a Product Variant.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
Query Parameters
media_id
required
string
The media_id you want to detach.
variant_id
required
string
The variant_id of the product you want to remove media from.
Response
200: OK