Pular para o conteúdo

FindMyPack - Order

Eventos da família order.* na integração FindMyPack.

Eventos Disponíveis

  • order.canceled
  • order.customs_inspection_completed
  • order.delayed
  • order.delivered
  • order.failed
  • order.fulfilled
  • order.in_destination_analysis
  • order.in_transit
  • order.lost
  • order.misplaced
  • order.not_delivered
  • order.object_destroyed
  • order.out_for_delivery
  • order.out_for_delivery_to_sender
  • order.refused
  • order.returned
  • order.stopped_in_inspection
  • order.withdrawal_available

Estrutura do Payload

{
"customer": {
"id": null,
"name": "João Silva",
"email": "[email protected]",
"document": null,
"phone_numbers": [
{
"formatted_phone": "+5511999999999",
"type": null,
"raw_number": "5511999999999",
"area_code": null,
"international_dialing_code": null
}
],
"address": null
},
"shipping": {
"carrier": "Correios",
"total_value": null,
"tracking_url": null,
"tracking_code": "ABC123456789",
"method": "PAC",
"delivery_address": {
"street": null,
"number": null,
"complement": null,
"neighborhood": null,
"city": null,
"state": null,
"country": null,
"postal_code": null
},
"estimated_delivery_date": 1705481000,
"estimated_delivery_time_in_days": null,
"status": "in_transit",
"raw_status": "1"
}
}

Componentes do Payload

Customer

CampoTipoDescrição
idnullSempre null
namestring | nullNome do destinatário
emailstring | nullE-mail do destinatário
documentnullSempre null
phone_numbersPhone[] | nullColeção de telefones do destinatário
addressnullSempre null (FindMyPack não fornece endereço)

Phone

Telefone do destinatário.

CampoTipoDescrição
formatted_phonestring | nullTelefone formatado
typenullSempre null
raw_numberstring | nullNúmero bruto
area_codenullSempre null
international_dialing_codenullSempre null

Shipping

CampoTipoDescrição
carrierstring | nullNome da transportadora
total_valuenullSempre null
tracking_urlnullSempre null
tracking_codestring | nullCódigo de rastreamento
methodstring | nullNome do serviço de envio
delivery_address[Address]Endereço de entrega (vazio)
estimated_delivery_dateinteger | nullTimestamp da previsão de entrega
estimated_delivery_time_in_daysnullSempre null
statusstring | nullStatus normalizado do envio
raw_statusstring | nullStatus original do provider

Status Normalizados (ShippingStatus)

A FindMyPack retorna os seguintes valores normalizados para o status do envio:

ValorDescrição
deliveredObjeto entregue
out_for_deliveryObjeto saiu para entrega
delayedObjeto atrasado
fulfilledObjeto postado/fulfillment completo
in_transitObjeto em trânsito
stopped_in_inspectionObjeto parado em inspeção
in_destination_analysisEm análise de destino
customs_inspection_completedInspeção aduaneira concluída
withdrawal_availableObjeto disponível para retirada
returnedObjeto devolvido
refusedObjeto recusado
object_destroyedObjeto destruído
lostObjeto perdido
misplacedObjeto extraviado
canceledObjeto cancelado
not_deliveredObjeto não entregue
failedObjeto com falha

Address

CampoTipoDescrição
streetnullSempre null
numbernullSempre null
complementnullSempre null
neighborhoodnullSempre null
citynullSempre null
statenullSempre null
countrynullSempre null
postal_codenullSempre null

[!NOTE] A FindMyPack não fornece informações detalhadas de endereço.


Voltar para visão geral da integração