View as Markdown
API Spec (JSON)
API Spec (YAML)
Compact modeHides field descriptions and other prose for a more compact, scannable view of the API reference.Client CredentialsToken URLhttps://api-m.sandbox.paypal.com/v1/oauth2/tokenInheaderScopes
readwriteapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
default_currencystring<Currency>Optionaladdressobject<Address>Optionaltimezonestring<Timezone>Optionalcodestring<BillingEntityCode>Requiredapplication/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/billing-entities" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Inc", "code": "acme_inc" }'{ "id": "e7f4c956-23fc-663d-a8c3-egcb1f5d4h0e", "code": "acme_west", "name": "Acme Western Division", "default_currency": "USD", "finalize_zero_amount_invoice": true, "is_default": false, "address": { "line1": "789 Tech Boulevard", "line2": "Suite 1200", "city": "San Francisco", "state": "CA", "country": "US", "postal_code": "94107" }, "legal_name": "Acme Corporation Western LLC", "legal_number": "US87654321", "email": "west-billing@acmeinc.com", "timezone": "America/Los_Angeles", "created_at": "2023-01-15T00:00:00Z", "updated_at": "2023-01-15T00:00:00Z"}