Upload Serial Number
Path: /pvds/upload_serial_number.json
Example: https://www.greendeal.com.au/rapi/v1/pvds/upload_serial_number.json
HTTP Method: POST
Request Parameter
Parameter | Type | Is Required? | Note | Example |
id | String | Yes | "GWT383595" | |
serial_number | String | Yes | "9010KDTL2xxxx" | |
photo_name | String | Yes | "serial_number_photo.png" | |
photo | String | Yes |
Base64 encoded image file Example: original string: abcde encode string: YWJjZGU= |
Request Example
{
"client_id": "23565656e63f33016ad7f4f338a6f70be78c136addbbb9c803d09756c6ee93f1",
"signature": "2dc1b977b376a2fd26bf05c1f15da59b",
"timestamp": "2019-08-02T10:31:50+11:00",
"id": "GWT383595",
"serial_number": "test_serial_code",
"photo_name": "serial_number_photo.png",
"photo": "/9j/4AAQSkZJRgABAQAAkACQAAD/4QB0RXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAA.....pGiiivsjkCiiigAooooAKKKKAP/2Q=="
}
Response Example
{
"id":xx,
"code":"test_serial_code"
}