Skip to main content
POST
/
api
/
user-api
/
address
/
payee
/
create
Create Payee Address
curl --request POST \
  --url https://api.sandbox.paywint.com/api/user-api/address/payee/create \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Api-Secret: <x-api-secret>' \
  --data '
{
  "payee_id": "f47ac10b-****-****-****-0e02b2c3d479",
  "first_name": "John",
  "last_name": "Smith",
  "address_line_1": "123 Main Street, Apt 4B",
  "city": "New York",
  "state": "NY",
  "zipcode": "10001",
  "country": "United States",
  "address_line_2": "123 Main Street, Apt 4B",
  "company_name": "Meta Corp",
  "is_default": false
}
'
{
  "success": true,
  "message": "Operation completed.",
  "data": {
    "address_id": "a1b2c3d4-****-****-****-e5f6g7h8i9j0",
    "fist_name": "John",
    "last_name": "Doe",
    "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",
    "is_default": false,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  },
  "queryGeneratedTime": 1718006400
}

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 (UUID) of the payee for whom this address is being created.

Example:

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

first_name
string
required

Recipient's first name.

Required string length: 2 - 100
Example:

"John"

last_name
string
required

Recipient's last name.

Maximum string length: 100
Example:

"Smith"

address_line_1
string
required

Street address including apartment, suite, or unit number.

Maximum string length: 100
Example:

"123 Main Street, Apt 4B"

city
string
required

City name.

Maximum string length: 40
Example:

"New York"

state
string
required

State, province, or region.

Maximum string length: 30
Example:

"NY"

zipcode
string
required

Postal code or ZIP code.

Maximum string length: 10
Example:

"10001"

country
string
required

Country name.

Maximum string length: 40
Example:

"United States"

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"

is_default
boolean
default:false

Set to true if this address should become the payee's default mailing address.

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:1771679555.638735

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

Example:

1718006400