POST
/
payments
/
payees
curl --request POST \
  --url https://agent.payman.ai/api/payments/payees \
  --header 'Content-Type: application/json' \
  --header 'x-payman-api-secret: <api-key>' \
  --data '{
  "type": "CRYPTO_ADDRESS",
  "address": "<string>",
  "chain": "<string>",
  "currency": "<string>",
  "name": "<string>",
  "tags": [
    "<string>"
  ],
  "contactDetails": {
    "email": "<string>",
    "phoneNumber": "<string>",
    "address": {
      "addressLine1": "<string>",
      "addressLine2": "<string>",
      "addressLine3": "<string>",
      "addressLine4": "<string>",
      "locality": "<string>",
      "region": "<string>",
      "postcode": "<string>",
      "country": "<string>"
    },
    "taxId": "<string>"
  }
}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updatedBy": "<string>",
  "providerInfo": {},
  "name": "<string>",
  "organizationId": "<string>",
  "tags": [
    "<string>"
  ],
  "type": "US_ACH",
  "payeeDetails": {},
  "contactDetails": {
    "email": "<string>",
    "phoneNumber": "<string>",
    "address": {
      "addressLine1": "<string>",
      "addressLine2": "<string>",
      "addressLine3": "<string>",
      "addressLine4": "<string>",
      "locality": "<string>",
      "region": "<string>",
      "postcode": "<string>",
      "country": "<string>"
    },
    "taxId": "<string>"
  },
  "status": "ACTIVE",
  "searchHashes": {},
  "replacesId": "<string>"
}

Payment Destination Types

  • US_ACH - US Bank Account
  • CRYPTO_ADDRESS - Cryptocurrency Address
  • PAYMAN_WALLET - Payman Wallet (Coming Soon)

Authorizations

x-payman-api-secret
string
header
required

Body

application/json

A cryptocurrency address-based payee

Response

200
application/vnd.payman.v1+json
The payment was successful.

The response is of type object.