Skip to content

location/fulfillment_service_integration/rejected

Overview

PropertyValue
Webhook typelocation/fulfillment_service_integration/rejected
Kafka topiclocation.fulfillment-service-integration.rejected
DirectionPlatform → Your endpoint

Description

Fired when an external fulfillment service explicitly rejects the connection request from a HappyColis location. The integration remains in a non-active state and a new connection request may need to be initiated.

Trigger Conditions

  • The external fulfillment service denies the connection request
  • The FulfillmentServiceIntegration state transitions from PENDING to a rejected/inactive state

Message Envelope

json
{
  "header": {
    "organizationId": "org_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "messageId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "webhookId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "type": "location/fulfillment_service_integration/rejected",
    "date": "2024-06-10T11:45:00.000Z"
  },
  "body": { ... }
}

Body — Property Table

FulfillmentServiceIntegration Object

FieldTypeNullableDescription
idstring (uuid)NoUnique integration identifier
locationIdstring (uuid)NoThe location whose connection was rejected
fulfillmentServiceIdstring (uuid)NoThe fulfillment service that rejected the connection
accessTokenstringYesAlways null — no token is issued on rejection
scopesstring[]NoOriginally requested scopes
stateenumYesINACTIVE or ERROR after rejection

Full JSON Payload Sample

json
{
  "header": {
    "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "messageId": "v3w4x5y6-z7a8-9012-bcde-345678901234",
    "webhookId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "type": "location/fulfillment_service_integration/rejected",
    "date": "2024-06-10T11:45:00.000Z"
  },
  "body": {
    "id": "r9s0t1u2-v3w4-5678-xyza-901234567890",
    "locationId": "j1k2l3m4-n5o6-7890-pqrs-123456789012",
    "fulfillmentServiceId": "s0t1u2v3-w4x5-6789-yzab-012345678901",
    "accessToken": null,
    "scopes": ["fulfillment:read", "fulfillment:write", "inventory:read"],
    "state": "INACTIVE"
  }
}

Notes

  • accessToken is always null in rejected integrations — no credentials are issued.
  • After a rejection, a new integration record must be created to retry the connection.
  • Contact the fulfillment service provider to understand why the connection was rejected before retrying.

HappyColis API Documentation