Error Codes
Below are the list of Draft Order error codes. You can use the 'Code' column and customize based on your platform.
Method | Endpoint | Code | Message |
---|---|---|---|
DELETE | /v1/draft_orders/:id | 42211006 | Draft order with 'id=$DRAFT_ORDER_ID' has been confirmed. |
GET | /v1/draft_orders/:id | 40411007 | Draft order with 'id=$DRAFT_ORDER_ID' is not found. |
GET | /v1/draft_orders/:id/rates | 40011001 | Bad request. |
GET | /v1/draft_orders/:id/rates | 40411007 | Draft order with 'id=$DRAFT_ORDER_ID' is not found. |
GET | /v1/draft_orders/:id/rates | 42211006 | Draft order with 'id=$DRAFT_ORDER_ID' has been confirmed. |
POST | /v1/draft_orders | 40011001 | Bad request. |
POST | /v1/draft_orders | 42211009 | Invoice with 'number=$INVOICE_NUMBER' has been paid. |
POST | /v1/draft_orders | 42211010 | '$CASH_ON_DELIVERY_TYPE' is not a valid cash on delivery type. |
POST | /v1/draft_orders | 42211011 | Cash on delivery amount cannot exceed Rp 15.000.000,- |
POST | /v1/draft_orders | 42211012 | Cash on delivery for '$COURIER_COMPANY' is not available for this account. |
POST | /v1/draft_orders | 42211013 | Postal code '$POSTAL_CODE' is not registered. |
POST | /v1/draft_orders | 42211015 | Reference ID '${reference_id}' is already taken. |
POST | /v1/draft_orders/:id | 40011001 | Bad request. |
POST | /v1/draft_orders/:id | 40411007 | Draft order with 'id=$DRAFT_ORDER_ID' is not found. |
POST | /v1/draft_orders/:id | 42211006 | Draft order with 'id=$DRAFT_ORDER_ID' has been confirmed. |
POST | /v1/draft_orders/:id | 42211009 | Invoice with 'number=$INVOICE_NUMBER' has been paid. |
POST | /v1/draft_orders/:id | 42211010 | '$CASH_ON_DELIVERY_TYPE' is not a valid cash on delivery type. |
POST | /v1/draft_orders/:id | 42211011 | Cash on delivery amount cannot exceed Rp 15.000.000,- |
POST | /v1/draft_orders/:id | 42211012 | Cash on delivery for '$COURIER_COMPANY' is not available for this account. |
POST | /v1/draft_orders/:id | 42211013 | Postal code '$POSTAL_CODE' is not registered. |
POST | /v1/draft_orders/:id/confirm | 40011001 | Bad request. |
POST | /v1/draft_orders/:id/confirm | 40411007 | Draft order with 'id=$DRAFT_ORDER_ID' is not found. |
POST | /v1/draft_orders/:id/confirm | 42211008 | Draft order with 'id=$DRAFT_ORDER_ID' is not ready to be confirmed for it is on $DRAFT_ORDER_STATUS status. |