Show Delivery With Safe Place Photo
The photo will be provided only if the currier took a photo at the time of delivering the package when the currier left the package by the door or in another agreed safe place.
The indication of the photo's availability can be found under the "verification" object in the response of Show Delivery, Show Bundle, and in Delivery Webhooks Events.
If the "verification" object contains: "safe_place_photo_provided": true , it means the photo is available.
For enabling this option, please contact our account manager.
Resource
GET /v1/delivery/deliveries/:delivery_id/safe_place_photo
Authorization
OAuth 2.0 bearer token with Delivery scope.
Query Paramaters
Name | Type | Description |
---|---|---|
business_id | string | Unique identifier representing a Business. |
Path Parameters
Name | Type | Description |
---|---|---|
delivery_id | string | Delivery id received when creating a new delivery |
Response body
{
"photo": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAGTAS4DASIAAhEBAxEB/8QAHwAAAQQCAwEBAAAAAAAAAAAABQMEBgcCCAABCQoL/8QAOxAAAgICAQQBAwQBBAIABAUFAQIDEQQSIQUGEyIABzEyCBQjQUIJFTNRJFIWQ2GBFyU0U2IncXKCof/EABwBAAICAwEEklRT66hmVbjqRwdg0YukAuIJWxOWZ6D7+UTymSEgMAwAAAAFqAAW4ertAbIkSNFQKSY42ihOqLI8kC6PW0RRzEpFeErv6zS3kEfI/JM8RDqN3D6hoo0BhSNWVoQjQ66MSGJZSyHZghX7m51YACSELLZZA8hZIQIy7BlkXZTS6QjSBoyQFZQ6mQNOKrQJSKxeVmjI2U6DxSIFW40IqK0TJsSUp2DqeNGzHeMh1jjfdp0EpktwpFMQYwjGVdwAVRoyuqiaVdH6tjzEQkKqMVkg8JWNp3Oxkk0ClfU2nD62GJ9wqILPltWhBG6XBqOVbZjSrGJULLir5j0yyt6ax7BfpZ+qEnW+iL2n1TJY5mCsL46gojFmAYbLEjBFaIM3tyzSqsjsaVtwWKGyLs6lSzF2pS9A+ysqgqVF2SqbKWIseGn0q78n7S7pwOo48jr+3kx48sBZHtZGDI7+hKuZCJEiJABd3jQGl+ex/+LBLQqWSCpiQzM3/Ix//9k="
}
Notes
The value of the key 'photo' is coded by base64 jpeg.
Decode base64 jpeg is needed in order to see the photo.
Sandbox
Resource:
GET /v1/delivery_sandbox/deliveries/:delivery_id/safe_place_photo?business_id={{company_id}}
More info can be found here
Note: If delivery_id parameter equals '1', a fake delivery payload will be returned
Updated almost 3 years ago