Zum Hauptinhalt springen
PATCH
/
brands
/
{id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const brand = await client.brands.update('id');

console.log(brand.brand_id);
{
  "brand_id": "<string>",
  "business_id": "<string>",
  "enabled": true,
  "statement_descriptor": "<string>",
  "verification_enabled": true,
  "verification_status": "Success",
  "description": "<string>",
  "image": "<string>",
  "name": "<string>",
  "reason_for_hold": "<string>",
  "support_email": "<string>",
  "url": "<string>"
}

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

Brand Id

Body

application/json
image_id
string<uuid> | null

The UUID you got back from the presigned‐upload call

name
string | null
statement_descriptor
string | null
support_email
string | null

Antwort

Updated Brand

brand_id
string
erforderlich
business_id
string
erforderlich
enabled
boolean
erforderlich
statement_descriptor
string
erforderlich
verification_enabled
boolean
erforderlich
verification_status
enum<string>
erforderlich
Verfügbare Optionen:
Success,
Fail,
Review,
Hold
description
string | null
image
string | null
name
string | null
reason_for_hold
string | null

Incase the brand verification fails or is put on hold

support_email
string | null
url
string | null