CustomerSubscriptionAddressChange

A mutation CustomerSubscriptionAddressChange permite alterar o endereço de uma determinada assinatura de um usuário.

Exemplo

mutation ( $customerAccessToken: String! $addressId: ID! $subscriptionId: Long! ) { customerSubscriptionAddressChange( customerAccessToken: $customerAccessToken addressId: $addressId subscriptionId: $subscriptionId ) { customerId customerName email subscriptions { subscriptionId deliveryAddress { address id name addressDetails } } } }

Variáveis

{ "customerAccessToken": "token", "addressId": "eyJFbnRpdHkiOiJDdXN0b21lckFkZHJlc3MiLCJJZCI6NjI4MzM5fQ==", "subscriptionId": 12345678 }
Mostrar resposta
{ "data": { "customerSubscriptionAddressChange": { "customerId": 355088, "customerName": "Teste Wake", "email": "testewake@teste.com.br", "subscriptions": [ { "subscriptionId": 12345678, "deliveryAddress": { "address": "Avenida Plácido de Castro", "id": "eyJFbnRpdHkiOiJDdXN0b21lckFkZHJlc3MiLCJJZCI6NjI4MzM5fQ==", "name": "Teste TrayCorp", "addressDetails": "casa teste" } }, { "subscriptionId": 580, "deliveryAddress": { "address": "Avenida Plácido de Castro", "id": "eyJFbnRpdHkiOiJDdXN0b21lckFkZHJlc3MiLCJJZCI6NjI4MzM5fQ==", "name": "Teste1", "addressDetails": "casa teste" } }, { "subscriptionId": 44010, "deliveryAddress": { "address": "Avenida Plácido de Castro", "id": "eyJFbnRpdHkiOiJDdXN0b21lckFkZHJlc3MiLCJJZCI6NjI4MzM5fQ==", "name": "Teste Wake", "addressDetails": "casa teste" } }, { "subscriptionId": 3537640, "deliveryAddress": { "address": "Rua José Klein", "id": "eyJFbnRpdHkiOiJDdXN0b21lckFkZHJlc3MiLC0000000000Q==", "name": "Teste Tray", "addressDetails": "" } } ] } } }