Skip to main content
POST
Create stock donation pledge

Authorizations

x-api-key
string
header
required

Headers

x-endaoment-user-id
string

UUID of the Endaoment user for this partner-settled operation. Optional when a body partnerUserIdentifier is supplied on an API-key-only request.

x-api-key
string
required

Partner API key used for authentication

Body

application/json
stockPledgeData
object
required

Settled stock pledge details reported by the partner

receivingFundId
string<uuid>
required

Unique identifier of the receiving fund

Example:

"123e4567-e89b-12d3-a456-426614174000"

idempotencyKey
string<uuid>
required

Client-generated key to ensure idempotency of the request

Example:

"123e4567-e89b-12d3-a456-426614174000"

donationValueMicroDollars
string
required

Settled donation value in microdollars

Example:

"50000000000"

partnerOperationId
string
required

Partner-owned reference for this operation

Maximum string length: 36
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

partnerUserIdentifier
string

Opaque partner-generated identifier for the acting user. Used only to resolve or corroborate the user; it is not stored on the pledge or returned in the response.

Required string length: 8 - 64
Pattern: ^[\x20-\x7E]{8,64}$
Example:

"c3f8b2e4-9d1a-4f6b-8e2c-7a5d90c41b3f"

Response

Partner-settled stock donation pledge successfully created

id
string<uuid>
required

Unique identifier of the created donation pledge

Example:

"123e4567-e89b-12d3-a456-426614174000"