Buy paid domain with Stripe
POST {{base_url}}/api/v2/resellers/{{reseller_id}}/orders
Authentication is optional for this endpoint and it's required only if using specific payment types (free, payback). If Authentication is used - API should be called from secure server environment. This API endpoint is used for buying domains from UD. The blockchain needs time before a transaction is mined. In rare cases, it is possible for someone to front run your purchase, which would result in an order being cancelled. We expect this to happen in less than 1 out of 10000 cases. Please make sure you are using the 'Order Status' endpoint and wait until the transaction is mined. Endpoint requires either email or owner address. If email is provided - domain will be linked to Unstoppable website account. If owner address is provided - domain will be minted right into crypto wallet. Optionally user can specify domain records that will be added to the domain once it's minted (i.e. if owner address is provided)
Request Body
{"payment"=>{"method"=>"stripe"}, "domains"=>[{"name"=>"fancyfox58943.nft", "ownerAddress"=>"0x6EC0DEeD30605Bcd19346f3c30201DB263291589", "email"=>"test-email@unstoppabledomains.com", "resolution"=>{"crypto.ETH.address"=>"0x6EC0DEeD30605Bcd19346f3c30201DB263291589", "crypto.BTC.address"=>"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"}, "resellerIdentityKey"=>"test-email@unstoppabledomains.com"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"orderNumber":"77886","total":0,"payment":{"method":"free"},"items":[{"domain":{"id":965873,"name":"fancyfox123306.nft","ownerAddress":null,"resolver":null,"resolution":{},"blockchain":"MATIC","registryAddress":"0x2a93c52e7b6e7054870758e15a1446e769edfb93","networkId":80001,"freeToClaim":true,"node":"0xf01f544168f4b67bb2cb024c54714a1deeba2097a29e351e2686a663658ad368"},"mintingTransaction":{"id":44735,"type":"MaticTx","operation":"MintDomain","statusGroup":"Pending","hash":null,"blockchain":"MATIC","blockExplorerUrl":null}}]}