From 1d05bc9c662b01e804b12ab6049cf707a43d4285 Mon Sep 17 00:00:00 2001 From: Tareq Mahmood Date: Mon, 13 Feb 2023 09:51:33 +0600 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 308b408..628f035 100644 --- a/README.md +++ b/README.md @@ -515,6 +515,26 @@ The custom methods are specific to some resources which may not be available for - User -> - [current()](https://help.shopify.com/api/reference/user#current) Get the current logged-in user + +### FulfillmentRequest Resource - including actions +- Mapped FulfillmentOrder->FulfillmentRequest +- Mapped Order(id)->FulfillmentOrder + +``` +// Requesting the FulfilmentOrder for a given order +$fo = $client->Order("1234567890")->FulfillmentOrder()->get(); + +// Creating a FulfilmentRequest +// Follow instructions to get partial fulfilments +$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->post([]); + +// Accepting \ Rejecting a FulfilmentRequest +$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->accept(); +$fr = $client->FulfillmentOrder('0987654321')->FulfillmentRequest->reject(); + +// Communicating fulfillment +$client->Fulfillment->post($body) +``` ### Shopify API features headers To send `X-Shopify-Api-Features` headers while using the SDK, you can use the following: