Async API for external Offer events using AWS SNS as a broker.
Generally, subscriptions are expected to be https endpoints.
In such cases, the messages described in this document will be
stringified json data within the Message
of the payload.
For more information see https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.prepare.html
Sandbox server
Server environment
Server region
Subscribe demand participants to outbox form submission events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a form submission received
{
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"event_name": "FormSubmissionSupplyApproved",
"event_source": "alayamarket.forms",
"form_submission_id": "1e258e66-9f8a-4dc7-bb55-8e9f6565bb4f",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
"visit_id": "4fa595bd-6c49-4a9e-9507-63e9ca0eb0fc",
"timestamp": "string"
}
Subscribe demand participants to outbox message events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a message received
{
"event_source": "alayamarket.messages",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
"sender": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"category": "client_attachment",
"offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"sequence_id": "7cd84c09-94f4-486c-9c49-de3b9cf3f74f",
"file": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"event_name": "MessageSupplySent"
}
Subscribe demand participants to outbox offer events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a change to the offer state
{
"event_source": "alayamarket.offers",
"event_name": "OfferAccepted",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf"
}
Subscribe demand participants to outbox referral events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a change to the referral state
{
"event_source": "alayamarket.referrals",
"event_name": "ReferralCreated",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"sequence_id": "7cd84c09-94f4-486c-9c49-de3b9cf3f74f",
"client": {
"outbox_id": "string",
"id": "string"
},
"demand": {
"name": "string",
"host": "https://org.alayacare.com",
"source": "string"
},
"supply": {
"name": "string",
"host": "https://org.alayacare.com",
"source": "string"
}
}
Subscribe demand participants to outbox visit events published by the service. This is only supported for offers of type 'service'.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a change to the visit state
{
"event_source": "alayamarket.visits",
"event_name": "VisitSupplyAssigned",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"visit_id": "4fa595bd-6c49-4a9e-9507-63e9ca0eb0fc",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"start_at": "2019-08-24T14:15:22Z",
"end_at": "2019-08-24T14:15:22Z",
"service": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"outbox_id": "string"
}
}
Subscribe demand participants to outbox visit task events published by the service. This is only supported for offers of type 'visit'.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a change to one (or more) visit task state
{
"event_source": "alayamarket.visit_tasks",
"event_name": "VisitTasksCompleted",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"visit_id": "4fa595bd-6c49-4a9e-9507-63e9ca0eb0fc",
"visit_outbox_id": "string",
"tasks": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"outbox_id": "string",
"is_completed": true,
"completed_at": "2019-08-24T14:15:22Z",
"completion_comment": "string"
}
]
}
Subscribe demand participants to outbox work session events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant demand participants about a change to the work session state
{
"event_source": "alayamarket.work_sessions",
"event_name": "WorkSessionStarted",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"work_session_id": "08cb1cb1-019b-430e-aa31-8ad0ffffc240",
"visit_id": "4fa595bd-6c49-4a9e-9507-63e9ca0eb0fc",
"visit_outbox_id": "a6345b98-ef7a-458e-851d-64d42fbd891a",
"start_at": "2019-08-24T14:15:22Z",
"start_latitude": 0,
"start_longitude": 0,
"end_at": "2019-08-24T14:15:22Z",
"end_latitude": 0,
"end_longitude": 0
}
Subscribe supply participants to inbox form events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant supply participants about a new version of a form published
{
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"event_name": "FormTemplateDemandPublished",
"event_source": "alayamarket.form_templates",
"demand_persona_id": "498beaf5-05c3-4679-be4c-109db1b986e2",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"schema_id": "9c37f32d-8308-4815-9b0d-83fa3c1b25f9",
"timestamp": "string"
}
Subscribe supply participants to inbox message events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant supply participants about a message received
{
"event_source": "alayamarket.messages",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
"sender": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"category": "client_attachment",
"offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"sequence_id": "7cd84c09-94f4-486c-9c49-de3b9cf3f74f",
"file": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"event_name": "MessageDemandSent"
}
Subscribe supply participants to inbox offer events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant supply participants about a change to the offer state
{
"event_source": "alayamarket.offers",
"event_name": "OfferMatched",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf"
}
Subscribe supply participants to inbox referral events published by the service.
Available only on servers:
Accepts the following message:
Inform relevant supply participants about a change to the referral state
{
"event_source": "alayamarket.referrals",
"event_name": "ReferralCreated",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
"timestamp": "string",
"referral_id": "2d946960-d63d-4137-b67f-4dc8d4a3067c",
"sequence_id": "7cd84c09-94f4-486c-9c49-de3b9cf3f74f",
"client": {
"outbox_id": "string",
"id": "string"
},
"demand": {
"name": "string",
"host": "https://org.alayacare.com",
"source": "string"
},
"supply": {
"name": "string",
"host": "https://org.alayacare.com",
"source": "string"
}
}
Inform relevant demand participants about a form submission received
Inform relevant demand participants about a message received
Inform relevant demand participants about a change to the offer state
Inform relevant demand participants about a change to the referral state
Inform relevant demand participants about a change to the visit state
Inform relevant demand participants about a change to one (or more) visit task state
Inform relevant demand participants about a change to the work session state
Inform relevant supply participants about a new version of a form published
Inform relevant supply participants about a message received
Inform relevant supply participants about a change to the offer state
Inform relevant supply participants about a change to the referral state