Project

General

Profile

Actions

Bug #1533

closed

Buat handle error duplicate entry api booking tokopedia

Added by Samsul Fauzi 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
05/15/2024
Due date:
05/15/2024
% Done:

100%

Estimated time:
4:00 h
Spent time:
Platform:
SWB - Sistem Wahana Baru
User:
SP:
Sprint:

Description

1. tambah handle try catch pada fungsi insert ke db
2. cek jika dapat error kode 1062 => Duplicate entry, maka kirim respone code sukses 200 dengan data yang dibutuhkan tokopedia

// contoh respone api booking
{
  "code": 0,
  "data": {
    "awb": "YHC333MF",
    "branch_code": "6AB-191-S75-125-S70-128-G08-169-PHW" 
  },
  "detail": {
    "booking": "TWHN-000005WDECZ" 
  },
  "message": "successfull",
  "status": "success" 
}

Actions #1

Updated by Redmine Admin 12 months ago

  • Status changed from New to In Progress
Actions #2

Updated by Redmine Admin 12 months ago

  • Status changed from In Progress to Ready for Deployment
Actions #3

Updated by Redmine Admin 12 months ago

  • % Done changed from 0 to 100
Actions #4

Updated by Redmine Admin 12 months ago

  • Project changed from 36 to Sales & Marketing
Actions #5

Updated by Samsul Fauzi 12 months ago

  • Status changed from Ready for Deployment to Resolved
Actions #6

Updated by Samsul Fauzi 12 months ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Redmine Admin 11 months ago

  • Sprint set to Sprint 10
Actions

Also available in: Atom PDF