Refund a Pay Now payment
Refunds a Pay Now payment where the authenticated user is the seller.
Note that this API currently only works if the auction closed less than 45 days ago. If you need a refund for an auction that is older than this, please contact cusomter support.
URL: | https://api.trademe.co.nz/v1/MyTradeMe/PayNowRefund.{file_format} |
---|---|
HTTP Method: | POST |
Requires Authentication? | Yes |
Permission Required: | MyTradeMeWrite: Maintain your watchlist, answer questions and post comments. |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
POST Data
<PayNowRefundRequest>
ListingId | Long Integer (optional) |
The ID of the listing to refund. This field is retained for backwards compatibility; please use PurchaseId instead. |
---|---|---|
OfferId | Integer (optional) |
The ID of the fixed price offer. Defaults to zero (i.e. no fixed price offer). This field is retained for backwards compatibility; please use PurchaseId instead. |
RefundAmount | Number (optional) |
The dollar value to refund, up to the original value of the auction. Defaults to refunding the full value of the original purchase. |
PurchaseId | Integer (optional) |
The ID of the purchase to refund. If this is provided, ListingId and OfferId must not be present. |
Returns
<PayNowRefundResponse>
Details on whether the operation was successful.
Success | Boolean |
Indicates whether the operation was successful. |
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | String or null |
The description of the error, if the operation failed. |
|||||||||||||||||||||||||||||||||
StatusCode | Enumeration |
The status code indicating what went wrong if the operation failed. |
|||||||||||||||||||||||||||||||||
|