Skip to main content
DELETE
/
api
/
user-api
/
address
/
payee
/
delete
Delete Payee Address
curl --request DELETE \
  --url https://api.sandbox.paywint.com/api/user-api/address/payee/delete \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Api-Secret: <x-api-secret>' \
  --data '
{
  "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
  "address_id": "2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1",
  "new_default_address_id": "<string>"
}
'
import requests

url = "https://api.sandbox.paywint.com/api/user-api/address/payee/delete"

payload = {
"payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
"address_id": "2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1",
"new_default_address_id": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"X-Api-Secret": "<x-api-secret>",
"Content-Type": "application/json"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'DELETE',
headers: {
'X-Api-Key': '<x-api-key>',
'X-Api-Secret': '<x-api-secret>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
payee_id: 'f47ac10b-****-****-****-0e02b2c3d479',
address_id: '2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1',
new_default_address_id: '<string>'
})
};

fetch('https://api.sandbox.paywint.com/api/user-api/address/payee/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.paywint.com/api/user-api/address/payee/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'payee_id' => 'f47ac10b-****-****-****-0e02b2c3d479',
'address_id' => '2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1',
'new_default_address_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>",
"X-Api-Secret: <x-api-secret>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.sandbox.paywint.com/api/user-api/address/payee/delete"

payload := strings.NewReader("{\n \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n \"address_id\": \"2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1\",\n \"new_default_address_id\": \"<string>\"\n}")

req, _ := http.NewRequest("DELETE", url, payload)

req.Header.Add("X-Api-Key", "<x-api-key>")
req.Header.Add("X-Api-Secret", "<x-api-secret>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.delete("https://api.sandbox.paywint.com/api/user-api/address/payee/delete")
.header("X-Api-Key", "<x-api-key>")
.header("X-Api-Secret", "<x-api-secret>")
.header("Content-Type", "application/json")
.body("{\n \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n \"address_id\": \"2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1\",\n \"new_default_address_id\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.sandbox.paywint.com/api/user-api/address/payee/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["X-Api-Secret"] = '<x-api-secret>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payee_id\": \"f47ac10b-****-****-****-0e02b2c3d479\",\n \"address_id\": \"2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1\",\n \"new_default_address_id\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "Operation completed.",
  "data": "<unknown>",
  "queryGeneratedTime": 1718006400
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Headers

X-Api-Key
string
required

Your API Key (UUID format). Required to identify and authorize each request

X-Api-Secret
string
required

Secret associated with your API Key. Used for authenticating requests. Keep this secure.

Body

application/json
payee_id
string<uuid4>
required

Unique identifier for the payee whose addresses are being managed.

Example:

"f47ac10b-****-****-****-0e02b2c3d479"

address_id
string<uuid4>
required

Unique identifier for the payee address record.

Example:

"2d8c5ca1-98cb-42f7-8c1e-70a2b0b8e8f1"

new_default_address_id
string<uuid4> | null

Optional address_id to mark as default if the requested address was defaulted.

Response

Successful Response

success
boolean
default:true

Indicates whether the request was processed successfully.

Example:

true

message
string
default:Success

A short, human-readable message describing the result of the request.

Example:

"Operation completed."

data
any | null

The main response payload, if applicable

queryGeneratedTime
number | null
default:1778161546.973489

The Unix timestamp (in seconds) indicating when the response was generated.

Example:

1718006400