Bridge

Create Payment

Create a payment to be executed. Users can complete the payment via hosted UI (link is returned), a transaction execution referencing the product ID, or embedded widgets with the product ID.

Authentication: This endpoint requires project authentication.

post/v1/bridge/payments

Request

  • Base URL
    https://api.thirdweb.com
  • Auth
    HTTP bearer and API key in header x-client-id

Request body

namestring required

The name of the product

descriptionstring required

The description of the product

imageUrlstring

The URL of the product image

recipientstring required

The wallet address or ENS name that will receive the payment for the product

purchaseDataunknown

Example request

{
  "name": "Course",
  "description": "The complete javascript course",
  "imageUrl": "https://example.com/course.png",
  "token": {
    "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "chainId": 42161,
    "amount": "100"
  },
  "recipient": "0xEfc38EF8C09535b25e364b6d1a7C406D3972f2A9"
}

Response

Payment created successfully. Returns the ID and link to complete the payment.

Changes

No recorded changes to this operation across all 5 revisions of this API.