{"errors":{"fulfillment":"Required parameter missing or invalid"}}

New Member
9 0 0

Hi,

 

Trying to fulfill an order using Rest API. below payload taken from my application log.

using: POST/admin/api/2019-10/orders/#{order_id}/fulfillments.json

 

URL: https://the-XXX-company.myshopify.com/admin/api/2019-10/orders/1855261147251/fulfillments.json

 

Req payload: 

<fulfillment>

    <location_id>42142659</location_id>

    <tracking_number>1Z4743410365580XXX</tracking_number>        <tracking_urls>http://XXX.com/etracking/tracking.cgi? InquiryNumber1=1Z4743410365580XXX&amp;TypeOfInquiryNumber=T&amp;AcceptXXXXLicenseAgreement=yes&amp;submit=Track</tracking_urls>

   <notify_customer>false</notify_customer>

</fulfillment>

 

Res Payload:

<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">

       <part name="summary">

            <summary>Bad Request</summary>

       </part>

       <part name="code">

           <code>400</code>

        </part>

        <part name="detail">

            <detail>{"errors":{"fulfillment":"Required parameter missing or invalid"}}</detail>

        </part>

   </bindingFault>

 

i have followed word to word in api reference guide. Please help.

 

Thanks.

 

0 Likes
Highlighted
Excursionist
21 2 6

@Lakshmana wrote:

Hi,

 

Trying to fulfill an order using Rest API. below payload taken from my application log.

using: POST/admin/api/2019-10/orders/#{order_id}/fulfillments.json

 

URL: https://the-XXX-company.myshopify.com/admin/api/2019-10/orders/1855261147251/fulfillments.json

 

Req payload: 

<fulfillment>

    <location_id>42142659</location_id>

    <tracking_number>1Z4743410365580XXX</tracking_number>        <tracking_urls>http://XXX.com/etracking/tracking.cgi? InquiryNumber1=1Z4743410365580XXX&amp;TypeOfInquiryNumber=T&amp;AcceptXXXXLicenseAgreement=yes&amp;submit=Track</tracking_urls>

   <notify_customer>false</notify_customer>

</fulfillment>

 

Res Payload:

<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">

       <part name="summary">

            <summary>Bad Request</summary>

       </part>

       <part name="code">

           <code>400</code>

        </part>

        <part name="detail">

            <detail>{"errors":{"fulfillment":"Required parameter missing or invalid"}}</detail>

        </part>

   </bindingFault>

 

i have followed word to word in api reference guide. Please help.

 

Thanks.

 


Hi @Lakshmana ,

 

I wonder why your payload is in XML format. According to the documentation, it should be in Json format.

1 Like
Highlighted
New Member
9 0 0

Hi homiebe,

I am using Oracle middleware's rest adapter to fulfill an order. it does the transformation from JSON to XML and vice versa.

 

Thanks.

0 Likes
Highlighted
Excursionist
21 2 6

@Lakshmana wrote:

Hi homiebe,

I am using Oracle middleware's rest adapter to fulfill an order. it does the transformation from JSON to XML and vice versa.

 

Thanks.


I see. I don't know if the translation is correct, or perhap your original request is wrong. Is there any way to capture the Json format that is submited to Shopify from your Oracle middleware?

 

By the way, trackingurls should be an array. I don't know how can it be translated to XML. Even if you have only 1 tracking url, you still need to put it in an array format (what is the equivalent in XML?)

 "fulfillment": {
    "location_id": 905684977,
    "tracking_number": "123456789",
    "tracking_urls": [
      "https://shipping.xyz/track.php?num=123456789",
      "https://anothershipper.corp/track.php?code=abc"
    ],
    "notify_customer": true
  }

 

0 Likes
Highlighted
New Member
9 0 0

I have tried fulfillment with-out tracking numbers, still got the same error. 

 

Request:

<fulfillment>
<location_id>42142659</location_id>
<tracking_number>1Z4743XXX363126810</tracking_number>
<tracking_company>UPS</tracking_company>
<notify_customer>false</notify_customer>
</fulfillment>

 

Response:

<t0:errors>
<t0:fulfillment>Required parameter missing or invalid</t0:fulfillment>
</t0:errors>

 

Thanks.

0 Likes