laravel-shopify icon indicating copy to clipboard operation
laravel-shopify copied to clipboard

create a checkout with REST

Open Noido opened this issue 2 years ago • 0 comments

Hi how i can create a checkout with api

i try like that

$shop = Auth::user(); $request = $shop->api()->rest('POST', '/admin/api/2021-10/checkouts.json', [ 'checkout' => 'variant_id:{$request->variant_id},quantity:1' ]); var_dump($request);

but not work, i think something is wrong $shop is the good shop and $request->variant_id have good id so not the problem

Thanks for help

Noido avatar May 22 '22 17:05 Noido

This is an issue with your code and shopify's requirements. Please move this to the discussions tab if you want some help.

Kyon147 avatar Aug 26 '22 09:08 Kyon147