# Calling address

Http request method: POST https://api.weixin.qq.com/product/order/getaftersaleorder?access_token=xxxxxxxxx

# request

{
	"after_sale_order_id": 7011  // After sale single number
}

# response

{
	"errcode": 0, // Return code
	"after_sale_order": {
		"order_id": 7011, // After sale single number
		"status": "MERCHANT_REFUND_SUCCESS",  // Status of Sales Orders
		"openid": "oTVP50Ks6gr9NU2hvc1YF22naK0Y", // User openid
		"original_order_id": 1768683047558651, // Order number corresponding to the sales order
		"product_info": {
			"product_id": 3286, // Goods id 
			"sku_id": 4740, // sku id
			"count": 1 // Number of sku
		},
		"details": {
			"num": 1, // Number of refunds
			"desc": "1234", // Description of refund
			"time": 0, // useless
			"receive_product": 4294967295, // useless
			"cancel_time": 0, // Cancellation Time
			"prove_imgs": [], // User-uploaded credentials
			"tel_number": "" // Subscriber telephone
		},
		"refund_info": {
			"amount": 11 // Refund amount
		},
		"return_info": {
			"waybill_id": "", // Return Express Single Number
			"delivery_id": "", // Return logistics company id
			"delivery_name": "" // Return Logistics Company Name
		},
		"merchant_upload_info": {
			"reject_reason": "",  // Reasons for refusal
			"refund_certificates": [] // Merchant offline refund voucher
		},
		"create_time": 1591319454, // Time to Create Sales Order
		"update_time": 1612754444, // Update time of after-sales order
		"reason": "NO_LONGER_WANT", // Refund reason
		"refund_respectively': {
			"code": "", 
			"right" means: 0,
			"message": ""
		},
		"type": "REFUND" // Refund method
	}
}

# Field enumeration value

enum AfterSaleStatus                                                                                                                                                                                                                        
{
    AFTERSALESTATUS_INVALID = 0 
    USER_CANCELD = 1 // User Cancellation Request
    MERCHANT_PROCESSING = 2 // Business acceptance
    MERCHANT_REJECT_REFUND = 4 // Merchants refuse refunds
    MERCHANT_REJECT_RETURN = 5 // Businesses refuse to return refunds
    USER_WAIT_RETURN = 6 // Return of goods
    RETURN_CLOSED = 7 // Returns Refunds Closed
    MERCHANT_WAIT_RECEIPT = 8 // To be received by the merchant
    MERCHANT_OVERDUE_REFUND = 12 // Business overdue refund
    MERCHANT_REFUND_SUCCESS = 13 // Refund completed
    MERCHANT_RETURN_SUCCESS = 14 // Return refund completed
    PLATFORM_REFUNDING = 15 // Platform refund
    PLATFORM_REFUND_FAIL = 16 // Platform Refund Failure
    USER_WAIT_CONFIRM = 17 // Pending user confirmation
    MERCHANT_REFUND_RETRY_FAIL = 18 // Businesses play money failure, customer service closed after-sales
    MERCHANT_FAIL = 19 // After-Sales Closure
}

enum AfterSaleType                                                                                                                                                                                                                          
{
    REFUND = 1 // to refund
    RETURN = 2 // Return refund
}

enum AfterSaleReason                                                                                                                                                                                                                        
{
    INCORRECT_SELECTION = 1 // Wrong shot/Multibeat
    NO _LONGER_WANT = 2 // I don't want it.
    NO _EXPRESS_INFO = 3 // No courier information
    EMPTY_PACKAGE = 4 // Package is empty
    REJECT_RECEIVE_PACKAGE = 5 // Package rejected
    NOT_DELIVERED_TOO_LONG = 6 // Long undelivered courier
    NOT_MATCH_PRODUCT_DESC = 7 // Inconsistent with description of goods
    QUALITY_ISSUE = 8 // Quality problem
    SEND_WRONG_GOODS = 9 // Seller sends out wrong
    THREE_NO _PRODUCT = 10 // Sanwu products
    FAKE_PRODUCT = 11 // Counterfeit products
    OTHERS = 12 // other

}