Parameters for canceling the order
Parameters for canceling an order
The reason seller want to cancel this order. Applicable values: OUT_OF_STOCK, UNDELIVERABLE_AREA(only apply for TW and MY)
Optionalitem_list?: CancelOrderItem[]Required when cancel_reason is OUT_OF_STOCK
Shopee's unique identifier for an order
Optionalpartial_cancel_item_list?: CancelOrderPartialCancelItem[]The list of item models and quantities that the seller wants to partially cancel
Promise
Download FBS invoices
This API allows you to download FBS invoices. To use this API, the client must first call v2.order.generate_fbs_invoices to create a new shipping document task, followed by calling v2.order.get_fbs_invoices_result to check the task status. The document can only be downloaded once the task status is "READY."
The parameters for downloading FBS invoices
Parameters for downloading FBS invoices
Optionalrequest_id_list?: FbsInvoicesRequestIdListList of request id (task identifiers)
A promise that resolves to the download FBS invoices response containing:
Download invoice document
This endpoint only for PH and BR local seller. Seller can download the invoice uploaded before through this endpoint.
The parameters for downloading invoice document
Parameters for downloading invoice document
Shopee's unique identifier for an order
A promise that resolves to the download invoice document response containing:
Generate FBS invoices
This API creates a task to download a specific tax document (e.g., sales invoice, remessa invoice) for the seller's account, available only after the document is issued by the system as part of the Fulfilled by Shopee (FBS) process. The workflow is as follows: (1) v2.order.generate_fbs_invoices; (2) v2.order.get_fbs_invoices_result; (3) v2.order.download_fbs_invoices. Please note: The download link for the document will expire 30 minutes after being generated.
The parameters for generating FBS invoices
Parameters for generating FBS invoices
Optionalbatch_download?: FbsBatchDownloadBatch download parameters
A promise that resolves to the generate FBS invoices response containing:
Get booking detail
Use this API to get booking detail.
The parameters for getting booking detail
Parameters for getting booking detail
The set of booking_sn. If there are multiple booking_sn, you need to use English comma to connect them. limit [1,50]
Optionalresponse_optional_fields?: stringOptional fields in response
A promise that resolves to the booking detail response containing:
Get booking list
Use this API to search bookings. You may also filter them by status, if needed.
The parameters for getting booking list
Parameters for getting booking list
Optionalbooking_status?: stringThe booking_status filter for retrieving bookings. Available value: READY_TO_SHIP/PROCESSED/SHIPPED/CANCELLED/MATCHED
Optionalcursor?: stringSpecifies the starting entry of data to return in the current call
Maximum number of entries to return in a single page (between 1 and 100)
The starting date range for retrieving bookings. The maximum date range is 15 days
The kind of time_from and time_to. Available value: create_time, update_time
The ending date range for retrieving bookings. The maximum date range is 15 days
A promise that resolves to the booking list response containing:
Get buyer invoice information for orders
Use this API to obtain buyer submitted invoice info for VN, TH and PH local sellers only.
The parameters for getting buyer invoice info
Parameters for getting buyer invoice info
List of order queries
A promise that resolves to the invoice info response containing:
Returns the estimated refund value for a partial order cancellation given the specified items to cancel.
Parameters for getting the estimated cancel value
Promise
Get FBS invoices result
This API allows you to consult the status of a previously requested batch download for FBS tax documents.
The parameters for getting FBS invoices result
Parameters for getting FBS invoices result
List of request id to be queried
A promise that resolves to the get FBS invoices result response containing:
Use this api to search orders. You may also filter them by status, if needed.
The parameters for getting order list
Parameters for getting order list
Optionalcursor?: stringSpecifies the starting entry of data to return in the current call
Optionallogistics_channel_id?: numberThe identity of logistic channel. Valid only for BR
Optionalorder_status?: OrderStatusThe order status filter for retrieving orders
The maximum number of entries to return in a single page (between 1 and 100)
Optionalrequest_order_status_pending?: booleanCompatible parameter during migration period, send True will let API support PENDING status
Optionalresponse_optional_fields?: stringOptional fields in response. Available value: order_status
The starting date range for retrieving orders. The maximum date range is 15 days
The kind of time_from and time_to. Available value: create_time, update_time
The ending date range for retrieving orders. The maximum date range is 15 days
Promise
Use this api to get order detail.
The parameters for getting order details
Parameters for getting order details
The set of order_sn. If there are multiple order_sn, you need to use English comma to connect them. limit [1,50]
Optionalrequest_order_status_pending?: booleanCompatible parameter during migration period, send True will let API support PENDING status and return pending_terms, send False or don't send will fallback to old logic
Optionalresponse_optional_fields?: stringA response fields you want to get. Please select from the below response parameters. If you input an object field, all the params under it will be included automatically in the response. If there are multiple response fields you want to get, you need to use English comma to connect them.
Promise
Get package detail
Use this API to get package detail.
The parameters for getting package detail
Parameters for getting package detail
The set of package_number. If there are multiple package_number, you need to use English comma to connect them. limit [1,50]
A promise that resolves to the package detail response containing:
Get pending buyer invoice order list
This endpoint only for PH and BR local sellers only. This API is used for seller to retrieve a list of order IDs that are pending invoice upload.
The parameters for getting pending buyer invoice order list
Parameters for getting pending buyer invoice order list
Optionalcursor?: stringSpecifies the starting entry of data to return in the current call
Maximum number of entries to return in a single page (between 1 and 100)
A promise that resolves to the pending buyer invoice order list response containing:
Use this api to get order list which order_status is READY_TO_SHIP to start process the whole shipping progress.
The parameters for getting shipment list
Parameters for getting shipment list
Optionalcursor?: stringSpecifies the starting entry of data to return in the current call. Default is "". If data is more than one page, the offset can be some entry to start next call
Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call). This integer value is used to specify the maximum number of entries to return in a single "page" of data. The limit of page_size if between 1 and 100
Promise
Get warehouse filter config
For multi-warehouse shops, return all warehouses with packages that have not been SHIPPED including product_location_id and address_id.
A promise that resolves to the warehouse filter config response containing:
Handle buyer's cancellation application
Use this API to handle buyer's cancellation application.
The parameters for handling buyer cancellation
Parameters for handling buyer cancellation
The operation you want to handle. Available value: ACCEPT, REJECT
Shopee's unique identifier for an order
A promise that resolves to the handle buyer cancellation response
Handle prescription check
Use this API to approve or reject a prescription.
The parameters for handling prescription check
Parameters for handling prescription check
Optionalfree_text?: stringFree text remarks
Optionalis_approved?: booleanIndicate whether the prescription is approved or not
Optionalitems?: { item_id?: number; model_id?: number; prescription_status?: number }[]Prescription check items
The operation you want to handle. Available value: APPROVE, REJECT
Optionalorder_sn?: stringShopee's unique identifier for an order
Shopee's unique identifier for the package under an order
Optionalpharmacist_name?: stringName of the pharmacist
Optionalreject_reason?: stringThe reason for rejection. Required when operation is REJECT
Optionalreject_reason_code?: numberReject reason code
A promise that resolves to the handle prescription check response
Search package list
Use this API to search the list of packages that have not been SHIPPED to proceed arranging shipment, and it supports various filters and sort fields.
The parameters for searching package list
Parameters for searching package list
Optionalfilter?: SearchPackageListFilterFilter options
Pagination options
Optionalsort?: SearchPackageListSortSort options
A promise that resolves to the search package list response containing:
Set note for an order
Use this API to set note for an order.
The parameters for setting note
Parameters for setting a note on an order
The note seller add for reference
Shopee's unique identifier for an order
A promise that resolves to the set note response
Split an order into multiple packages
Parameters for splitting the order
Parameters for splitting an order
Shopee's unique identifier for an order
The list of packages that you want to split
Promise resolving to the split order response
Use this api to unsplit an order that has been split into multiple packages.
Parameters for unsplitting the order
Parameters for unsplitting an order
Shopee's unique identifier for an order
Promise
Upload invoice document
This endpoint is for PH and BR local seller. Upload the invoice document.
The parameters for uploading invoice document
Parameters for uploading invoice document
Optionalfile?: stringFile content/name
Optionalfile_type?: stringFile type (PDF, etc)
The invoice document file
Shopee's unique identifier for an order
A promise that resolves to the upload invoice document response
Use this api to cancel an order. This action can only be performed before an order has been shipped.