Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

316
Visualizações
unable to update order Fulfillments Shopify-api-node

I'm trying to update an orders fulfillments[] but I'm getting

HTTPError: Response code 400 (Bad Request)

Every thing else is getting updated but not fulfillments[]

I'm using shopify-api-node package

Here's How I'm trying to update my Orders fulfillment

const fulfillments = [
    {
  "created_at": "2012-03-13T16:09:54-04:00",
  "id": 255858046,
  "order_id": orderId,
  "status": "failure",
  "tracking_company": "USPS",
  "tracking_number": "1Z2345",
  "updated_at": "2012-05-01T14:22:25-04:00"
}];

shopify.order.update(orderId, {
 id : orderId, fulfillments }).catch((err) => {
 console.log('err =====>' , err)
  });
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you're trying to create a fulfillment event you don't need to call the order api. You should check the fulfillment api. https://shopify.dev/api/admin-rest/2022-04/resources/fulfillmentevent#post-orders-order-id-fulfillments-fulfillment-id-events

You should be doing something like this

session.FulfillmentEvent().create({
    "order_id": orderId,
    "fulfillment_id": 255858046,
    "status": "in_transit"}
)

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda