This doc page has moved! You should be automatically redirected to the resources page for the eBay Account API. If you are not redirected automatically, follow this link to the Account API.

eBay Account APIVersion 1.2.0

Delete a Payment Policy

DELETE /payment_policy/{payment_policy_id}

This call deletes a payment policy. Supply the ID of the policy you want to delete in the paymentPolicyId path parameter. Note that you cannot delete the default payment policy.

Input

See also Samples.

Resource URI (production)

DELETE https://api.ebay.com/sell/account/v1/payment_policy/{payment_policy_id}

URI parameters

Parameter Type Required? Meaning
payment_policy_id string Required A unique eBay-assigned ID for a payment policy.


HTTP request headers

All requests made to eBay REST operations require you to provide the authorization HTTP header for authentication.
See HTTP request headers for details.



OAuth request scope

This request requires a user access token with the following scope:

https://api.ebay.com/oauth/api_scope/sell.account

See Getting Access Tokens for more information.



Payload model

This call has no request payload.


Output

See also Samples.

HTTP status codes

This call can return one of the following HTTP status codes. See the HTTP Status Code Registry for a complete overview of HTTP status codes.

Status Meaning
204 No Content
400 Bad Request
404 Not Found
500 Internal Server Error

Payload model

This call has no response payload.



Error Codes

Code Domain Category Nature Meaning
20401 API_ACCOUNT REQUEST ERROR Missing field {fieldName}. {additionalInfo}
20403 API_ACCOUNT REQUEST ERROR Invalid {fieldName}. {additionalInfo}
20404 API_ACCOUNT REQUEST ERROR {fieldName} not found.
20409 API_ACCOUNT BUSINESS ERROR Invalid default policy type. {additionalInfo}
20500 API_ACCOUNT APPLICATION ERROR System error.
20501 API_ACCOUNT APPLICATION ERROR Service unavailable. Please try again in next 24 hours.
21409 API_ACCOUNT BUSINESS ERROR Invalid default for category type. {additionalInfo}
22409 API_ACCOUNT BUSINESS ERROR Invalid target default policy. {additionalInfo}



Samples

Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.

Sample: Delete a Payment Policy

Description

This example deletes an existing payment policy.

Input

Specify the policy you want to delete by supplying the unique ID of the policy in the paymentPolicyID path parameter.

URL format. See also the non-wrapped version of this URL.

DELETE https://api.sandbox.ebay.com/sell/account/v1/payment_policy/5446270000

Output

This operation does not return a response body.

JSON format.
If successful, this call returns an HTTP status code of "204 No content" and an empty response body.



Change History

Change Date Description
1.0.0
2016-10-19
  • Call (added): New call.