0% found this document useful (0 votes)
289 views2 pages

Tokopedia API Review - Feedback-25Oct

The document provides recommendations for improving error responses and status mappings for various Tokopedia APIs: - Get Token: Change the error response format to include an error ID and standardized error message field. - Rate: Return a 404 error if the origin or destination area is not found, including an error ID and message. - Booking: Return a 404 error for internal errors with an error ID and message. Do not display SQL errors. - Tracking: Only display statuses mapped from the ARK system. Use the Tokopedia AWB number as the tracking key. - Cancel Booking: Cancellations can only occur before the ITEM PICKED BY COURIER status.

Uploaded by

witdya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
289 views2 pages

Tokopedia API Review - Feedback-25Oct

The document provides recommendations for improving error responses and status mappings for various Tokopedia APIs: - Get Token: Change the error response format to include an error ID and standardized error message field. - Rate: Return a 404 error if the origin or destination area is not found, including an error ID and message. - Booking: Return a 404 error for internal errors with an error ID and message. Do not display SQL errors. - Tracking: Only display statuses mapped from the ARK system. Use the Tokopedia AWB number as the tracking key. - Cancel Booking: Cancellations can only occur before the ITEM PICKED BY COURIER status.

Uploaded by

witdya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tokopedia Review

 Get Token
Ganti error format get token spt terlampir:
Current response:
HTTP Response 401
{
"status": "ERROR",
"message": "Client ID not found"
}

Expected response:
HTTP Response: 404
{
"status": "ERROR",
"error_id": 411,
"message": "Invalid secret code"
}

Tampilkan error message pada field message

 Rate
Jika area tidak ditemukan dimaster rate, tapilkan error atau district tidak ditemukan dimaster.
Current response:
HTTP Response 200
{
"origin": 2278,
"zip_origin": "13650",
"origin_name": "SAWAH BESAR, KOTA JAKARTA PUSAT",
"geoloc_origin": "-6.265526, 106.876715",
"destination": 2278,
"zip_destination": "16519",
"destination_name": "SAWAH BESAR, KOTA JAKARTA PUSAT",
"geoloc_destination": "-6.409246, 106.767069",
"weight": 1000,
"services": [ ]
}

Exprected response:
HTTP Response: 404
{
"error_id": 404,
"error_message": "No Shipping Service found on Origin: 5573, Destination: 5573, weight:1200. "
}

Jika internal error / bad request(missal, token tidak valid)


Expected response:
HTTP Response: 404
{
"error_id": 901,
"error_message": " invalid token xyz "
}
 Booking
Jika internal error (bad request), tampilkan sbb
Expected Request
HTTP Response 404
{
"error_id": 901,
"message": "error message here"
}

Mohon jangan ditampilan error sql statement, diconvert ke Bahasa user saja.

Jika order sudah ada di noah, kembalikan nomor order yang sudah existing di data

 Tracking
Mapping Status ARK – Tokopedia
Hanya status yang di list dibawah yang tampil di tracking.

Key untuk tracking adalah nomor awb tokopedia (nomor reference ARK)

 Cancel Booking
Cancel process hanya bisa dilakukan sebelum status ITEM PICKED BY COURIER.

You might also like