Konfirmasi Draft Order
Endpoint
POST /v1/draft_orders/:id/confirm
Anda dapat mengonfirmasi draft order ketika statusnya ready. Saat draft order
dikonfirmasi, status draft order akan diperbarui menjadi confirmed dan order baru akan dibuat. Order baru tersebut memiliki
reference_id yang sama dengan draft order, sehingga memudahkan Anda mengidentifikasi order mana yang
memenuhi draft order tersebut.
id pada response dari endpoint ini adalah id order. Anda kemudian dapat
melanjutkan alur menggunakan Order API.
API Response
{
"success": true,
"message": "Order successfully created",
"object": "order",
"id": "66eba364e2e5a64816928197",
"draft_order_id": "ef18275c-02a9-4887-a56b-f374edb96ec4",
"shipper": {
"name": "Amir",
"email": "[email protected]",
"phone": "081234567901",
"organization": "Biteship Test"
},
"origin": {
"contact_name": "John Doe",
"contact_phone": "081234567902",
"coordinate": {
"latitude": null,
"longitude": null
},
"address": "CITOS - Cilandak Town Square, Kota Jakarta Selatan, Jakarta 12430",
"note": "-",
"postal_code": 12430,
"collection_method": "pickup"
},
"destination": {
"contact_name": "Jack Doe",
"contact_phone": "081234567903",
"contact_email": "[email protected]",
"address": "Jl. Contoh No. 123",
"note": "-",
"proof_of_delivery": {
"use": false,
"fee": 0,
"note": null,
"link": null
},
"cash_on_delivery": {
"id": null,
"amount": 0,
"fee": 0,
"amount_currency": "IDR",
"fee_currency": "IDR",
"note": null,
"type": null,
"status": null,
"payment_status": "pending",
"payment_method": "cash"
},
"coordinate": {
"latitude": null,
"longitude": null
},
"postal_code": 10210
},
"stops": [],
"courier": {
"tracking_id": "66eba364e2e5a642a092819a",
"waybill_id": "000000000000",
"company": "sicepat",
"name": null,
"phone": null,
"type": "reg",
"link": "https://track.biteship.com?waybill_id=000000000000",
"insurance": {
"amount": 0,
"fee": 0,
"amount_currency": "IDR",
"fee_currency": "IDR",
"note": ""
},
"routing_code": null
},
"delivery": {
"datetime": "2024-09-19T11:07+07:00",
"note": null,
"type": "now",
"distance": null,
"distance_unit": "kilometer"
},
"reference_id": "0000000000",
"items": [
{
"name": "Black Leather Bag",
"description": "Goods",
"category": "others",
"sku": null,
"value": 30,
"quantity": 1,
"length": 1,
"width": 1,
"height": 1,
"weight": 1
}
],
"extra": [],
"currency": "IDR",
"tax_lines": [],
"price": 11500,
"metadata": null,
"note": null,
"status": "confirmed"
}