Create Purchase Requisitions
Description
This API is used to create orders.
Method | URL |
---|---|
POST | /api/v2/bumn/order/create |
Request
Type | Params | Values | Description |
---|---|---|---|
BODY | voucher_code |
| Kode voucher |
BODY | shipping_address_id |
| ID dari alamat pengiriman milik Buyer |
BODY | payment_method |
| Metode pembayaran yang digunakan buyer. Value tersedia saat ini:
|
BODY | payment_gateway_registery |
| Registery Penyedia Payment Gateway |
BODY | payment_gateway |
| Penyedia Payment Gateway yang digunakan. Value tersedia (saat ini):
|
BODY | payment_type |
| Tipe pembayaran yang digunakan Buyer. Value tersedia:
|
BODY | items |
| Object yang berisi data items yang dibutuhkan untuk checkout |
BODY | items.seller_id |
| ID Seller yang terdaftar di PaDi |
BODY | items.shipping_insurance |
| Status produk memiliki insuransi. |
BODY | items.reference_code |
| Kode referensi |
BODY | items.shipping_type |
| Tipe pengiriman. Terisi jika kurir berasal dari integrasi dengan Biteship. |
BODY | items.courier_code |
| Kode kurir yang dipilih. Value tersedia:
|
BODY | items.courier_name |
| Kurir yang dipilih. |
BODY | items.courier_service_code |
| Nama layanan kurir yang dipilih. |
BODY | items.courier_service_name |
| Nama layanan kurir yang dipilih. |
BODY | items.project_type |
| Tipe proyek yang dipilih.Value tersedia:
|
BODY | items.received_at_latest |
| Tanggal produk diterima paling lambat |
BODY | items.products |
| Object yang berisi data produk yang dibutuhkan untuk checkout |
BODY | items.products.id |
| Kode produk yang dibeli |
BODY | items.products.quantity |
| Jumlah produk yang dibeli |
BODY | items.products.notes |
| Catatan untuk Seller |
BODY | payment_term |
| Jangka waktu pembayaran tempo. Value tersedia (dalam hari):
|
Response
Success
Status | Payload |
---|---|
200 |
|
Params | Description |
---|---|
status |
|
data |
|
data.create-order |
|
data.create-order.amount |
|
data.create-order.bank_account |
|
data.create-order.bank_name |
|
data.create-order.btp_by_buyer |
|
data.create-order.expired_at |
|
data.create-order.fee_total_monthly |
|
data.create-order.grand_total |
|
data.create-order.grand_total_before_discount |
|
data.create-order.isVoucherValid |
|
data.create-order.items |
|
data.create-order.items.charge_fee |
|
data.create-order.items.courier_code |
|
data.create-order.items.fee_total_monthly |
|
data.create-order.items.grand_total |
|
data.create-order.items.order_total |
|
data.create-order.items.pph15 |
|
data.create-order.items.pph21 |
|
data.create-order.items.pph22 |
|
data.create-order.items.pph22_klpd |
|
data.create-order.items.pph22_klpd_dpp |
|
data.create-order.items.pph22_person |
|
data.create-order.items.pph23 |
|
data.create-order.items.pph23_as_shipping_cost |
|
data.create-order.items.pph23_person |
|
data.create-order.items.pph42_1 |
|
data.create-order.items.pph42_10 |
|
data.create-order.items.pph42_2 |
|
data.create-order.items.pph42_3 |
|
data.create-order.items.pph42_4 |
|
data.create-order.items.pph42_6 |
|
data.create-order.items.pph42_final |
|
data.create-order.items.ppn |
|
data.create-order.items.ppnBy |
|
data.create-order.items.ppn_collected_by_buyer |
|
data.create-order.items.ppn_klpd_dpp |
|
data.create-order.items.price_subtotal |
|
data.create-order.items.product_ppn |
|
data.create-order.items.seller_id |
|
data.create-order.items.seller_name |
|
data.create-order.items.shipping_cost |
|
data.create-order.items.shipping_cost_before_discount |
|
data.create-order.items.shipping_cost_pph_klpd |
|
data.create-order.items.shipping_cost_ppn |
|
data.create-order.items.shipping_discount |
|
data.create-order.items.total_pph |
|
data.create-order.items.voucher_pph_23_shipping_cost |
|
data.create-order.items.voucher_ppn_collected_by_buyer |
|
data.create-order.items.voucher_shipping_cost |
|
data.create-order.items.voucher_shipping_cost_ppn |
|
data.create-order.items.voucher_total_product_price |
|
data.create-order.items.voucher_total_product_price_ppn |
|
data.create-order.mps_invoice_id |
|
data.create-order.mps_payment_id |
|
data.create-order.payment_code |
|
data.create-order.payment_gateway |
|
data.create-order.payment_gateway_registery |
|
data.create-order.payment_method |
|
data.create-order.payment_type |
|
data.create-order.pph15 |
|
data.create-order.pph21 |
|
data.create-order.pph22 |
|
data.create-order.pph22_person |
|
data.create-order.pph23 |
|
data.create-order.pph23_as_shipping_cost |
|
data.create-order.pph23_person |
|
data.create-order.pph42_1 |
|
data.create-order.pph42_10 |
|
data.create-order.pph42_2 |
|
data.create-order.pph42_3 |
|
data.create-order.pph42_4 |
|
data.create-order.pph42_6 |
|
data.create-order.pph42_final |
|
data.create-order.ppn |
|
data.create-order.ppn_collected_by_buyer |
|
data.create-order.price_subtotal |
|
data.create-order.price_subtotal_before_discount |
|
data.create-order.product_ppn |
|
data.create-order.purchase_request_number |
|
data.create-order.seller_payment_fee |
|
data.create-order.seller_payment_fee_fixed |
|
data.create-order.seller_payment_fee_percentage |
|
data.create-order.seller_trx_fee |
|
data.create-order.totalTrxFee |
|
data.create-order.transaction_id |
|
data.create-order.trxFee |
|
data.create-order.trxFeePph23 |
|
data.create-order.trxFeePpn |
|
data.create-order.trxPromo |
|
data.create-order.trxPromoType |
|
data.create-order.url |
|
data.create-order.voucherCode |
|
data.create-order.voucherDetail |
|
data.create-order.voucher_pph_23_shipping_cost |
|
data.create-order.voucher_ppn_collected_by_buyer |
|
data.create-order.voucher_shipping_cost |
|
data.create-order.voucher_shipping_cost_ppn |
|
data.create-order.voucher_total_product_price |
|
data.create-order.voucher_total_product_price_ppn |
|
data.create-order.xendit_pm_id |
|
message |
|
Error
Case | Status Code | Message |
---|---|---|
Failed to get response because bad internet | 400 | Bad Request |
Failed to set shipping cost | 400 | Failed to set shipping cost |
Failed to get data from collect bill | 400 | Failed to collect bill |
Failed to get data from calculate bill | 400 | Failed to calculate bill |
Failed to hit create order | 400 | Failed to create orders |
ERP user does not match the token obtained from the API Login | 400 | Invalid User ERP |
payment_type is not available | 400 | Payment type is not available |
payment_term is not available | 400 | Payment terms is not available |
payment_method is not available | 400 | Payment method is not available |
Invalid shipping_address_id | 404 | Address Not Found |
Transaction not found | 404 | Transaction Not Found |
Invalid product_id | 404 | Product Not Found |
Invalid courier_code | 404 | Courrier Not Found |
Courier not found | 404 | Product Detail Not Found |
Internal Server Error | 500 | Internal Server Error |