#I need to change the website on my brand asap, the current one was an error from my clipboard.
1 messages · Page 1 of 1 (latest)
I need to change the website on my brand asap, the current one was an error from my clipboard.
To change the website URL associated with your brand in Dodo Payments, you will need to update the brand's information via the API. Here’s how you can do it:
-
Prepare the API Request:
- You need to use the
PATCHmethod to update the brand details. - The endpoint to update a brand is
/brands/{id}where{id}is your brand's unique identifier.
- You need to use the
-
Set Up Your Request:
- Use your API client to authenticate and make the request.
- Ensure you have the correct bearer token for authentication.
-
Update the Brand Information:
-
In the request body, specify the new website URL and any other details you need to update.
-
Here is an example using JavaScript:
import DodoPayments from 'dodopayments'; const client = new DodoPayments({ bearerToken: 'Your Bearer Token', }); const brandId = 'your_brand_id'; const updateParams = { website: 'https://newwebsite.com' }; client.brands.update(brandId, updateParams) .then(response => console.log(response)) .catch(error => console.error(error));
-
-
Execute the Request:
- Send the request and handle the response to ensure the update was successful.
- Check the returned data to verify that the website URL has been updated correctly.
If you encounter any issues or if the primary brand cannot be updated via the API, you might need to contact support for further assistance.
Helpful Links
not helpful
@crystal elm -
We don’t allow changing the Brand URL once it is created. Even if the URL is incorrect, it will not impact your setup or functionality.
Interesting... so by "not affecting setup or functionality" meaning the end user actually won't see it?
Thanks in advance!