|
|
|
@ -895,13 +895,13 @@
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @api {PUT} /api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id} Create Declare No.
|
|
|
|
|
* @api {PUT} /api/v1.0/customs/partners/{partner_code}/declare/report/{client_report_id} Create Declare ID
|
|
|
|
|
* @apiName declare_report
|
|
|
|
|
* @apiDescription
|
|
|
|
|
* Used to submit the attachment information of the order required by the merchant. WeChat and Alipay are only supported. WeChat only supports payment orders within one month for customs declaration.
|
|
|
|
|
*
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
* @apiGroup Customs_Declaration
|
|
|
|
|
* @apiGroup Custom
|
|
|
|
|
* @apiHeader Accept application/json
|
|
|
|
|
* @apiHeader Content-Type application/json
|
|
|
|
|
* @apiParam (PathVariable) {String} partner_code Required, Partner code
|
|
|
|
@ -911,7 +911,7 @@
|
|
|
|
|
* @apiParam (JSON) {String} custom Required, Customs No. * <a href="https://www.royalpay.com.au/downloads/CustomsNO.xlsx">Customs No.</a>
|
|
|
|
|
* @apiParam (JSON) {String} mch_custom_id Required, Customs record id
|
|
|
|
|
* @apiParam (JSON) {String} mch_custom_name Required, Customs record name
|
|
|
|
|
* @apiParam (JSON) {JSONArray} sub_order Child orders
|
|
|
|
|
* @apiParam (JSON) {JSON[]} sub_order Child orders
|
|
|
|
|
*
|
|
|
|
|
* @apiParam (SUB_JSON) {String} sub_order_no Child order ID
|
|
|
|
|
* @apiParam (SUB_JSON) {String=CNY} fee_type=CNY Currency
|
|
|
|
@ -920,12 +920,12 @@
|
|
|
|
|
*
|
|
|
|
|
* @apiSuccess {String} report_id RoyalPay declare ID
|
|
|
|
|
* @apiSuccess {String} client_report_id Client declare ID
|
|
|
|
|
* @apiSuccess {int} report_status 0:PROCCESSING,1:SUBMITED,2:FAIL,3:SUCCESS
|
|
|
|
|
* @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS
|
|
|
|
|
* @apiSuccess {String} channel Channel
|
|
|
|
|
* @apiSuccess {String} custom Customs No.
|
|
|
|
|
* @apiSuccess {String} mch_custom_no Customs record ID
|
|
|
|
|
* @apiSuccess {String} mch_custom_name Customs record name
|
|
|
|
|
* @apiSuccess {String} order_id Royalpay Order ID
|
|
|
|
|
* @apiSuccess {String} order_id RoyalPay Order ID
|
|
|
|
|
* @apiSuccess {String} transaction_id Channel Order ID
|
|
|
|
|
* @apiSuccess {String} order_currency Currency
|
|
|
|
|
* @apiSuccess {Double} order_amount Order Amount
|
|
|
|
@ -940,24 +940,61 @@
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{report_id} Query Declare ID
|
|
|
|
|
* @api {PUT} /api/v1.0/customs/partners/{partner_code}/redeclare/report/{client_report_id} Redeclare
|
|
|
|
|
* @apiName redeclare_report
|
|
|
|
|
* @apiDescription
|
|
|
|
|
* Used to resubmit the attachment information of the order required by the merchant.
|
|
|
|
|
*
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
* @apiGroup Custom
|
|
|
|
|
* @apiHeader Accept application/json
|
|
|
|
|
* @apiHeader Content-Type application/json
|
|
|
|
|
* @apiParam (PathVariable) {String} partner_code Required, Partner code
|
|
|
|
|
* @apiParam (PathVariable) {String} client_report_id Required, Client declare ID
|
|
|
|
|
* @apiUse Sign
|
|
|
|
|
*
|
|
|
|
|
* @apiSuccess {String} report_id RoyalPay declare ID
|
|
|
|
|
* @apiSuccess {String} client_report_id Client declare ID
|
|
|
|
|
* @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS
|
|
|
|
|
* @apiSuccess {String} channel Channel
|
|
|
|
|
* @apiSuccess {String} custom Customs No.
|
|
|
|
|
* @apiSuccess {String} mch_custom_no Customs record ID
|
|
|
|
|
* @apiSuccess {String} mch_custom_name Customs record name
|
|
|
|
|
* @apiSuccess {String} order_id RoyalPay Order ID
|
|
|
|
|
* @apiSuccess {String} transaction_id Channel Order ID
|
|
|
|
|
* @apiSuccess {String} order_currency Currency
|
|
|
|
|
* @apiSuccess {Double} order_amount Order Amount
|
|
|
|
|
* @apiSuccess {String} report_time Declare Time
|
|
|
|
|
* @apiSuccess {String} creation_date Create Time
|
|
|
|
|
* @apiSuccess {String} last_update_date Update Time
|
|
|
|
|
* @apiSuccess {String} error_code Error Code
|
|
|
|
|
* @apiSuccess {String} error_msg Error Description
|
|
|
|
|
*
|
|
|
|
|
* @apiUse GlobalError
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id} Query Declare ID
|
|
|
|
|
* @apiName declare_query
|
|
|
|
|
* @apiDescription
|
|
|
|
|
* Used by the merchant to check the status of the customs declaration number.
|
|
|
|
|
*
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
* @apiGroup Customs_Declaration
|
|
|
|
|
* @apiGroup Custom
|
|
|
|
|
* @apiHeader Accept application/json
|
|
|
|
|
* @apiHeader Content-Type application/json
|
|
|
|
|
* @apiParam (PathVariable) {String} partner_code Required, Partner code
|
|
|
|
|
* @apiParam (PathVariable) {String} report_id Required,RoyalPay Declare ID
|
|
|
|
|
* @apiParam (PathVariable) {String} client_report_id Required,Client declare ID
|
|
|
|
|
* @apiUse Sign
|
|
|
|
|
*
|
|
|
|
|
* @apiSuccess {String} return_code Execution result
|
|
|
|
|
* @apiSuccess {String} report_status Result status
|
|
|
|
|
* @apiSuccess {String} report_id Client declare ID
|
|
|
|
|
* @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS
|
|
|
|
|
* @apiSuccess {String} report_id RoyalPay declare ID
|
|
|
|
|
* @apiSuccess {String} client_report_id Client declare ID
|
|
|
|
|
* @apiSuccess {String} return_msg Error Description
|
|
|
|
|
* @apiSuccess {String} order_id RoyalPay Order
|
|
|
|
|
* @apiSuccess {String} order_id RoyalPay Order ID
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner Order ID
|
|
|
|
|
*
|
|
|
|
|
* @apiUse GlobalError
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
|