Create Order COD

Updated 13 Jun 2024

Flow COD Order

Users must put COD amount [price on which the buyers have to pay] for the order to be considered as COD. Both get price and create order must putIt varies between users, on how much amount you put as COD amount, but the only validation that we put is that the courier.cod_amount MUST be greater than data.pricings.[].final_price from get pricing


The amount of the disbursement can be access through Shipper 360 wallet, and it will be disbursed once the order reach 2000 Shipper Status.


To use COD users need to be whitelisted by Shipper team. Please inform our team regarding this point


Request Data

ParameterTypeMandatory/OptionalDescription
consigneeObjectMandatoryInformasi tentang penerima.
consignee.namestringMandatoryNama penerima.
consignee.phone_numberstringMandatoryNomor telepon penerima.
consignerObjectMandatoryInformasi tentang pengirim.
consigner.namestringMandatoryNama pengirim.
consigner.phone_numberstringMandatoryNomor telepon pengirim.
courierObjectMandatoryDetail tentang kurir yang digunakan.
courier.rate_idintegerMandatoryID tarif kurir.
courier.use_insurancebooleanMandatoryMenunjukkan apakah asuransi digunakan atau tidak.
courier.cod_amount [NEW]integerOptionalMenujukan nilai COD yang akan ditagihkan. If the users did not input the cod_amount then the order won't be considered as COD
coveragestringOptionalJenis cakupan pengiriman. Nilai yang diterima: "domestic".
destinationObjectMandatoryInformasi tentang tujuan pengiriman.
destination.addressstringMandatoryAlamat tujuan.
destination.area_idintegerMandatoryID area tujuan.
destination.directionstringMandatoryPetunjuk arah tujuan.
external_idstringOptionalID eksternal pengiriman.
originObjectMandatoryInformasi tentang asal pengiriman.
origin.addressstringMandatoryAlamat asal.
origin.area_idintegerMandatoryID area asal.
origin.directionstringMandatoryPetunjuk arah asal.
packageObjectMandatoryDetail tentang paket pengiriman.
package.heightintegerMandatoryTinggi paket dalam satuan meter.
package.itemsArrayMandatoryDaftar barang dalam paket.
package.items.idintegerMandatoryID barang.
package.items.namestringMandatoryNama barang.
package.items.priceintegerMandatoryHarga barang per unit dalam satuan mata uang.
package.items.qtyintegerMandatoryKuantitas barang.
package.lengthintegerMandatoryPanjang paket dalam satuan meter.
package.package_typeintegerMandatoryJenis paket. Nilai yang diterima: 2 (kotak).
package.priceintegerMandatoryHarga paket dalam satuan mata uang.
package.weightintegerMandatoryBerat paket dalam satuan kilogram.
package.widthintegerMandatoryLebar paket dalam satuan meter.
payment_typeintegerOptionalJenis pembayaran. Nilai yang diterima: "postpay".
service_typeintegerOptionalJenis layanan pengiriman. Nilai yang diterima: 1.

{
  "consignee": {
    "name": "Budi Consignee",
    "phone_number": "62852280038095"
  },
  "consigner": {
    "name": "Budi Consigner",
    "phone_number": "62852280038095"
  },
  "courier": {
    "cod_amount": 200000,
    "rate_id": 350,
    "use_insurance": true
  },
  "coverage": "domestic",
  "destination": {
    "address": "Jalan Kenangan",
    "area_id": 4711,
    "direction": "Dekat Masjid"
  },
  "external_id": "APIV3-0001",
  "origin": {
    "address": "Jalan Kenangan",
    "area_id": 2477,
    "direction": "Dekat Masjid"
  },
  "package": {
    "height": 1,
    "items": [
      {
        "id": 34,
        "name": "Baju Baju",
        "price": 120000,
        "qty": 12
      }
    ],
    "length": 1,
    "package_type": 2,
    "price": 200000,
    "qty": 1,
    "weight": 1,
    "width": 1
  },
  "payment_type": "postpay"
}
{
  "consignee": {
    "name": "Budi Consignee",
    "phone_number": "62852280038095"
  },
  "consigner": {
    "name": "Budi Consigner",
    "phone_number": "62852280038095"
  },
  "courier": {
    "cod_amount": 200000,
    "rate_id": 350,
    "use_insurance": true
  },
  "coverage": "domestic",
  "destination": {
    "address": "Jalan Kenangan",
    "area_id": 4711,
    "direction": "Dekat Masjid"
  },
  "external_id": "APIV3-0001",
  "origin": {
    "address": "Jalan Kenangan",
    "area_id": 2477,
    "direction": "Dekat Masjid"
  },
  "package": {
    "height": 1,
    "items": [
      {
        "id": 34,
        "name": "Baju Baju",
        "price": 120000,
        "qty": 12
      }
    ],
    "length": 1,
    "package_type": 2,
    "price": 200000,
    "qty": 1,
    "weight": 1,
    "width": 1
  },
  "payment_type": "postpay"
}


Response Data

ParameterDescription
metadataMetadata information
metadata.pathAPI endpoint path
metadata.http_status_codeHTTP status code
metadata.http_statusHTTP status
metadata.timestampTimestamp
dataAll important information about order creation placed on this param
data.coverageOrder creation type: domestic
data.order_idShipper Order ID. To be use for pickup request
data.payment_typeMerchant payment type: postpay
courierAll important information about courier (3PL) placed on this param
courier.rate_idRateID of courier
courier.amountShipment fee
courier.use_insuranceInsurance flag of the order
courier.insurance_amountInsurance fee
courier.codCash on delivery flag of the order
consigneeAll important information about consignee placed on this param
consignee.nameConsignee name (penerima)
consignee.phone_numberConsignee phone number
consignerAll important information about consigner placed on this param
consigner.nameConsigner name (pengirim)
consigner.phone_numberConsigner phone number
destinationAll important information about destination of the package placed on this param
destination.addressPackage destination address
destination.area_idArea ID of package destination
destination.area_nameArea name of package destination
destination.city_idCity ID of package destination
destination.city_nameCity name of package destination
destination.latLatitude of package destination
destination.lngLongitude of package destination
destination.postcodePostcode of package destination
destination.province_idProvince ID of package destination
destination.province_nameProvince name of package destinationa
destination.suburb_idSuburb id of package destination
destination.suburb_nameSuburb name of package destination
originAll important information about origin package placed on this param
origin.addressAddress of package origin
origin.area_idArea ID of package origin
origin.area_nameArea name of package origin
origin.city_idCity ID of package origin
origin.city_nameCity name of package origin
origin.latLatitude of package origin
origin.lngLongitude of package origin
origin.postcodePostcode of package origin
origin.province_idProvince ID of package origin
origin.province_nameProvince name of package origin
origin.suburb_idSuburb id of package origin
origin.suburb_nameSuburb name of package origin
packageAll important information about package placed on this param
package.package_typeType of package: 1) document 2) small package 3) medium package
package.weightWeight of package (kg)
package.lengthLength of package (cm)
package.widthWidth of package (cm)
package.heightHeight of package (cm)
package.pricePrice of package (IDR)
package.price.itemsArray of package items
package.price.items.idPackage item ID
package.price.items.namePackage item name
package.price.items.qtyPackage item quantity
package.price.items.pricePackage Item price
codAll important information about cod placed on this param
cod.cod_amountCOD amount of the order
cod.disburse_slaSLA of the disbursement
cod.disburse_statusStatus of the disbursement. Already disbursed to wallet or not. 1 for already disbursed and 0 for not disbursed
cod.disburse_datethe date of the disbursement
cod.disburse_amountAmount of the disbursement
cod.platform_fee_amountPlatform fee that Shipper will charged to the client
cod.cod_fee_amountCOD fee that Shipper will charged to the client
cod.orderorder eligible to make or not. 1 for eligible, 0 for not eligible


{
  "metadata": {
    "path": "/v3/order",
    "http_status_code": 201,
    "http_status": "Created",
    "timestamp": 1713455570
  },
  "data": {
    "coverage": "domestic",
    "external_id": "APIV3COD-0006",
    "order_id": "244XYRNXNKX2M",
    "payment_type": "postpay",
    "courier": {
      "rate_id": 2,
      "rate_name": "YES",
      "logistic_name": "JNE",
      "amount": 18000,
      "use_insurance": true,
      "insurance_amount": 7200,
      "cod": true,
      "is_drop_off": false
    },
    "consignee": {
      "name": "Budi Consignee",
      "email": "",
      "phone_number": "62852280038095"
    },
    "consigner": {
      "name": "Budi Consigner",
      "email": "[email protected]",
      "phone_number": "62852280038095"
    },
    "destination": {
      "address": "Jalan Kenangan",
      "area_id": 4711,
      "area_name": "Karet Kuningan",
      "city_id": 41,
      "city_name": "Jakarta Selatan",
      "country_id": 228,
      "country_name": "INDONESIA",
      "direction": "Dekat Masjid",
      "lat": "",
      "lng": "",
      "postcode": "12940",
      "province_id": 6,
      "province_name": "DKI Jakarta",
      "suburb_id": 482,
      "suburb_name": "Setia Budi",
      "email_address": "",
      "company_name": ""
    },
    "origin": {
      "address": "Jalan Kenangan",
      "area_id": 2477,
      "area_name": "Ciputat",
      "city_id": 22,
      "city_name": "Tangerang Selatan",
      "country_id": 228,
      "country_name": "INDONESIA",
      "direction": "Dekat Masjid",
      "lat": "",
      "lng": "",
      "postcode": "15411",
      "province_id": 3,
      "province_name": "Banten",
      "suburb_id": 239,
      "suburb_name": "Ciputat",
      "email_address": "",
      "company_name": ""
    },
    "package": {
      "package_type": 2,
      "weight": 1,
      "length": 1,
      "width": 1,
      "height": 1,
      "price": 1440000,
      "items": [
        {
          "id": 34,
          "name": "Baju Baju",
          "qty": 12,
          "price": 120000
        }
      "item_categories": [],
      "qty": 1
    },
    "plugin": "",
    "is_multikoli": false,
    "is_cod": true,
    "cod": {
      "cod_amount": 200000,
      "disburse_sla": "",
      "disburse_status": 0,
      "disburse_date": "",
      "disbursed_amount": 0,
      "platform_fee_amount": 1000,
      "cod_fee_amount": 6000,
      "order": 1
    }
  }
}
{
  "metadata": {
    "path": "/v3/order",
    "http_status_code": 400,
    "http_status": "Bad Request",
    "errors": [
      {
        "code": 10005,
        "message": "Invalid Input. Please Validate Your Input."
      }
    ],
    "timestamp": 1710992373
  }
}

{
  "metadata": {
    "path": "/v3/order",
    "http_status_code": 401,
    "http_status": "Unauthorized",
    "errors": [
      {
        "code": 10001,
        "message": "Unauthorized Access. You are not authorized to access this resource."
      }
    ],
    "timestamp": 1637213866
  }
}