Headers

  • Specify effective organization_id for Admin and Group Organization Admins. This is a global header for all endpoints only taken into consideration when it makes sense (it won't be used in Auth, for example)

Path parameters

  • id integer(int64) Required

    id

application/json

Body

Responses

  • 200 */*

    Gatepass successfully sent to the channel provider. It does not mean that the driver has received the gatepass

    Hide response attributes Show response attributes object
  • Created

  • Error while sending the gatepass to the channel provider. The message has not been sent. Eg. the driver does not have a phone number or email address

  • Unauthorized

  • Forbidden

  • Not Found

  • Unexpected server error.

POST /api/yardmovement-precheck/{id}/gatepass/send
curl \
 -X POST http://localhost:8080/api/yardmovement-precheck/{id}/gatepass/send \
 -H "Content-Type: application/json" \
 -d '{"driver":{"notification_email":"string","notification_name":"string","notification_phone":"string","notification_preference_channel":"EMAIL"}}'
Request examples
# Headers

# Payload
{
  "driver": {
    "notification_email": "string",
    "notification_name": "string",
    "notification_phone": "string",
    "notification_preference_channel": "EMAIL"
  }
}
Response examples (200)
{"current_status"=>"UNKNOWN", "delivery_id"=>"string"}