Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Moip Account Create retorna erro 403 sem descriçāo #54

Open
iagormoraes opened this issue Mar 21, 2020 · 1 comment
Open

Moip Account Create retorna erro 403 sem descriçāo #54

iagormoraes opened this issue Mar 21, 2020 · 1 comment

Comments

@iagormoraes
Copy link

Olá, estou tendo problema para criar um merchant moip account, retorna erro 403 no corpo da resposta, segue abaixo amostra da chamada:

            const { body } = await this.moip.account.create({
                email: {
                    address: user.email,
                },
                person: {
                    name: user.firstName,
                    lastName: user.lastName,
                    taxDocument: {
                        type: 'CPF',
                        number: user.cpf,
                    },
                    birthDate: getI18nBirthdate(user.birthdate),
                    phone: {
                        countryCode: user.countryCode,
                        areaCode: user.regionCode,
                        number: user.phone,
                    },
                    address: {
                        street: user.address.street,
                        streetNumber: user.address.number,
                        district: user.address.neighborhood,
                        zipCode: user.address.cep,
                        city: user.address.city,
                        state: user.address.state,
                        country: 'BRA',
                    },
                },
                type: 'MERCHANT',
                transparentAccount: false,
            });
@lucasnjsilva
Copy link

@iagormoraes não sei se conseguiu resolver, mas o código HTTP 403 indica que o servidor recebeu a request, mas não autorizou a emissão do response. Se o problema é de autorização, provável que esteja relacionado ao token.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants