Skip to main content
PATCH
/
api
/
platform
/
address
/
update-payee-address
/
{user_id}
Update Payee Address
curl --request PATCH \
  --url https://api.sandbox.paywint.com/api/platform/address/update-payee-address/{user_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Platform-ID: <x-platform-id>' \
  --header 'X-Signature: <x-signature>' \
  --data '
{
  "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
  "address_id": "a1b2c3d4-****-****-****-e5f6g7h8i9j0",
  "name": "John Smith",
  "address_line_1": "123 Main Street, Apt 4B",
  "address_line_2": "123 Main Street, Apt 4B",
  "company_name": "Meta Corp",
  "city": "New York",
  "state": "NY",
  "zipcode": "10001",
  "country": "United States"
}
'
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "address_id": "a1b2c3d4-****-****-****-e5f6g7h8i9j0",
    "name": "John Smith",
    "address_line_1": "123 Main Street, Apt 4B",
    "address_line_2": "123 Main Street, Apt 4B",
    "company_name": "Meta Corp",
    "city": "New York",
    "state": "NY",
    "zipcode": "10001",
    "country": "United States",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  },
  "queryGeneratedTime": 1718006400
}

Headers

X-Platform-ID
string<uuid>
required

Unique platform identifier (UUID). You receive this during onboarding. Must be sent with every API request.

X-Signature
string
required

HMAC-SHA256 request signature for authentication. Use your platform secret key to compute it as: METHOD + PATH + QUERY + BODY_HASH.

Path Parameters

user_id
string<uuid>
required

Unique identifier (UUID) of the user

Body

application/json
payee_id
string<uuid4>
required

Unique identifier (UUID) of the payee for whom this address is being created.

Example:

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

address_id
string<uuid4>
required

Unique identifier (UUID) of the payee's address record.

Example:

"a1b2c3d4-****-****-****-e5f6g7h8i9j0"

name
string | null

Full name of the person or business.

Required string length: 2 - 100
Example:

"John Smith"

address_line_1
string | null

Street address including apartment, suite, or unit number.

Maximum string length: 100
Example:

"123 Main Street, Apt 4B"

address_line_2
string | null

Street address including apartment, suite, or unit number.

Maximum string length: 100
Example:

"123 Main Street, Apt 4B"

company_name
string | null

Full name of the payee's company.

Maximum string length: 100
Example:

"Meta Corp"

city
string | null

City name.

Maximum string length: 40
Example:

"New York"

state
string | null

State, province, or region.

Maximum string length: 30
Example:

"NY"

zipcode
string | null

Postal code or ZIP code.

Maximum string length: 10
Example:

"10001"

country
string | null

Country name.

Maximum string length: 40
Example:

"United States"

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
ExternalContactAddressRead · object

The main response payload, if applicable

queryGeneratedTime
number | null
default:1765631850.663502

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

Example:

1718006400