Get the delivery address
GET
/v1/subscriptions/{id}/address
Returns the delivery address currently in effect for the subscription.
A subscription that does not have its own address yet — created before this route
existed, for example — responds with the customer's registered address.
data.address is only null when neither source has a usable
address (no street and no postal code).
The postcode comes with digits only and, for a Brazilian address, the state
comes in uppercase.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Subscription identifier.
Type
Requiredinteger
Example
10Responses
Address in effect for the subscription.
application/json
JSON "data": { "address": { "country": "BR", "state": "SP", "city": "São Paulo", "district": "Centro", "street": "Rua São Bento", "number": "111", "complement": "Bloco 7", "postcode": "01010000" } }
{
}
GET
/v1/subscriptions/{id}/address