Delete a paypal payment

How to delete an existing paypal payment via API

To delete a paypal payment, send a DELETE request to the /api/paypal_payments/:id endpoint, where id is the id of the paypal payment that you want to delete.

Request

DELETE https://yourdomain.commercelayer.io/api/paypal_payments/:id

Example

The following request tries to delete the paypal payment identified by the ID "xYZkjABcde":

curl -g -X DELETE \
  'https://yourdomain.commercelayer.io/api/paypal_payments/xYZkjABcde' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token'

Last updated