Delete Customer

Credentials

No credentials are documented for this endpoint.

Delete a customer by their unique PayMe identifier.

Parameters

Name In Type Required Description
guid path string yes The unique PayMe customer identifier.
Authorization header string yes Bearer <ACCESS_TOKEN>

Code samples

curl

curl -X DELETE 'https://sandbox.payme.io/api/customers/<guid>' \
  -H 'Authorization: <Authorization>'

Node.js

const response = await fetch("https://sandbox.payme.io/api/customers/<guid>", {
  method: "DELETE",
  headers: {
    "Authorization": "<Authorization>",
  },
});

console.log(await response.text());

Python

import requests

response = requests.delete(
    "https://sandbox.payme.io/api/customers/<guid>",
    headers={
        "Authorization": "<Authorization>",
    },
)

print(response.text)

PHP

<?php

$ch = curl_init('https://sandbox.payme.io/api/customers/<guid>');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'DELETE',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: <Authorization>',
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

Responses

200 — Customer deleted successfully. (success)

Field Type Description
message string The success message.
payme_guid string The unique customer identifier.

400 — Bad Request (error)

Field Type Description
message string
status_error_code integer

401 — Unauthorized (error)

Field Type Description
message string
status_error_code integer

500 — Internal Server Error (error)

Field Type Description
message string
status_error_code integer